vendor: update all dependencies

* Update all dependencies
  * Remove all `[[constraint]]` from Gopkg.toml
  * Add in the minimum number of `[[override]]` to build
  * Remove go get of github.com/inconshreveable/mousetrap as it is vendored
  * Update docs with new policy on constraints
This commit is contained in:
Nick Craig-Wood 2018-05-02 17:09:45 +01:00
parent 21383877df
commit 6427029c4e
4902 changed files with 1443417 additions and 227283 deletions

View file

@ -12,7 +12,7 @@ const opCreateApiKey = "CreateApiKey"
// CreateApiKeyRequest generates a "aws/request.Request" representing the
// client's request for the CreateApiKey operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -87,7 +87,8 @@ func (c *AppSync) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Re
// The API key exceeded a limit. Try your request again.
//
// * ErrCodeApiKeyValidityOutOfBoundsException "ApiKeyValidityOutOfBoundsException"
// The API key expiration must be set to a value between 1 and 365 days.
// The API key expiration must be set to a value between 1 and 365 days from
// creation (for CreateApiKey) or from update (for UpdateApiKey).
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey
func (c *AppSync) CreateApiKey(input *CreateApiKeyInput) (*CreateApiKeyOutput, error) {
@ -115,7 +116,7 @@ const opCreateDataSource = "CreateDataSource"
// CreateDataSourceRequest generates a "aws/request.Request" representing the
// client's request for the CreateDataSource operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -209,7 +210,7 @@ const opCreateGraphqlApi = "CreateGraphqlApi"
// CreateGraphqlApiRequest generates a "aws/request.Request" representing the
// client's request for the CreateGraphqlApi operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -276,9 +277,6 @@ func (c *AppSync) CreateGraphqlApiRequest(input *CreateGraphqlApiInput) (req *re
// * ErrCodeInternalFailureException "InternalFailureException"
// An internal AWS AppSync error occurred. Try your request again.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// The request exceeded a limit. Try your request again.
//
// * ErrCodeApiLimitExceededException "ApiLimitExceededException"
// The GraphQL API exceeded a limit. Try your request again.
//
@ -308,7 +306,7 @@ const opCreateResolver = "CreateResolver"
// CreateResolverRequest generates a "aws/request.Request" representing the
// client's request for the CreateResolver operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -401,7 +399,7 @@ const opCreateType = "CreateType"
// CreateTypeRequest generates a "aws/request.Request" representing the
// client's request for the CreateType operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -495,7 +493,7 @@ const opDeleteApiKey = "DeleteApiKey"
// DeleteApiKeyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApiKey operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -585,7 +583,7 @@ const opDeleteDataSource = "DeleteDataSource"
// DeleteDataSourceRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDataSource operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -679,7 +677,7 @@ const opDeleteGraphqlApi = "DeleteGraphqlApi"
// DeleteGraphqlApiRequest generates a "aws/request.Request" representing the
// client's request for the DeleteGraphqlApi operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -773,7 +771,7 @@ const opDeleteResolver = "DeleteResolver"
// DeleteResolverRequest generates a "aws/request.Request" representing the
// client's request for the DeleteResolver operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -863,7 +861,7 @@ const opDeleteType = "DeleteType"
// DeleteTypeRequest generates a "aws/request.Request" representing the
// client's request for the DeleteType operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -957,7 +955,7 @@ const opGetDataSource = "GetDataSource"
// GetDataSourceRequest generates a "aws/request.Request" representing the
// client's request for the GetDataSource operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1051,7 +1049,7 @@ const opGetGraphqlApi = "GetGraphqlApi"
// GetGraphqlApiRequest generates a "aws/request.Request" representing the
// client's request for the GetGraphqlApi operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1141,7 +1139,7 @@ const opGetIntrospectionSchema = "GetIntrospectionSchema"
// GetIntrospectionSchemaRequest generates a "aws/request.Request" representing the
// client's request for the GetIntrospectionSchema operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1230,7 +1228,7 @@ const opGetResolver = "GetResolver"
// GetResolverRequest generates a "aws/request.Request" representing the
// client's request for the GetResolver operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1317,7 +1315,7 @@ const opGetSchemaCreationStatus = "GetSchemaCreationStatus"
// GetSchemaCreationStatusRequest generates a "aws/request.Request" representing the
// client's request for the GetSchemaCreationStatus operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1407,7 +1405,7 @@ const opGetType = "GetType"
// GetTypeRequest generates a "aws/request.Request" representing the
// client's request for the GetType operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1501,7 +1499,7 @@ const opListApiKeys = "ListApiKeys"
// ListApiKeysRequest generates a "aws/request.Request" representing the
// client's request for the ListApiKeys operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1543,6 +1541,11 @@ func (c *AppSync) ListApiKeysRequest(input *ListApiKeysInput) (req *request.Requ
//
// Lists the API keys for a given API.
//
// API keys are deleted automatically sometime after they expire. However, they
// may still be included in the response until they have actually been deleted.
// You can safely call DeleteApiKey to manually delete a key before it's automatically
// 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
// the error.
@ -1591,7 +1594,7 @@ const opListDataSources = "ListDataSources"
// ListDataSourcesRequest generates a "aws/request.Request" representing the
// client's request for the ListDataSources operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1681,7 +1684,7 @@ const opListGraphqlApis = "ListGraphqlApis"
// ListGraphqlApisRequest generates a "aws/request.Request" representing the
// client's request for the ListGraphqlApis operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1767,7 +1770,7 @@ const opListResolvers = "ListResolvers"
// ListResolversRequest generates a "aws/request.Request" representing the
// client's request for the ListResolvers operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1857,7 +1860,7 @@ const opListTypes = "ListTypes"
// ListTypesRequest generates a "aws/request.Request" representing the
// client's request for the ListTypes operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -1951,7 +1954,7 @@ const opStartSchemaCreation = "StartSchemaCreation"
// StartSchemaCreationRequest generates a "aws/request.Request" representing the
// client's request for the StartSchemaCreation operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -2047,7 +2050,7 @@ const opUpdateApiKey = "UpdateApiKey"
// UpdateApiKeyRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApiKey operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -2115,7 +2118,8 @@ func (c *AppSync) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Re
// An internal AWS AppSync error occurred. Try your request again.
//
// * ErrCodeApiKeyValidityOutOfBoundsException "ApiKeyValidityOutOfBoundsException"
// The API key expiration must be set to a value between 1 and 365 days.
// The API key expiration must be set to a value between 1 and 365 days from
// creation (for CreateApiKey) or from update (for UpdateApiKey).
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey
func (c *AppSync) UpdateApiKey(input *UpdateApiKeyInput) (*UpdateApiKeyOutput, error) {
@ -2143,7 +2147,7 @@ const opUpdateDataSource = "UpdateDataSource"
// UpdateDataSourceRequest generates a "aws/request.Request" representing the
// client's request for the UpdateDataSource operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -2237,7 +2241,7 @@ const opUpdateGraphqlApi = "UpdateGraphqlApi"
// UpdateGraphqlApiRequest generates a "aws/request.Request" representing the
// client's request for the UpdateGraphqlApi operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -2331,7 +2335,7 @@ const opUpdateResolver = "UpdateResolver"
// UpdateResolverRequest generates a "aws/request.Request" representing the
// client's request for the UpdateResolver operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -2421,7 +2425,7 @@ const opUpdateType = "UpdateType"
// UpdateTypeRequest generates a "aws/request.Request" representing the
// client's request for the UpdateType operation. The "output" return
// value will be populated with the request's response once the request complets
// value will be populated with the request's response once the request completes
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
@ -2512,6 +2516,43 @@ func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput,
}
// Describes an API key.
//
// Customers invoke AWS AppSync GraphQL APIs with API keys as an identity mechanism.
// There are two key versions:
//
// da1: This version was introduced at launch in November 2017. These keys always
// expire after 7 days. Key expiration is managed by DynamoDB TTL. The keys
// will cease to be valid after Feb 21, 2018 and should not be used after that
// date.
//
// * ListApiKeys returns the expiration time in milliseconds.
//
// * CreateApiKey returns the expiration time in milliseconds.
//
// * UpdateApiKey is not available for this key version.
//
// * DeleteApiKey deletes the item from the table.
//
// * Expiration is stored in DynamoDB as milliseconds. This results in a
// bug where keys are not automatically deleted because DynamoDB expects
// the TTL to be stored in seconds. As a one-time action, we will delete
// these keys from the table after Feb 21, 2018.
//
// da2: This version was introduced in February 2018 when AppSync added support
// to extend key expiration.
//
// * ListApiKeys returns the expiration time in seconds.
//
// * CreateApiKey returns the expiration time in seconds and accepts a user-provided
// expiration time in seconds.
//
// * UpdateApiKey returns the expiration time in seconds and accepts a user-provided
// expiration time in seconds. Key expiration can only be updated while the
// key has not expired.
//
// * DeleteApiKey deletes the item from the table.
//
// * Expiration is stored in DynamoDB as seconds.
type ApiKey struct {
_ struct{} `type:"structure"`
@ -2565,9 +2606,10 @@ type CreateApiKeyInput struct {
// A description of the purpose of the API key.
Description *string `locationName:"description" type:"string"`
// The time after which the API key expires. The date is represented as seconds
// since the epoch, rounded down to the nearest hour. The default value for
// this parameter is 7 days from creation time.
// The time from creation time after which the API key expires. The date is
// represented as seconds since the epoch, rounded down to the nearest hour.
// The default value for this parameter is 7 days from creation time. For more
// information, see .
Expires *int64 `locationName:"expires" type:"long"`
}
@ -2793,11 +2835,17 @@ type CreateGraphqlApiInput struct {
// AuthenticationType is a required field
AuthenticationType *string `locationName:"authenticationType" type:"string" required:"true" enum:"AuthenticationType"`
// The Amazon CloudWatch logs configuration.
LogConfig *LogConfig `locationName:"logConfig" type:"structure"`
// A user-supplied name for the GraphqlApi.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The Open Id Connect configuration configuration.
OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"`
// The Amazon Cognito User Pool configuration.
UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"`
}
@ -2821,6 +2869,16 @@ func (s *CreateGraphqlApiInput) Validate() error {
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.LogConfig != nil {
if err := s.LogConfig.Validate(); err != nil {
invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams))
}
}
if s.OpenIDConnectConfig != nil {
if err := s.OpenIDConnectConfig.Validate(); err != nil {
invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams))
}
}
if s.UserPoolConfig != nil {
if err := s.UserPoolConfig.Validate(); err != nil {
invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams))
@ -2839,12 +2897,24 @@ func (s *CreateGraphqlApiInput) SetAuthenticationType(v string) *CreateGraphqlAp
return s
}
// SetLogConfig sets the LogConfig field's value.
func (s *CreateGraphqlApiInput) SetLogConfig(v *LogConfig) *CreateGraphqlApiInput {
s.LogConfig = v
return s
}
// SetName sets the Name field's value.
func (s *CreateGraphqlApiInput) SetName(v string) *CreateGraphqlApiInput {
s.Name = &v
return s
}
// SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value.
func (s *CreateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *CreateGraphqlApiInput {
s.OpenIDConnectConfig = v
return s
}
// SetUserPoolConfig sets the UserPoolConfig field's value.
func (s *CreateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *CreateGraphqlApiInput {
s.UserPoolConfig = v
@ -2899,10 +2969,10 @@ type CreateResolverInput struct {
// in Apache Velocity Template Language (VTL).
//
// RequestMappingTemplate is a required field
RequestMappingTemplate *string `locationName:"requestMappingTemplate" type:"string" required:"true"`
RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"`
// The mapping template to be used for responses from the data source.
ResponseMappingTemplate *string `locationName:"responseMappingTemplate" type:"string"`
ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
// The name of the Type.
//
@ -2935,6 +3005,12 @@ func (s *CreateResolverInput) Validate() error {
if s.RequestMappingTemplate == nil {
invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate"))
}
if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1))
}
if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1))
}
if s.TypeName == nil {
invalidParams.Add(request.NewErrParamRequired("TypeName"))
}
@ -3130,8 +3206,10 @@ type DataSource struct {
//
// * AWS_LAMBDA: The data source is an AWS Lambda function.
//
// * NONE: There is no data source. This type is used when the required information
// can be computed on the fly without connecting to a back-end data source.
// * NONE: There is no data source. This type is used when when you wish
// to invoke a GraphQL operation without connecting to a data source, such
// as performing data transformation with resolvers or triggering a subscription
// to be invoked from a mutation.
Type *string `locationName:"type" type:"string" enum:"DataSourceType"`
}
@ -4113,9 +4191,15 @@ type GraphqlApi struct {
// The authentication type.
AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"`
// The Amazon CloudWatch Logs configuration.
LogConfig *LogConfig `locationName:"logConfig" type:"structure"`
// The API name.
Name *string `locationName:"name" type:"string"`
// The Open Id Connect configuration.
OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"`
// The URIs.
Uris map[string]*string `locationName:"uris" type:"map"`
@ -4151,12 +4235,24 @@ func (s *GraphqlApi) SetAuthenticationType(v string) *GraphqlApi {
return s
}
// SetLogConfig sets the LogConfig field's value.
func (s *GraphqlApi) SetLogConfig(v *LogConfig) *GraphqlApi {
s.LogConfig = v
return s
}
// SetName sets the Name field's value.
func (s *GraphqlApi) SetName(v string) *GraphqlApi {
s.Name = &v
return s
}
// SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value.
func (s *GraphqlApi) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *GraphqlApi {
s.OpenIDConnectConfig = v
return s
}
// SetUris sets the Uris field's value.
func (s *GraphqlApi) SetUris(v map[string]*string) *GraphqlApi {
s.Uris = v
@ -4662,6 +4758,147 @@ func (s *ListTypesOutput) SetTypes(v []*Type) *ListTypesOutput {
return s
}
// The CloudWatch Logs configuration.
type LogConfig struct {
_ struct{} `type:"structure"`
// The service role that AWS AppSync will assume to publish to Amazon CloudWatch
// logs in your account.
//
// CloudWatchLogsRoleArn is a required field
CloudWatchLogsRoleArn *string `locationName:"cloudWatchLogsRoleArn" type:"string" required:"true"`
// The field logging level. Values can be NONE, ERROR, ALL.
//
// * NONE: No field-level logs are captured.
//
// * ERROR: Logs the following information only for the fields that are in
// error:
//
// The error section in the server response.
//
// Field-level errors.
//
// The generated request/response functions that got resolved for error fields.
//
// * ALL: The following information is logged for all fields in the query:
//
// Field-level tracing information.
//
// The generated request/response functions that got resolved for each field.
//
// FieldLogLevel is a required field
FieldLogLevel *string `locationName:"fieldLogLevel" type:"string" required:"true" enum:"FieldLogLevel"`
}
// String returns the string representation
func (s LogConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LogConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *LogConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "LogConfig"}
if s.CloudWatchLogsRoleArn == nil {
invalidParams.Add(request.NewErrParamRequired("CloudWatchLogsRoleArn"))
}
if s.FieldLogLevel == nil {
invalidParams.Add(request.NewErrParamRequired("FieldLogLevel"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value.
func (s *LogConfig) SetCloudWatchLogsRoleArn(v string) *LogConfig {
s.CloudWatchLogsRoleArn = &v
return s
}
// SetFieldLogLevel sets the FieldLogLevel field's value.
func (s *LogConfig) SetFieldLogLevel(v string) *LogConfig {
s.FieldLogLevel = &v
return s
}
// Describes an Open Id Connect configuration.
type OpenIDConnectConfig struct {
_ struct{} `type:"structure"`
// The number of milliseconds a token is valid after being authenticated.
AuthTTL *int64 `locationName:"authTTL" type:"long"`
// The client identifier of the Relying party at the OpenID Provider. This identifier
// is typically obtained when the Relying party is registered with the OpenID
// Provider. You can specify a regular expression so the AWS AppSync can validate
// against multiple client identifiers at a time
ClientId *string `locationName:"clientId" type:"string"`
// The number of milliseconds a token is valid after being issued to a user.
IatTTL *int64 `locationName:"iatTTL" type:"long"`
// The issuer for the open id connect configuration. The issuer returned by
// discovery MUST exactly match the value of iss in the ID Token.
//
// Issuer is a required field
Issuer *string `locationName:"issuer" type:"string" required:"true"`
}
// String returns the string representation
func (s OpenIDConnectConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s OpenIDConnectConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *OpenIDConnectConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "OpenIDConnectConfig"}
if s.Issuer == nil {
invalidParams.Add(request.NewErrParamRequired("Issuer"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAuthTTL sets the AuthTTL field's value.
func (s *OpenIDConnectConfig) SetAuthTTL(v int64) *OpenIDConnectConfig {
s.AuthTTL = &v
return s
}
// SetClientId sets the ClientId field's value.
func (s *OpenIDConnectConfig) SetClientId(v string) *OpenIDConnectConfig {
s.ClientId = &v
return s
}
// SetIatTTL sets the IatTTL field's value.
func (s *OpenIDConnectConfig) SetIatTTL(v int64) *OpenIDConnectConfig {
s.IatTTL = &v
return s
}
// SetIssuer sets the Issuer field's value.
func (s *OpenIDConnectConfig) SetIssuer(v string) *OpenIDConnectConfig {
s.Issuer = &v
return s
}
// Describes a resolver.
type Resolver struct {
_ struct{} `type:"structure"`
@ -4673,13 +4910,13 @@ type Resolver struct {
FieldName *string `locationName:"fieldName" type:"string"`
// The request mapping template.
RequestMappingTemplate *string `locationName:"requestMappingTemplate" type:"string"`
RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"`
// The resolver ARN.
ResolverArn *string `locationName:"resolverArn" type:"string"`
// The response mapping template.
ResponseMappingTemplate *string `locationName:"responseMappingTemplate" type:"string"`
ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
// The resolver type name.
TypeName *string `locationName:"typeName" type:"string"`
@ -4880,8 +5117,8 @@ type UpdateApiKeyInput struct {
// A description of the purpose of the API key.
Description *string `locationName:"description" type:"string"`
// The time after which the API key expires. The date is represented as seconds
// since the epoch.
// The time from update time after which the API key expires. The date is represented
// as seconds since the epoch. For more information, see .
Expires *int64 `locationName:"expires" type:"long"`
// The API key ID.
@ -5123,11 +5360,17 @@ type UpdateGraphqlApiInput struct {
// The new authentication type for the GraphqlApi object.
AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"`
// The Amazon CloudWatch logs configuration for the GraphqlApi object.
LogConfig *LogConfig `locationName:"logConfig" type:"structure"`
// The new name for the GraphqlApi object.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
// The Open Id Connect configuration configuration for the GraphqlApi object.
OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"`
// The new Amazon Cognito User Pool configuration for the GraphqlApi object.
UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"`
}
@ -5151,6 +5394,16 @@ func (s *UpdateGraphqlApiInput) Validate() error {
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.LogConfig != nil {
if err := s.LogConfig.Validate(); err != nil {
invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams))
}
}
if s.OpenIDConnectConfig != nil {
if err := s.OpenIDConnectConfig.Validate(); err != nil {
invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams))
}
}
if s.UserPoolConfig != nil {
if err := s.UserPoolConfig.Validate(); err != nil {
invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams))
@ -5175,12 +5428,24 @@ func (s *UpdateGraphqlApiInput) SetAuthenticationType(v string) *UpdateGraphqlAp
return s
}
// SetLogConfig sets the LogConfig field's value.
func (s *UpdateGraphqlApiInput) SetLogConfig(v *LogConfig) *UpdateGraphqlApiInput {
s.LogConfig = v
return s
}
// SetName sets the Name field's value.
func (s *UpdateGraphqlApiInput) SetName(v string) *UpdateGraphqlApiInput {
s.Name = &v
return s
}
// SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value.
func (s *UpdateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *UpdateGraphqlApiInput {
s.OpenIDConnectConfig = v
return s
}
// SetUserPoolConfig sets the UserPoolConfig field's value.
func (s *UpdateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *UpdateGraphqlApiInput {
s.UserPoolConfig = v
@ -5231,10 +5496,10 @@ type UpdateResolverInput struct {
// The new request mapping template.
//
// RequestMappingTemplate is a required field
RequestMappingTemplate *string `locationName:"requestMappingTemplate" type:"string" required:"true"`
RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"`
// The new response mapping template.
ResponseMappingTemplate *string `locationName:"responseMappingTemplate" type:"string"`
ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"`
// The new type name.
//
@ -5267,6 +5532,12 @@ func (s *UpdateResolverInput) Validate() error {
if s.RequestMappingTemplate == nil {
invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate"))
}
if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1))
}
if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1))
}
if s.TypeName == nil {
invalidParams.Add(request.NewErrParamRequired("TypeName"))
}
@ -5522,6 +5793,9 @@ const (
// AuthenticationTypeAmazonCognitoUserPools is a AuthenticationType enum value
AuthenticationTypeAmazonCognitoUserPools = "AMAZON_COGNITO_USER_POOLS"
// AuthenticationTypeOpenidConnect is a AuthenticationType enum value
AuthenticationTypeOpenidConnect = "OPENID_CONNECT"
)
const (
@ -5546,6 +5820,17 @@ const (
DefaultActionDeny = "DENY"
)
const (
// FieldLogLevelNone is a FieldLogLevel enum value
FieldLogLevelNone = "NONE"
// FieldLogLevelError is a FieldLogLevel enum value
FieldLogLevelError = "ERROR"
// FieldLogLevelAll is a FieldLogLevel enum value
FieldLogLevelAll = "ALL"
)
const (
// OutputTypeSdl is a OutputType enum value
OutputTypeSdl = "SDL"