// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package appsync 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/restjson" ) const opAssociateApi = "AssociateApi" // AssociateApiRequest generates a "aws/request.Request" representing the // client's request for the AssociateApi 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 AssociateApi for more information on using the AssociateApi // 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 AssociateApiRequest method. // req, resp := client.AssociateApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi func (c *AppSync) AssociateApiRequest(input *AssociateApiInput) (req *request.Request, output *AssociateApiOutput) { op := &request.Operation{ Name: opAssociateApi, HTTPMethod: "POST", HTTPPath: "/v1/domainnames/{domainName}/apiassociation", } if input == nil { input = &AssociateApiInput{} } output = &AssociateApiOutput{} req = c.newRequest(op, input, output) return } // AssociateApi API operation for AWS AppSync. // // Maps an endpoint to your custom 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 AWS AppSync's // API operation AssociateApi for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateApi func (c *AppSync) AssociateApi(input *AssociateApiInput) (*AssociateApiOutput, error) { req, out := c.AssociateApiRequest(input) return out, req.Send() } // AssociateApiWithContext is the same as AssociateApi with the addition of // the ability to pass a context and additional request options. // // See AssociateApi 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 *AppSync) AssociateApiWithContext(ctx aws.Context, input *AssociateApiInput, opts ...request.Option) (*AssociateApiOutput, error) { req, out := c.AssociateApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opAssociateMergedGraphqlApi = "AssociateMergedGraphqlApi" // AssociateMergedGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the AssociateMergedGraphqlApi 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 AssociateMergedGraphqlApi for more information on using the AssociateMergedGraphqlApi // 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 AssociateMergedGraphqlApiRequest method. // req, resp := client.AssociateMergedGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi func (c *AppSync) AssociateMergedGraphqlApiRequest(input *AssociateMergedGraphqlApiInput) (req *request.Request, output *AssociateMergedGraphqlApiOutput) { op := &request.Operation{ Name: opAssociateMergedGraphqlApi, HTTPMethod: "POST", HTTPPath: "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations", } if input == nil { input = &AssociateMergedGraphqlApiInput{} } output = &AssociateMergedGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // AssociateMergedGraphqlApi API operation for AWS AppSync. // // Creates an association between a Merged API and source API using the source // API's 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 AWS AppSync's // API operation AssociateMergedGraphqlApi for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateMergedGraphqlApi func (c *AppSync) AssociateMergedGraphqlApi(input *AssociateMergedGraphqlApiInput) (*AssociateMergedGraphqlApiOutput, error) { req, out := c.AssociateMergedGraphqlApiRequest(input) return out, req.Send() } // AssociateMergedGraphqlApiWithContext is the same as AssociateMergedGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See AssociateMergedGraphqlApi 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 *AppSync) AssociateMergedGraphqlApiWithContext(ctx aws.Context, input *AssociateMergedGraphqlApiInput, opts ...request.Option) (*AssociateMergedGraphqlApiOutput, error) { req, out := c.AssociateMergedGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opAssociateSourceGraphqlApi = "AssociateSourceGraphqlApi" // AssociateSourceGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the AssociateSourceGraphqlApi 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 AssociateSourceGraphqlApi for more information on using the AssociateSourceGraphqlApi // 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 AssociateSourceGraphqlApiRequest method. // req, resp := client.AssociateSourceGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi func (c *AppSync) AssociateSourceGraphqlApiRequest(input *AssociateSourceGraphqlApiInput) (req *request.Request, output *AssociateSourceGraphqlApiOutput) { op := &request.Operation{ Name: opAssociateSourceGraphqlApi, HTTPMethod: "POST", HTTPPath: "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations", } if input == nil { input = &AssociateSourceGraphqlApiInput{} } output = &AssociateSourceGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // AssociateSourceGraphqlApi API operation for AWS AppSync. // // Creates an association between a Merged API and source API using the Merged // API's 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 AWS AppSync's // API operation AssociateSourceGraphqlApi for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/AssociateSourceGraphqlApi func (c *AppSync) AssociateSourceGraphqlApi(input *AssociateSourceGraphqlApiInput) (*AssociateSourceGraphqlApiOutput, error) { req, out := c.AssociateSourceGraphqlApiRequest(input) return out, req.Send() } // AssociateSourceGraphqlApiWithContext is the same as AssociateSourceGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See AssociateSourceGraphqlApi 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 *AppSync) AssociateSourceGraphqlApiWithContext(ctx aws.Context, input *AssociateSourceGraphqlApiInput, opts ...request.Option) (*AssociateSourceGraphqlApiOutput, error) { req, out := c.AssociateSourceGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateApiCache = "CreateApiCache" // CreateApiCacheRequest generates a "aws/request.Request" representing the // client's request for the CreateApiCache 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 CreateApiCache for more information on using the CreateApiCache // 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 CreateApiCacheRequest method. // req, resp := client.CreateApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache func (c *AppSync) CreateApiCacheRequest(input *CreateApiCacheInput) (req *request.Request, output *CreateApiCacheOutput) { op := &request.Operation{ Name: opCreateApiCache, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/ApiCaches", } if input == nil { input = &CreateApiCacheInput{} } output = &CreateApiCacheOutput{} req = c.newRequest(op, input, output) return } // CreateApiCache API operation for AWS AppSync. // // Creates a cache for the GraphQL 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateApiCache for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache func (c *AppSync) CreateApiCache(input *CreateApiCacheInput) (*CreateApiCacheOutput, error) { req, out := c.CreateApiCacheRequest(input) return out, req.Send() } // CreateApiCacheWithContext is the same as CreateApiCache with the addition of // the ability to pass a context and additional request options. // // See CreateApiCache 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 *AppSync) CreateApiCacheWithContext(ctx aws.Context, input *CreateApiCacheInput, opts ...request.Option) (*CreateApiCacheOutput, error) { req, out := c.CreateApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 CreateApiKey for more information on using the CreateApiKey // 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 CreateApiKeyRequest method. // req, resp := client.CreateApiKeyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKey func (c *AppSync) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Request, output *CreateApiKeyOutput) { op := &request.Operation{ Name: opCreateApiKey, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/apikeys", } if input == nil { input = &CreateApiKeyInput{} } output = &CreateApiKeyOutput{} req = c.newRequest(op, input, output) return } // CreateApiKey API operation for AWS AppSync. // // Creates a unique key that you can distribute to clients who invoke your 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation CreateApiKey for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - ApiKeyLimitExceededException // The API key exceeded a limit. Try your request again. // // - ApiKeyValidityOutOfBoundsException // 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) { req, out := c.CreateApiKeyRequest(input) return out, req.Send() } // CreateApiKeyWithContext is the same as CreateApiKey with the addition of // the ability to pass a context and additional request options. // // See CreateApiKey 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 *AppSync) CreateApiKeyWithContext(ctx aws.Context, input *CreateApiKeyInput, opts ...request.Option) (*CreateApiKeyOutput, error) { req, out := c.CreateApiKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 CreateDataSource for more information on using the CreateDataSource // 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 CreateDataSourceRequest method. // req, resp := client.CreateDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource func (c *AppSync) CreateDataSourceRequest(input *CreateDataSourceInput) (req *request.Request, output *CreateDataSourceOutput) { op := &request.Operation{ Name: opCreateDataSource, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/datasources", } if input == nil { input = &CreateDataSourceInput{} } output = &CreateDataSourceOutput{} req = c.newRequest(op, input, output) return } // CreateDataSource API operation for AWS AppSync. // // Creates a DataSource 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 AppSync's // API operation CreateDataSource for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource func (c *AppSync) CreateDataSource(input *CreateDataSourceInput) (*CreateDataSourceOutput, error) { req, out := c.CreateDataSourceRequest(input) return out, req.Send() } // CreateDataSourceWithContext is the same as CreateDataSource with the addition of // the ability to pass a context and additional request options. // // See CreateDataSource 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 *AppSync) CreateDataSourceWithContext(ctx aws.Context, input *CreateDataSourceInput, opts ...request.Option) (*CreateDataSourceOutput, error) { req, out := c.CreateDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateDomainName = "CreateDomainName" // CreateDomainNameRequest generates a "aws/request.Request" representing the // client's request for the CreateDomainName 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 CreateDomainName for more information on using the CreateDomainName // 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 CreateDomainNameRequest method. // req, resp := client.CreateDomainNameRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName func (c *AppSync) CreateDomainNameRequest(input *CreateDomainNameInput) (req *request.Request, output *CreateDomainNameOutput) { op := &request.Operation{ Name: opCreateDomainName, HTTPMethod: "POST", HTTPPath: "/v1/domainnames", } if input == nil { input = &CreateDomainNameInput{} } output = &CreateDomainNameOutput{} req = c.newRequest(op, input, output) return } // CreateDomainName API operation for AWS AppSync. // // Creates a custom DomainName 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 AppSync's // API operation CreateDomainName for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDomainName func (c *AppSync) CreateDomainName(input *CreateDomainNameInput) (*CreateDomainNameOutput, error) { req, out := c.CreateDomainNameRequest(input) return out, req.Send() } // CreateDomainNameWithContext is the same as CreateDomainName with the addition of // the ability to pass a context and additional request options. // // See CreateDomainName 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 *AppSync) CreateDomainNameWithContext(ctx aws.Context, input *CreateDomainNameInput, opts ...request.Option) (*CreateDomainNameOutput, error) { req, out := c.CreateDomainNameRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateFunction = "CreateFunction" // CreateFunctionRequest generates a "aws/request.Request" representing the // client's request for the CreateFunction 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 CreateFunction for more information on using the CreateFunction // 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 CreateFunctionRequest method. // req, resp := client.CreateFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction func (c *AppSync) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *CreateFunctionOutput) { op := &request.Operation{ Name: opCreateFunction, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/functions", } if input == nil { input = &CreateFunctionInput{} } output = &CreateFunctionOutput{} req = c.newRequest(op, input, output) return } // CreateFunction API operation for AWS AppSync. // // Creates a Function object. // // A function is a reusable entity. You can use multiple functions to compose // the resolver logic. // // Returns awserr.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 AppSync's // API operation CreateFunction for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction func (c *AppSync) CreateFunction(input *CreateFunctionInput) (*CreateFunctionOutput, error) { req, out := c.CreateFunctionRequest(input) return out, req.Send() } // CreateFunctionWithContext is the same as CreateFunction with the addition of // the ability to pass a context and additional request options. // // See CreateFunction 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 *AppSync) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctionInput, opts ...request.Option) (*CreateFunctionOutput, error) { req, out := c.CreateFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 CreateGraphqlApi for more information on using the CreateGraphqlApi // 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 CreateGraphqlApiRequest method. // req, resp := client.CreateGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi func (c *AppSync) CreateGraphqlApiRequest(input *CreateGraphqlApiInput) (req *request.Request, output *CreateGraphqlApiOutput) { op := &request.Operation{ Name: opCreateGraphqlApi, HTTPMethod: "POST", HTTPPath: "/v1/apis", } if input == nil { input = &CreateGraphqlApiInput{} } output = &CreateGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // CreateGraphqlApi API operation for AWS AppSync. // // Creates a GraphqlApi 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 AppSync's // API operation CreateGraphqlApi for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - ApiLimitExceededException // The GraphQL API exceeded a limit. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi func (c *AppSync) CreateGraphqlApi(input *CreateGraphqlApiInput) (*CreateGraphqlApiOutput, error) { req, out := c.CreateGraphqlApiRequest(input) return out, req.Send() } // CreateGraphqlApiWithContext is the same as CreateGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See CreateGraphqlApi 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 *AppSync) CreateGraphqlApiWithContext(ctx aws.Context, input *CreateGraphqlApiInput, opts ...request.Option) (*CreateGraphqlApiOutput, error) { req, out := c.CreateGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 CreateResolver for more information on using the CreateResolver // 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 CreateResolverRequest method. // req, resp := client.CreateResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver func (c *AppSync) CreateResolverRequest(input *CreateResolverInput) (req *request.Request, output *CreateResolverOutput) { op := &request.Operation{ Name: opCreateResolver, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers", } if input == nil { input = &CreateResolverInput{} } output = &CreateResolverOutput{} req = c.newRequest(op, input, output) return } // CreateResolver API operation for AWS AppSync. // // Creates a Resolver object. // // A resolver converts incoming requests into a format that a data source can // understand, and converts the data source's responses into GraphQL. // // Returns awserr.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 AppSync's // API operation CreateResolver for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - BadRequestException // 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver func (c *AppSync) CreateResolver(input *CreateResolverInput) (*CreateResolverOutput, error) { req, out := c.CreateResolverRequest(input) return out, req.Send() } // CreateResolverWithContext is the same as CreateResolver with the addition of // the ability to pass a context and additional request options. // // See CreateResolver 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 *AppSync) CreateResolverWithContext(ctx aws.Context, input *CreateResolverInput, opts ...request.Option) (*CreateResolverOutput, error) { req, out := c.CreateResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 CreateType for more information on using the CreateType // 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 CreateTypeRequest method. // req, resp := client.CreateTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType func (c *AppSync) CreateTypeRequest(input *CreateTypeInput) (req *request.Request, output *CreateTypeOutput) { op := &request.Operation{ Name: opCreateType, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types", } if input == nil { input = &CreateTypeInput{} } output = &CreateTypeOutput{} req = c.newRequest(op, input, output) return } // CreateType API operation for AWS AppSync. // // Creates a Type 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 AppSync's // API operation CreateType for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType func (c *AppSync) CreateType(input *CreateTypeInput) (*CreateTypeOutput, error) { req, out := c.CreateTypeRequest(input) return out, req.Send() } // CreateTypeWithContext is the same as CreateType with the addition of // the ability to pass a context and additional request options. // // See CreateType 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 *AppSync) CreateTypeWithContext(ctx aws.Context, input *CreateTypeInput, opts ...request.Option) (*CreateTypeOutput, error) { req, out := c.CreateTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteApiCache = "DeleteApiCache" // DeleteApiCacheRequest generates a "aws/request.Request" representing the // client's request for the DeleteApiCache 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 DeleteApiCache for more information on using the DeleteApiCache // 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 DeleteApiCacheRequest method. // req, resp := client.DeleteApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache func (c *AppSync) DeleteApiCacheRequest(input *DeleteApiCacheInput) (req *request.Request, output *DeleteApiCacheOutput) { op := &request.Operation{ Name: opDeleteApiCache, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/ApiCaches", } if input == nil { input = &DeleteApiCacheInput{} } output = &DeleteApiCacheOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteApiCache API operation for AWS AppSync. // // Deletes an ApiCache 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 AppSync's // API operation DeleteApiCache for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache func (c *AppSync) DeleteApiCache(input *DeleteApiCacheInput) (*DeleteApiCacheOutput, error) { req, out := c.DeleteApiCacheRequest(input) return out, req.Send() } // DeleteApiCacheWithContext is the same as DeleteApiCache with the addition of // the ability to pass a context and additional request options. // // See DeleteApiCache 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 *AppSync) DeleteApiCacheWithContext(ctx aws.Context, input *DeleteApiCacheInput, opts ...request.Option) (*DeleteApiCacheOutput, error) { req, out := c.DeleteApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 DeleteApiKey for more information on using the DeleteApiKey // 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 DeleteApiKeyRequest method. // req, resp := client.DeleteApiKeyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey func (c *AppSync) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Request, output *DeleteApiKeyOutput) { op := &request.Operation{ Name: opDeleteApiKey, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/apikeys/{id}", } if input == nil { input = &DeleteApiKeyInput{} } output = &DeleteApiKeyOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteApiKey API operation for AWS AppSync. // // Deletes an API key. // // Returns awserr.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 AppSync's // API operation DeleteApiKey for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey func (c *AppSync) DeleteApiKey(input *DeleteApiKeyInput) (*DeleteApiKeyOutput, error) { req, out := c.DeleteApiKeyRequest(input) return out, req.Send() } // DeleteApiKeyWithContext is the same as DeleteApiKey with the addition of // the ability to pass a context and additional request options. // // See DeleteApiKey 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 *AppSync) DeleteApiKeyWithContext(ctx aws.Context, input *DeleteApiKeyInput, opts ...request.Option) (*DeleteApiKeyOutput, error) { req, out := c.DeleteApiKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 DeleteDataSource for more information on using the DeleteDataSource // 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 DeleteDataSourceRequest method. // req, resp := client.DeleteDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource func (c *AppSync) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *request.Request, output *DeleteDataSourceOutput) { op := &request.Operation{ Name: opDeleteDataSource, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/datasources/{name}", } if input == nil { input = &DeleteDataSourceInput{} } output = &DeleteDataSourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteDataSource API operation for AWS AppSync. // // Deletes a DataSource 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 AppSync's // API operation DeleteDataSource for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource func (c *AppSync) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { req, out := c.DeleteDataSourceRequest(input) return out, req.Send() } // DeleteDataSourceWithContext is the same as DeleteDataSource with the addition of // the ability to pass a context and additional request options. // // See DeleteDataSource 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 *AppSync) DeleteDataSourceWithContext(ctx aws.Context, input *DeleteDataSourceInput, opts ...request.Option) (*DeleteDataSourceOutput, error) { req, out := c.DeleteDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteDomainName = "DeleteDomainName" // DeleteDomainNameRequest generates a "aws/request.Request" representing the // client's request for the DeleteDomainName 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 DeleteDomainName for more information on using the DeleteDomainName // 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 DeleteDomainNameRequest method. // req, resp := client.DeleteDomainNameRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName func (c *AppSync) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req *request.Request, output *DeleteDomainNameOutput) { op := &request.Operation{ Name: opDeleteDomainName, HTTPMethod: "DELETE", HTTPPath: "/v1/domainnames/{domainName}", } if input == nil { input = &DeleteDomainNameInput{} } output = &DeleteDomainNameOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteDomainName API operation for AWS AppSync. // // Deletes a custom DomainName 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 AppSync's // API operation DeleteDomainName for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDomainName func (c *AppSync) DeleteDomainName(input *DeleteDomainNameInput) (*DeleteDomainNameOutput, error) { req, out := c.DeleteDomainNameRequest(input) return out, req.Send() } // DeleteDomainNameWithContext is the same as DeleteDomainName with the addition of // the ability to pass a context and additional request options. // // See DeleteDomainName 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 *AppSync) DeleteDomainNameWithContext(ctx aws.Context, input *DeleteDomainNameInput, opts ...request.Option) (*DeleteDomainNameOutput, error) { req, out := c.DeleteDomainNameRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteFunction = "DeleteFunction" // DeleteFunctionRequest generates a "aws/request.Request" representing the // client's request for the DeleteFunction 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 DeleteFunction for more information on using the DeleteFunction // 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 DeleteFunctionRequest method. // req, resp := client.DeleteFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction func (c *AppSync) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) { op := &request.Operation{ Name: opDeleteFunction, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", } if input == nil { input = &DeleteFunctionInput{} } output = &DeleteFunctionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteFunction API operation for AWS AppSync. // // Deletes a Function. // // Returns awserr.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 AppSync's // API operation DeleteFunction for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction func (c *AppSync) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { req, out := c.DeleteFunctionRequest(input) return out, req.Send() } // DeleteFunctionWithContext is the same as DeleteFunction with the addition of // the ability to pass a context and additional request options. // // See DeleteFunction 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 *AppSync) DeleteFunctionWithContext(ctx aws.Context, input *DeleteFunctionInput, opts ...request.Option) (*DeleteFunctionOutput, error) { req, out := c.DeleteFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 DeleteGraphqlApi for more information on using the DeleteGraphqlApi // 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 DeleteGraphqlApiRequest method. // req, resp := client.DeleteGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi func (c *AppSync) DeleteGraphqlApiRequest(input *DeleteGraphqlApiInput) (req *request.Request, output *DeleteGraphqlApiOutput) { op := &request.Operation{ Name: opDeleteGraphqlApi, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}", } if input == nil { input = &DeleteGraphqlApiInput{} } output = &DeleteGraphqlApiOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteGraphqlApi API operation for AWS AppSync. // // Deletes a GraphqlApi 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 AppSync's // API operation DeleteGraphqlApi for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi func (c *AppSync) DeleteGraphqlApi(input *DeleteGraphqlApiInput) (*DeleteGraphqlApiOutput, error) { req, out := c.DeleteGraphqlApiRequest(input) return out, req.Send() } // DeleteGraphqlApiWithContext is the same as DeleteGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See DeleteGraphqlApi 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 *AppSync) DeleteGraphqlApiWithContext(ctx aws.Context, input *DeleteGraphqlApiInput, opts ...request.Option) (*DeleteGraphqlApiOutput, error) { req, out := c.DeleteGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 DeleteResolver for more information on using the DeleteResolver // 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 DeleteResolverRequest method. // req, resp := client.DeleteResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver func (c *AppSync) DeleteResolverRequest(input *DeleteResolverInput) (req *request.Request, output *DeleteResolverOutput) { op := &request.Operation{ Name: opDeleteResolver, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}", } if input == nil { input = &DeleteResolverInput{} } output = &DeleteResolverOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteResolver API operation for AWS AppSync. // // Deletes a Resolver 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 AppSync's // API operation DeleteResolver for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - BadRequestException // 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver func (c *AppSync) DeleteResolver(input *DeleteResolverInput) (*DeleteResolverOutput, error) { req, out := c.DeleteResolverRequest(input) return out, req.Send() } // DeleteResolverWithContext is the same as DeleteResolver with the addition of // the ability to pass a context and additional request options. // // See DeleteResolver 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 *AppSync) DeleteResolverWithContext(ctx aws.Context, input *DeleteResolverInput, opts ...request.Option) (*DeleteResolverOutput, error) { req, out := c.DeleteResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 DeleteType for more information on using the DeleteType // 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 DeleteTypeRequest method. // req, resp := client.DeleteTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType func (c *AppSync) DeleteTypeRequest(input *DeleteTypeInput) (req *request.Request, output *DeleteTypeOutput) { op := &request.Operation{ Name: opDeleteType, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/types/{typeName}", } if input == nil { input = &DeleteTypeInput{} } output = &DeleteTypeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteType API operation for AWS AppSync. // // Deletes a Type 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 AppSync's // API operation DeleteType for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType func (c *AppSync) DeleteType(input *DeleteTypeInput) (*DeleteTypeOutput, error) { req, out := c.DeleteTypeRequest(input) return out, req.Send() } // DeleteTypeWithContext is the same as DeleteType with the addition of // the ability to pass a context and additional request options. // // See DeleteType 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 *AppSync) DeleteTypeWithContext(ctx aws.Context, input *DeleteTypeInput, opts ...request.Option) (*DeleteTypeOutput, error) { req, out := c.DeleteTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateApi = "DisassociateApi" // DisassociateApiRequest generates a "aws/request.Request" representing the // client's request for the DisassociateApi 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 DisassociateApi for more information on using the DisassociateApi // 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 DisassociateApiRequest method. // req, resp := client.DisassociateApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi func (c *AppSync) DisassociateApiRequest(input *DisassociateApiInput) (req *request.Request, output *DisassociateApiOutput) { op := &request.Operation{ Name: opDisassociateApi, HTTPMethod: "DELETE", HTTPPath: "/v1/domainnames/{domainName}/apiassociation", } if input == nil { input = &DisassociateApiInput{} } output = &DisassociateApiOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DisassociateApi API operation for AWS AppSync. // // Removes an ApiAssociation object from a custom 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 AWS AppSync's // API operation DisassociateApi for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateApi func (c *AppSync) DisassociateApi(input *DisassociateApiInput) (*DisassociateApiOutput, error) { req, out := c.DisassociateApiRequest(input) return out, req.Send() } // DisassociateApiWithContext is the same as DisassociateApi with the addition of // the ability to pass a context and additional request options. // // See DisassociateApi 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 *AppSync) DisassociateApiWithContext(ctx aws.Context, input *DisassociateApiInput, opts ...request.Option) (*DisassociateApiOutput, error) { req, out := c.DisassociateApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateMergedGraphqlApi = "DisassociateMergedGraphqlApi" // DisassociateMergedGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the DisassociateMergedGraphqlApi 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 DisassociateMergedGraphqlApi for more information on using the DisassociateMergedGraphqlApi // 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 DisassociateMergedGraphqlApiRequest method. // req, resp := client.DisassociateMergedGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi func (c *AppSync) DisassociateMergedGraphqlApiRequest(input *DisassociateMergedGraphqlApiInput) (req *request.Request, output *DisassociateMergedGraphqlApiOutput) { op := &request.Operation{ Name: opDisassociateMergedGraphqlApi, HTTPMethod: "DELETE", HTTPPath: "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}", } if input == nil { input = &DisassociateMergedGraphqlApiInput{} } output = &DisassociateMergedGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // DisassociateMergedGraphqlApi API operation for AWS AppSync. // // Deletes an association between a Merged API and source API using the source // API's identifier and the association 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DisassociateMergedGraphqlApi for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateMergedGraphqlApi func (c *AppSync) DisassociateMergedGraphqlApi(input *DisassociateMergedGraphqlApiInput) (*DisassociateMergedGraphqlApiOutput, error) { req, out := c.DisassociateMergedGraphqlApiRequest(input) return out, req.Send() } // DisassociateMergedGraphqlApiWithContext is the same as DisassociateMergedGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See DisassociateMergedGraphqlApi 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 *AppSync) DisassociateMergedGraphqlApiWithContext(ctx aws.Context, input *DisassociateMergedGraphqlApiInput, opts ...request.Option) (*DisassociateMergedGraphqlApiOutput, error) { req, out := c.DisassociateMergedGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDisassociateSourceGraphqlApi = "DisassociateSourceGraphqlApi" // DisassociateSourceGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the DisassociateSourceGraphqlApi 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 DisassociateSourceGraphqlApi for more information on using the DisassociateSourceGraphqlApi // 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 DisassociateSourceGraphqlApiRequest method. // req, resp := client.DisassociateSourceGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi func (c *AppSync) DisassociateSourceGraphqlApiRequest(input *DisassociateSourceGraphqlApiInput) (req *request.Request, output *DisassociateSourceGraphqlApiOutput) { op := &request.Operation{ Name: opDisassociateSourceGraphqlApi, HTTPMethod: "DELETE", HTTPPath: "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}", } if input == nil { input = &DisassociateSourceGraphqlApiInput{} } output = &DisassociateSourceGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // DisassociateSourceGraphqlApi API operation for AWS AppSync. // // Deletes an association between a Merged API and source API using the Merged // API's identifier and the association 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation DisassociateSourceGraphqlApi for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DisassociateSourceGraphqlApi func (c *AppSync) DisassociateSourceGraphqlApi(input *DisassociateSourceGraphqlApiInput) (*DisassociateSourceGraphqlApiOutput, error) { req, out := c.DisassociateSourceGraphqlApiRequest(input) return out, req.Send() } // DisassociateSourceGraphqlApiWithContext is the same as DisassociateSourceGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See DisassociateSourceGraphqlApi 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 *AppSync) DisassociateSourceGraphqlApiWithContext(ctx aws.Context, input *DisassociateSourceGraphqlApiInput, opts ...request.Option) (*DisassociateSourceGraphqlApiOutput, error) { req, out := c.DisassociateSourceGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opEvaluateCode = "EvaluateCode" // EvaluateCodeRequest generates a "aws/request.Request" representing the // client's request for the EvaluateCode 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 EvaluateCode for more information on using the EvaluateCode // 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 EvaluateCodeRequest method. // req, resp := client.EvaluateCodeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode func (c *AppSync) EvaluateCodeRequest(input *EvaluateCodeInput) (req *request.Request, output *EvaluateCodeOutput) { op := &request.Operation{ Name: opEvaluateCode, HTTPMethod: "POST", HTTPPath: "/v1/dataplane-evaluatecode", } if input == nil { input = &EvaluateCodeInput{} } output = &EvaluateCodeOutput{} req = c.newRequest(op, input, output) return } // EvaluateCode API operation for AWS AppSync. // // Evaluates the given code and returns the response. The code definition requirements // depend on the specified runtime. For APPSYNC_JS runtimes, the code defines // the request and response functions. The request function takes the incoming // request after a GraphQL operation is parsed and converts it into a request // configuration for the selected data source operation. The response function // interprets responses from the data source and maps it to the shape of the // GraphQL field output 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. // // See the AWS API reference guide for AWS AppSync's // API operation EvaluateCode for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - BadRequestException // 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode func (c *AppSync) EvaluateCode(input *EvaluateCodeInput) (*EvaluateCodeOutput, error) { req, out := c.EvaluateCodeRequest(input) return out, req.Send() } // EvaluateCodeWithContext is the same as EvaluateCode with the addition of // the ability to pass a context and additional request options. // // See EvaluateCode 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 *AppSync) EvaluateCodeWithContext(ctx aws.Context, input *EvaluateCodeInput, opts ...request.Option) (*EvaluateCodeOutput, error) { req, out := c.EvaluateCodeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opEvaluateMappingTemplate = "EvaluateMappingTemplate" // EvaluateMappingTemplateRequest generates a "aws/request.Request" representing the // client's request for the EvaluateMappingTemplate 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 EvaluateMappingTemplate for more information on using the EvaluateMappingTemplate // 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 EvaluateMappingTemplateRequest method. // req, resp := client.EvaluateMappingTemplateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate func (c *AppSync) EvaluateMappingTemplateRequest(input *EvaluateMappingTemplateInput) (req *request.Request, output *EvaluateMappingTemplateOutput) { op := &request.Operation{ Name: opEvaluateMappingTemplate, HTTPMethod: "POST", HTTPPath: "/v1/dataplane-evaluatetemplate", } if input == nil { input = &EvaluateMappingTemplateInput{} } output = &EvaluateMappingTemplateOutput{} req = c.newRequest(op, input, output) return } // EvaluateMappingTemplate API operation for AWS AppSync. // // Evaluates a given template and returns the response. The mapping template // can be a request or response template. // // Request templates take the incoming request after a GraphQL operation is // parsed and convert it into a request configuration for the selected data // source operation. Response templates interpret responses from the data source // and map it to the shape of the GraphQL field output type. // // Mapping templates are written in the Apache Velocity Template Language (VTL). // // Returns awserr.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 AppSync's // API operation EvaluateMappingTemplate for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - BadRequestException // 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate func (c *AppSync) EvaluateMappingTemplate(input *EvaluateMappingTemplateInput) (*EvaluateMappingTemplateOutput, error) { req, out := c.EvaluateMappingTemplateRequest(input) return out, req.Send() } // EvaluateMappingTemplateWithContext is the same as EvaluateMappingTemplate with the addition of // the ability to pass a context and additional request options. // // See EvaluateMappingTemplate 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 *AppSync) EvaluateMappingTemplateWithContext(ctx aws.Context, input *EvaluateMappingTemplateInput, opts ...request.Option) (*EvaluateMappingTemplateOutput, error) { req, out := c.EvaluateMappingTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opFlushApiCache = "FlushApiCache" // FlushApiCacheRequest generates a "aws/request.Request" representing the // client's request for the FlushApiCache 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 FlushApiCache for more information on using the FlushApiCache // 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 FlushApiCacheRequest method. // req, resp := client.FlushApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache func (c *AppSync) FlushApiCacheRequest(input *FlushApiCacheInput) (req *request.Request, output *FlushApiCacheOutput) { op := &request.Operation{ Name: opFlushApiCache, HTTPMethod: "DELETE", HTTPPath: "/v1/apis/{apiId}/FlushCache", } if input == nil { input = &FlushApiCacheInput{} } output = &FlushApiCacheOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // FlushApiCache API operation for AWS AppSync. // // Flushes an ApiCache 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 AppSync's // API operation FlushApiCache for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache func (c *AppSync) FlushApiCache(input *FlushApiCacheInput) (*FlushApiCacheOutput, error) { req, out := c.FlushApiCacheRequest(input) return out, req.Send() } // FlushApiCacheWithContext is the same as FlushApiCache with the addition of // the ability to pass a context and additional request options. // // See FlushApiCache 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 *AppSync) FlushApiCacheWithContext(ctx aws.Context, input *FlushApiCacheInput, opts ...request.Option) (*FlushApiCacheOutput, error) { req, out := c.FlushApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetApiAssociation = "GetApiAssociation" // GetApiAssociationRequest generates a "aws/request.Request" representing the // client's request for the GetApiAssociation 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 GetApiAssociation for more information on using the GetApiAssociation // 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 GetApiAssociationRequest method. // req, resp := client.GetApiAssociationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation func (c *AppSync) GetApiAssociationRequest(input *GetApiAssociationInput) (req *request.Request, output *GetApiAssociationOutput) { op := &request.Operation{ Name: opGetApiAssociation, HTTPMethod: "GET", HTTPPath: "/v1/domainnames/{domainName}/apiassociation", } if input == nil { input = &GetApiAssociationInput{} } output = &GetApiAssociationOutput{} req = c.newRequest(op, input, output) return } // GetApiAssociation API operation for AWS AppSync. // // Retrieves an ApiAssociation 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 AppSync's // API operation GetApiAssociation for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiAssociation func (c *AppSync) GetApiAssociation(input *GetApiAssociationInput) (*GetApiAssociationOutput, error) { req, out := c.GetApiAssociationRequest(input) return out, req.Send() } // GetApiAssociationWithContext is the same as GetApiAssociation with the addition of // the ability to pass a context and additional request options. // // See GetApiAssociation 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 *AppSync) GetApiAssociationWithContext(ctx aws.Context, input *GetApiAssociationInput, opts ...request.Option) (*GetApiAssociationOutput, error) { req, out := c.GetApiAssociationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetApiCache = "GetApiCache" // GetApiCacheRequest generates a "aws/request.Request" representing the // client's request for the GetApiCache 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 GetApiCache for more information on using the GetApiCache // 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 GetApiCacheRequest method. // req, resp := client.GetApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache func (c *AppSync) GetApiCacheRequest(input *GetApiCacheInput) (req *request.Request, output *GetApiCacheOutput) { op := &request.Operation{ Name: opGetApiCache, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/ApiCaches", } if input == nil { input = &GetApiCacheInput{} } output = &GetApiCacheOutput{} req = c.newRequest(op, input, output) return } // GetApiCache API operation for AWS AppSync. // // Retrieves an ApiCache 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 AppSync's // API operation GetApiCache for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache func (c *AppSync) GetApiCache(input *GetApiCacheInput) (*GetApiCacheOutput, error) { req, out := c.GetApiCacheRequest(input) return out, req.Send() } // GetApiCacheWithContext is the same as GetApiCache with the addition of // the ability to pass a context and additional request options. // // See GetApiCache 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 *AppSync) GetApiCacheWithContext(ctx aws.Context, input *GetApiCacheInput, opts ...request.Option) (*GetApiCacheOutput, error) { req, out := c.GetApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 GetDataSource for more information on using the GetDataSource // 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 GetDataSourceRequest method. // req, resp := client.GetDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource func (c *AppSync) GetDataSourceRequest(input *GetDataSourceInput) (req *request.Request, output *GetDataSourceOutput) { op := &request.Operation{ Name: opGetDataSource, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/datasources/{name}", } if input == nil { input = &GetDataSourceInput{} } output = &GetDataSourceOutput{} req = c.newRequest(op, input, output) return } // GetDataSource API operation for AWS AppSync. // // Retrieves a DataSource 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 AppSync's // API operation GetDataSource for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource func (c *AppSync) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) { req, out := c.GetDataSourceRequest(input) return out, req.Send() } // GetDataSourceWithContext is the same as GetDataSource with the addition of // the ability to pass a context and additional request options. // // See GetDataSource 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 *AppSync) GetDataSourceWithContext(ctx aws.Context, input *GetDataSourceInput, opts ...request.Option) (*GetDataSourceOutput, error) { req, out := c.GetDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetDomainName = "GetDomainName" // GetDomainNameRequest generates a "aws/request.Request" representing the // client's request for the GetDomainName 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 GetDomainName for more information on using the GetDomainName // 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 GetDomainNameRequest method. // req, resp := client.GetDomainNameRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName func (c *AppSync) GetDomainNameRequest(input *GetDomainNameInput) (req *request.Request, output *GetDomainNameOutput) { op := &request.Operation{ Name: opGetDomainName, HTTPMethod: "GET", HTTPPath: "/v1/domainnames/{domainName}", } if input == nil { input = &GetDomainNameInput{} } output = &GetDomainNameOutput{} req = c.newRequest(op, input, output) return } // GetDomainName API operation for AWS AppSync. // // Retrieves a custom DomainName 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 AppSync's // API operation GetDomainName for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDomainName func (c *AppSync) GetDomainName(input *GetDomainNameInput) (*GetDomainNameOutput, error) { req, out := c.GetDomainNameRequest(input) return out, req.Send() } // GetDomainNameWithContext is the same as GetDomainName with the addition of // the ability to pass a context and additional request options. // // See GetDomainName 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 *AppSync) GetDomainNameWithContext(ctx aws.Context, input *GetDomainNameInput, opts ...request.Option) (*GetDomainNameOutput, error) { req, out := c.GetDomainNameRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetFunction = "GetFunction" // GetFunctionRequest generates a "aws/request.Request" representing the // client's request for the GetFunction 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 GetFunction for more information on using the GetFunction // 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 GetFunctionRequest method. // req, resp := client.GetFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction func (c *AppSync) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) { op := &request.Operation{ Name: opGetFunction, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", } if input == nil { input = &GetFunctionInput{} } output = &GetFunctionOutput{} req = c.newRequest(op, input, output) return } // GetFunction API operation for AWS AppSync. // // Get a Function. // // Returns awserr.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 AppSync's // API operation GetFunction for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction func (c *AppSync) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { req, out := c.GetFunctionRequest(input) return out, req.Send() } // GetFunctionWithContext is the same as GetFunction with the addition of // the ability to pass a context and additional request options. // // See GetFunction 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 *AppSync) GetFunctionWithContext(ctx aws.Context, input *GetFunctionInput, opts ...request.Option) (*GetFunctionOutput, error) { req, out := c.GetFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 GetGraphqlApi for more information on using the GetGraphqlApi // 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 GetGraphqlApiRequest method. // req, resp := client.GetGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi func (c *AppSync) GetGraphqlApiRequest(input *GetGraphqlApiInput) (req *request.Request, output *GetGraphqlApiOutput) { op := &request.Operation{ Name: opGetGraphqlApi, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}", } if input == nil { input = &GetGraphqlApiInput{} } output = &GetGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // GetGraphqlApi API operation for AWS AppSync. // // Retrieves a GraphqlApi 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 AppSync's // API operation GetGraphqlApi for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi func (c *AppSync) GetGraphqlApi(input *GetGraphqlApiInput) (*GetGraphqlApiOutput, error) { req, out := c.GetGraphqlApiRequest(input) return out, req.Send() } // GetGraphqlApiWithContext is the same as GetGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See GetGraphqlApi 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 *AppSync) GetGraphqlApiWithContext(ctx aws.Context, input *GetGraphqlApiInput, opts ...request.Option) (*GetGraphqlApiOutput, error) { req, out := c.GetGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 GetIntrospectionSchema for more information on using the GetIntrospectionSchema // 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 GetIntrospectionSchemaRequest method. // req, resp := client.GetIntrospectionSchemaRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema func (c *AppSync) GetIntrospectionSchemaRequest(input *GetIntrospectionSchemaInput) (req *request.Request, output *GetIntrospectionSchemaOutput) { op := &request.Operation{ Name: opGetIntrospectionSchema, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/schema", } if input == nil { input = &GetIntrospectionSchemaInput{} } output = &GetIntrospectionSchemaOutput{} req = c.newRequest(op, input, output) return } // GetIntrospectionSchema API operation for AWS AppSync. // // Retrieves the introspection schema for a GraphQL 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation GetIntrospectionSchema for usage and error information. // // Returned Error Types: // // - GraphQLSchemaException // The GraphQL schema is not valid. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema func (c *AppSync) GetIntrospectionSchema(input *GetIntrospectionSchemaInput) (*GetIntrospectionSchemaOutput, error) { req, out := c.GetIntrospectionSchemaRequest(input) return out, req.Send() } // GetIntrospectionSchemaWithContext is the same as GetIntrospectionSchema with the addition of // the ability to pass a context and additional request options. // // See GetIntrospectionSchema 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 *AppSync) GetIntrospectionSchemaWithContext(ctx aws.Context, input *GetIntrospectionSchemaInput, opts ...request.Option) (*GetIntrospectionSchemaOutput, error) { req, out := c.GetIntrospectionSchemaRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 GetResolver for more information on using the GetResolver // 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 GetResolverRequest method. // req, resp := client.GetResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver func (c *AppSync) GetResolverRequest(input *GetResolverInput) (req *request.Request, output *GetResolverOutput) { op := &request.Operation{ Name: opGetResolver, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}", } if input == nil { input = &GetResolverInput{} } output = &GetResolverOutput{} req = c.newRequest(op, input, output) return } // GetResolver API operation for AWS AppSync. // // Retrieves a Resolver 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 AppSync's // API operation GetResolver for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver func (c *AppSync) GetResolver(input *GetResolverInput) (*GetResolverOutput, error) { req, out := c.GetResolverRequest(input) return out, req.Send() } // GetResolverWithContext is the same as GetResolver with the addition of // the ability to pass a context and additional request options. // // See GetResolver 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 *AppSync) GetResolverWithContext(ctx aws.Context, input *GetResolverInput, opts ...request.Option) (*GetResolverOutput, error) { req, out := c.GetResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 GetSchemaCreationStatus for more information on using the GetSchemaCreationStatus // 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 GetSchemaCreationStatusRequest method. // req, resp := client.GetSchemaCreationStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus func (c *AppSync) GetSchemaCreationStatusRequest(input *GetSchemaCreationStatusInput) (req *request.Request, output *GetSchemaCreationStatusOutput) { op := &request.Operation{ Name: opGetSchemaCreationStatus, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/schemacreation", } if input == nil { input = &GetSchemaCreationStatusInput{} } output = &GetSchemaCreationStatusOutput{} req = c.newRequest(op, input, output) return } // GetSchemaCreationStatus API operation for AWS AppSync. // // Retrieves the current status of a schema creation 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 AppSync's // API operation GetSchemaCreationStatus for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus func (c *AppSync) GetSchemaCreationStatus(input *GetSchemaCreationStatusInput) (*GetSchemaCreationStatusOutput, error) { req, out := c.GetSchemaCreationStatusRequest(input) return out, req.Send() } // GetSchemaCreationStatusWithContext is the same as GetSchemaCreationStatus with the addition of // the ability to pass a context and additional request options. // // See GetSchemaCreationStatus 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 *AppSync) GetSchemaCreationStatusWithContext(ctx aws.Context, input *GetSchemaCreationStatusInput, opts ...request.Option) (*GetSchemaCreationStatusOutput, error) { req, out := c.GetSchemaCreationStatusRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetSourceApiAssociation = "GetSourceApiAssociation" // GetSourceApiAssociationRequest generates a "aws/request.Request" representing the // client's request for the GetSourceApiAssociation 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 GetSourceApiAssociation for more information on using the GetSourceApiAssociation // 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 GetSourceApiAssociationRequest method. // req, resp := client.GetSourceApiAssociationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation func (c *AppSync) GetSourceApiAssociationRequest(input *GetSourceApiAssociationInput) (req *request.Request, output *GetSourceApiAssociationOutput) { op := &request.Operation{ Name: opGetSourceApiAssociation, HTTPMethod: "GET", HTTPPath: "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}", } if input == nil { input = &GetSourceApiAssociationInput{} } output = &GetSourceApiAssociationOutput{} req = c.newRequest(op, input, output) return } // GetSourceApiAssociation API operation for AWS AppSync. // // Retrieves a SourceApiAssociation 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 AppSync's // API operation GetSourceApiAssociation for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSourceApiAssociation func (c *AppSync) GetSourceApiAssociation(input *GetSourceApiAssociationInput) (*GetSourceApiAssociationOutput, error) { req, out := c.GetSourceApiAssociationRequest(input) return out, req.Send() } // GetSourceApiAssociationWithContext is the same as GetSourceApiAssociation with the addition of // the ability to pass a context and additional request options. // // See GetSourceApiAssociation 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 *AppSync) GetSourceApiAssociationWithContext(ctx aws.Context, input *GetSourceApiAssociationInput, opts ...request.Option) (*GetSourceApiAssociationOutput, error) { req, out := c.GetSourceApiAssociationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 GetType for more information on using the GetType // 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 GetTypeRequest method. // req, resp := client.GetTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType func (c *AppSync) GetTypeRequest(input *GetTypeInput) (req *request.Request, output *GetTypeOutput) { op := &request.Operation{ Name: opGetType, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types/{typeName}", } if input == nil { input = &GetTypeInput{} } output = &GetTypeOutput{} req = c.newRequest(op, input, output) return } // GetType API operation for AWS AppSync. // // Retrieves a Type 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 AppSync's // API operation GetType for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType func (c *AppSync) GetType(input *GetTypeInput) (*GetTypeOutput, error) { req, out := c.GetTypeRequest(input) return out, req.Send() } // GetTypeWithContext is the same as GetType with the addition of // the ability to pass a context and additional request options. // // See GetType 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 *AppSync) GetTypeWithContext(ctx aws.Context, input *GetTypeInput, opts ...request.Option) (*GetTypeOutput, error) { req, out := c.GetTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 ListApiKeys for more information on using the ListApiKeys // 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 ListApiKeysRequest method. // req, resp := client.ListApiKeysRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys func (c *AppSync) ListApiKeysRequest(input *ListApiKeysInput) (req *request.Request, output *ListApiKeysOutput) { op := &request.Operation{ Name: opListApiKeys, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/apikeys", } if input == nil { input = &ListApiKeysInput{} } output = &ListApiKeysOutput{} req = c.newRequest(op, input, output) return } // ListApiKeys API operation for AWS AppSync. // // Lists the API keys for a given API. // // API keys are deleted automatically 60 days 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. // // See the AWS API reference guide for AWS AppSync's // API operation ListApiKeys for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys func (c *AppSync) ListApiKeys(input *ListApiKeysInput) (*ListApiKeysOutput, error) { req, out := c.ListApiKeysRequest(input) return out, req.Send() } // ListApiKeysWithContext is the same as ListApiKeys with the addition of // the ability to pass a context and additional request options. // // See ListApiKeys 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 *AppSync) ListApiKeysWithContext(ctx aws.Context, input *ListApiKeysInput, opts ...request.Option) (*ListApiKeysOutput, error) { req, out := c.ListApiKeysRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 ListDataSources for more information on using the ListDataSources // 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 ListDataSourcesRequest method. // req, resp := client.ListDataSourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources func (c *AppSync) ListDataSourcesRequest(input *ListDataSourcesInput) (req *request.Request, output *ListDataSourcesOutput) { op := &request.Operation{ Name: opListDataSources, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/datasources", } if input == nil { input = &ListDataSourcesInput{} } output = &ListDataSourcesOutput{} req = c.newRequest(op, input, output) return } // ListDataSources API operation for AWS AppSync. // // Lists the data sources for a given 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListDataSources for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources func (c *AppSync) ListDataSources(input *ListDataSourcesInput) (*ListDataSourcesOutput, error) { req, out := c.ListDataSourcesRequest(input) return out, req.Send() } // ListDataSourcesWithContext is the same as ListDataSources with the addition of // the ability to pass a context and additional request options. // // See ListDataSources 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 *AppSync) ListDataSourcesWithContext(ctx aws.Context, input *ListDataSourcesInput, opts ...request.Option) (*ListDataSourcesOutput, error) { req, out := c.ListDataSourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListDomainNames = "ListDomainNames" // ListDomainNamesRequest generates a "aws/request.Request" representing the // client's request for the ListDomainNames 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 ListDomainNames for more information on using the ListDomainNames // 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 ListDomainNamesRequest method. // req, resp := client.ListDomainNamesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames func (c *AppSync) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) { op := &request.Operation{ Name: opListDomainNames, HTTPMethod: "GET", HTTPPath: "/v1/domainnames", } if input == nil { input = &ListDomainNamesInput{} } output = &ListDomainNamesOutput{} req = c.newRequest(op, input, output) return } // ListDomainNames API operation for AWS AppSync. // // Lists multiple custom 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 AWS AppSync's // API operation ListDomainNames for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDomainNames func (c *AppSync) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) { req, out := c.ListDomainNamesRequest(input) return out, req.Send() } // ListDomainNamesWithContext is the same as ListDomainNames with the addition of // the ability to pass a context and additional request options. // // See ListDomainNames 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 *AppSync) ListDomainNamesWithContext(ctx aws.Context, input *ListDomainNamesInput, opts ...request.Option) (*ListDomainNamesOutput, error) { req, out := c.ListDomainNamesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListFunctions = "ListFunctions" // ListFunctionsRequest generates a "aws/request.Request" representing the // client's request for the ListFunctions 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 ListFunctions for more information on using the ListFunctions // 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 ListFunctionsRequest method. // req, resp := client.ListFunctionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions func (c *AppSync) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) { op := &request.Operation{ Name: opListFunctions, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/functions", } if input == nil { input = &ListFunctionsInput{} } output = &ListFunctionsOutput{} req = c.newRequest(op, input, output) return } // ListFunctions API operation for AWS AppSync. // // List multiple functions. // // Returns awserr.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 AppSync's // API operation ListFunctions for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions func (c *AppSync) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) return out, req.Send() } // ListFunctionsWithContext is the same as ListFunctions with the addition of // the ability to pass a context and additional request options. // // See ListFunctions 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 *AppSync) ListFunctionsWithContext(ctx aws.Context, input *ListFunctionsInput, opts ...request.Option) (*ListFunctionsOutput, error) { req, out := c.ListFunctionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 ListGraphqlApis for more information on using the ListGraphqlApis // 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 ListGraphqlApisRequest method. // req, resp := client.ListGraphqlApisRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis func (c *AppSync) ListGraphqlApisRequest(input *ListGraphqlApisInput) (req *request.Request, output *ListGraphqlApisOutput) { op := &request.Operation{ Name: opListGraphqlApis, HTTPMethod: "GET", HTTPPath: "/v1/apis", } if input == nil { input = &ListGraphqlApisInput{} } output = &ListGraphqlApisOutput{} req = c.newRequest(op, input, output) return } // ListGraphqlApis API operation for AWS AppSync. // // Lists your GraphQL APIs. // // Returns awserr.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 AppSync's // API operation ListGraphqlApis for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis func (c *AppSync) ListGraphqlApis(input *ListGraphqlApisInput) (*ListGraphqlApisOutput, error) { req, out := c.ListGraphqlApisRequest(input) return out, req.Send() } // ListGraphqlApisWithContext is the same as ListGraphqlApis with the addition of // the ability to pass a context and additional request options. // // See ListGraphqlApis 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 *AppSync) ListGraphqlApisWithContext(ctx aws.Context, input *ListGraphqlApisInput, opts ...request.Option) (*ListGraphqlApisOutput, error) { req, out := c.ListGraphqlApisRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 ListResolvers for more information on using the ListResolvers // 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 ListResolversRequest method. // req, resp := client.ListResolversRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers func (c *AppSync) ListResolversRequest(input *ListResolversInput) (req *request.Request, output *ListResolversOutput) { op := &request.Operation{ Name: opListResolvers, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers", } if input == nil { input = &ListResolversInput{} } output = &ListResolversOutput{} req = c.newRequest(op, input, output) return } // ListResolvers API operation for AWS AppSync. // // Lists the resolvers for a given API and 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. // // See the AWS API reference guide for AWS AppSync's // API operation ListResolvers for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers func (c *AppSync) ListResolvers(input *ListResolversInput) (*ListResolversOutput, error) { req, out := c.ListResolversRequest(input) return out, req.Send() } // ListResolversWithContext is the same as ListResolvers with the addition of // the ability to pass a context and additional request options. // // See ListResolvers 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 *AppSync) ListResolversWithContext(ctx aws.Context, input *ListResolversInput, opts ...request.Option) (*ListResolversOutput, error) { req, out := c.ListResolversRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListResolversByFunction = "ListResolversByFunction" // ListResolversByFunctionRequest generates a "aws/request.Request" representing the // client's request for the ListResolversByFunction 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 ListResolversByFunction for more information on using the ListResolversByFunction // 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 ListResolversByFunctionRequest method. // req, resp := client.ListResolversByFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction func (c *AppSync) ListResolversByFunctionRequest(input *ListResolversByFunctionInput) (req *request.Request, output *ListResolversByFunctionOutput) { op := &request.Operation{ Name: opListResolversByFunction, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}/resolvers", } if input == nil { input = &ListResolversByFunctionInput{} } output = &ListResolversByFunctionOutput{} req = c.newRequest(op, input, output) return } // ListResolversByFunction API operation for AWS AppSync. // // List the resolvers that are associated with a specific function. // // Returns awserr.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 AppSync's // API operation ListResolversByFunction for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction func (c *AppSync) ListResolversByFunction(input *ListResolversByFunctionInput) (*ListResolversByFunctionOutput, error) { req, out := c.ListResolversByFunctionRequest(input) return out, req.Send() } // ListResolversByFunctionWithContext is the same as ListResolversByFunction with the addition of // the ability to pass a context and additional request options. // // See ListResolversByFunction 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 *AppSync) ListResolversByFunctionWithContext(ctx aws.Context, input *ListResolversByFunctionInput, opts ...request.Option) (*ListResolversByFunctionOutput, error) { req, out := c.ListResolversByFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListSourceApiAssociations = "ListSourceApiAssociations" // ListSourceApiAssociationsRequest generates a "aws/request.Request" representing the // client's request for the ListSourceApiAssociations 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 ListSourceApiAssociations for more information on using the ListSourceApiAssociations // 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 ListSourceApiAssociationsRequest method. // req, resp := client.ListSourceApiAssociationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations func (c *AppSync) ListSourceApiAssociationsRequest(input *ListSourceApiAssociationsInput) (req *request.Request, output *ListSourceApiAssociationsOutput) { op := &request.Operation{ Name: opListSourceApiAssociations, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/sourceApiAssociations", } if input == nil { input = &ListSourceApiAssociationsInput{} } output = &ListSourceApiAssociationsOutput{} req = c.newRequest(op, input, output) return } // ListSourceApiAssociations API operation for AWS AppSync. // // Lists the SourceApiAssociationSummary 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 AWS AppSync's // API operation ListSourceApiAssociations for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListSourceApiAssociations func (c *AppSync) ListSourceApiAssociations(input *ListSourceApiAssociationsInput) (*ListSourceApiAssociationsOutput, error) { req, out := c.ListSourceApiAssociationsRequest(input) return out, req.Send() } // ListSourceApiAssociationsWithContext is the same as ListSourceApiAssociations with the addition of // the ability to pass a context and additional request options. // // See ListSourceApiAssociations 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 *AppSync) ListSourceApiAssociationsWithContext(ctx aws.Context, input *ListSourceApiAssociationsInput, opts ...request.Option) (*ListSourceApiAssociationsOutput, error) { req, out := c.ListSourceApiAssociationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListTagsForResource = "ListTagsForResource" // 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 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 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/appsync-2017-07-25/ListTagsForResource func (c *AppSync) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS AppSync. // // Lists the tags for a 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 AWS AppSync's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource func (c *AppSync) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource 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. // // 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 *AppSync) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 ListTypes for more information on using the ListTypes // 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 ListTypesRequest method. // req, resp := client.ListTypesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes func (c *AppSync) ListTypesRequest(input *ListTypesInput) (req *request.Request, output *ListTypesOutput) { op := &request.Operation{ Name: opListTypes, HTTPMethod: "GET", HTTPPath: "/v1/apis/{apiId}/types", } if input == nil { input = &ListTypesInput{} } output = &ListTypesOutput{} req = c.newRequest(op, input, output) return } // ListTypes API operation for AWS AppSync. // // Lists the types for a given 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListTypes for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes func (c *AppSync) ListTypes(input *ListTypesInput) (*ListTypesOutput, error) { req, out := c.ListTypesRequest(input) return out, req.Send() } // ListTypesWithContext is the same as ListTypes with the addition of // the ability to pass a context and additional request options. // // See ListTypes 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 *AppSync) ListTypesWithContext(ctx aws.Context, input *ListTypesInput, opts ...request.Option) (*ListTypesOutput, error) { req, out := c.ListTypesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opListTypesByAssociation = "ListTypesByAssociation" // ListTypesByAssociationRequest generates a "aws/request.Request" representing the // client's request for the ListTypesByAssociation 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 ListTypesByAssociation for more information on using the ListTypesByAssociation // 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 ListTypesByAssociationRequest method. // req, resp := client.ListTypesByAssociationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation func (c *AppSync) ListTypesByAssociationRequest(input *ListTypesByAssociationInput) (req *request.Request, output *ListTypesByAssociationOutput) { op := &request.Operation{ Name: opListTypesByAssociation, HTTPMethod: "GET", HTTPPath: "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types", } if input == nil { input = &ListTypesByAssociationInput{} } output = &ListTypesByAssociationOutput{} req = c.newRequest(op, input, output) return } // ListTypesByAssociation API operation for AWS AppSync. // // Lists Type objects by the source API association 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation ListTypesByAssociation for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesByAssociation func (c *AppSync) ListTypesByAssociation(input *ListTypesByAssociationInput) (*ListTypesByAssociationOutput, error) { req, out := c.ListTypesByAssociationRequest(input) return out, req.Send() } // ListTypesByAssociationWithContext is the same as ListTypesByAssociation with the addition of // the ability to pass a context and additional request options. // // See ListTypesByAssociation 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 *AppSync) ListTypesByAssociationWithContext(ctx aws.Context, input *ListTypesByAssociationInput, opts ...request.Option) (*ListTypesByAssociationOutput, error) { req, out := c.ListTypesByAssociationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 StartSchemaCreation for more information on using the StartSchemaCreation // 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 StartSchemaCreationRequest method. // req, resp := client.StartSchemaCreationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation func (c *AppSync) StartSchemaCreationRequest(input *StartSchemaCreationInput) (req *request.Request, output *StartSchemaCreationOutput) { op := &request.Operation{ Name: opStartSchemaCreation, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/schemacreation", } if input == nil { input = &StartSchemaCreationInput{} } output = &StartSchemaCreationOutput{} req = c.newRequest(op, input, output) return } // StartSchemaCreation API operation for AWS AppSync. // // Adds a new schema to your GraphQL API. // // This operation is asynchronous. Use to determine when it has 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 AWS AppSync's // API operation StartSchemaCreation for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation func (c *AppSync) StartSchemaCreation(input *StartSchemaCreationInput) (*StartSchemaCreationOutput, error) { req, out := c.StartSchemaCreationRequest(input) return out, req.Send() } // StartSchemaCreationWithContext is the same as StartSchemaCreation with the addition of // the ability to pass a context and additional request options. // // See StartSchemaCreation 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 *AppSync) StartSchemaCreationWithContext(ctx aws.Context, input *StartSchemaCreationInput, opts ...request.Option) (*StartSchemaCreationOutput, error) { req, out := c.StartSchemaCreationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartSchemaMerge = "StartSchemaMerge" // StartSchemaMergeRequest generates a "aws/request.Request" representing the // client's request for the StartSchemaMerge 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 StartSchemaMerge for more information on using the StartSchemaMerge // 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 StartSchemaMergeRequest method. // req, resp := client.StartSchemaMergeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge func (c *AppSync) StartSchemaMergeRequest(input *StartSchemaMergeInput) (req *request.Request, output *StartSchemaMergeOutput) { op := &request.Operation{ Name: opStartSchemaMerge, HTTPMethod: "POST", HTTPPath: "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge", } if input == nil { input = &StartSchemaMergeInput{} } output = &StartSchemaMergeOutput{} req = c.newRequest(op, input, output) return } // StartSchemaMerge API operation for AWS AppSync. // // Initiates a merge operation. Returns a status that shows the result of the // merge 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 AppSync's // API operation StartSchemaMerge for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaMerge func (c *AppSync) StartSchemaMerge(input *StartSchemaMergeInput) (*StartSchemaMergeOutput, error) { req, out := c.StartSchemaMergeRequest(input) return out, req.Send() } // StartSchemaMergeWithContext is the same as StartSchemaMerge with the addition of // the ability to pass a context and additional request options. // // See StartSchemaMerge 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 *AppSync) StartSchemaMergeWithContext(ctx aws.Context, input *StartSchemaMergeInput, opts ...request.Option) (*StartSchemaMergeOutput, error) { req, out := c.StartSchemaMergeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource 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 TagResource for more information on using the TagResource // 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 TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource func (c *AppSync) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for AWS AppSync. // // Tags a resource with user-supplied tags. // // Returns awserr.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 AppSync's // API operation TagResource for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource func (c *AppSync) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource 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 *AppSync) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource 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 UntagResource for more information on using the UntagResource // 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 UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource func (c *AppSync) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "DELETE", HTTPPath: "/v1/tags/{resourceArn}", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for AWS AppSync. // // Untags a 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 AWS AppSync's // API operation UntagResource for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource func (c *AppSync) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource 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 *AppSync) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateApiCache = "UpdateApiCache" // UpdateApiCacheRequest generates a "aws/request.Request" representing the // client's request for the UpdateApiCache 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 UpdateApiCache for more information on using the UpdateApiCache // 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 UpdateApiCacheRequest method. // req, resp := client.UpdateApiCacheRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache func (c *AppSync) UpdateApiCacheRequest(input *UpdateApiCacheInput) (req *request.Request, output *UpdateApiCacheOutput) { op := &request.Operation{ Name: opUpdateApiCache, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/ApiCaches/update", } if input == nil { input = &UpdateApiCacheInput{} } output = &UpdateApiCacheOutput{} req = c.newRequest(op, input, output) return } // UpdateApiCache API operation for AWS AppSync. // // Updates the cache for the GraphQL 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 // the error. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateApiCache for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache func (c *AppSync) UpdateApiCache(input *UpdateApiCacheInput) (*UpdateApiCacheOutput, error) { req, out := c.UpdateApiCacheRequest(input) return out, req.Send() } // UpdateApiCacheWithContext is the same as UpdateApiCache with the addition of // the ability to pass a context and additional request options. // // See UpdateApiCache 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 *AppSync) UpdateApiCacheWithContext(ctx aws.Context, input *UpdateApiCacheInput, opts ...request.Option) (*UpdateApiCacheOutput, error) { req, out := c.UpdateApiCacheRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 UpdateApiKey for more information on using the UpdateApiKey // 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 UpdateApiKeyRequest method. // req, resp := client.UpdateApiKeyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiKey func (c *AppSync) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Request, output *UpdateApiKeyOutput) { op := &request.Operation{ Name: opUpdateApiKey, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/apikeys/{id}", } if input == nil { input = &UpdateApiKeyInput{} } output = &UpdateApiKeyOutput{} req = c.newRequest(op, input, output) return } // UpdateApiKey API operation for AWS AppSync. // // Updates an API key. You can update the key as long as it's not 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. // // See the AWS API reference guide for AWS AppSync's // API operation UpdateApiKey for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - LimitExceededException // The request exceeded a limit. Try your request again. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - ApiKeyValidityOutOfBoundsException // 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) { req, out := c.UpdateApiKeyRequest(input) return out, req.Send() } // UpdateApiKeyWithContext is the same as UpdateApiKey with the addition of // the ability to pass a context and additional request options. // // See UpdateApiKey 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 *AppSync) UpdateApiKeyWithContext(ctx aws.Context, input *UpdateApiKeyInput, opts ...request.Option) (*UpdateApiKeyOutput, error) { req, out := c.UpdateApiKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 UpdateDataSource for more information on using the UpdateDataSource // 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 UpdateDataSourceRequest method. // req, resp := client.UpdateDataSourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource func (c *AppSync) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *request.Request, output *UpdateDataSourceOutput) { op := &request.Operation{ Name: opUpdateDataSource, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/datasources/{name}", } if input == nil { input = &UpdateDataSourceInput{} } output = &UpdateDataSourceOutput{} req = c.newRequest(op, input, output) return } // UpdateDataSource API operation for AWS AppSync. // // Updates a DataSource 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 AppSync's // API operation UpdateDataSource for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource func (c *AppSync) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { req, out := c.UpdateDataSourceRequest(input) return out, req.Send() } // UpdateDataSourceWithContext is the same as UpdateDataSource with the addition of // the ability to pass a context and additional request options. // // See UpdateDataSource 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 *AppSync) UpdateDataSourceWithContext(ctx aws.Context, input *UpdateDataSourceInput, opts ...request.Option) (*UpdateDataSourceOutput, error) { req, out := c.UpdateDataSourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateDomainName = "UpdateDomainName" // UpdateDomainNameRequest generates a "aws/request.Request" representing the // client's request for the UpdateDomainName 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 UpdateDomainName for more information on using the UpdateDomainName // 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 UpdateDomainNameRequest method. // req, resp := client.UpdateDomainNameRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName func (c *AppSync) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req *request.Request, output *UpdateDomainNameOutput) { op := &request.Operation{ Name: opUpdateDomainName, HTTPMethod: "POST", HTTPPath: "/v1/domainnames/{domainName}", } if input == nil { input = &UpdateDomainNameInput{} } output = &UpdateDomainNameOutput{} req = c.newRequest(op, input, output) return } // UpdateDomainName API operation for AWS AppSync. // // Updates a custom DomainName 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 AppSync's // API operation UpdateDomainName for usage and error information. // // Returned Error Types: // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDomainName func (c *AppSync) UpdateDomainName(input *UpdateDomainNameInput) (*UpdateDomainNameOutput, error) { req, out := c.UpdateDomainNameRequest(input) return out, req.Send() } // UpdateDomainNameWithContext is the same as UpdateDomainName with the addition of // the ability to pass a context and additional request options. // // See UpdateDomainName 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 *AppSync) UpdateDomainNameWithContext(ctx aws.Context, input *UpdateDomainNameInput, opts ...request.Option) (*UpdateDomainNameOutput, error) { req, out := c.UpdateDomainNameRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateFunction = "UpdateFunction" // UpdateFunctionRequest generates a "aws/request.Request" representing the // client's request for the UpdateFunction 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 UpdateFunction for more information on using the UpdateFunction // 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 UpdateFunctionRequest method. // req, resp := client.UpdateFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction func (c *AppSync) UpdateFunctionRequest(input *UpdateFunctionInput) (req *request.Request, output *UpdateFunctionOutput) { op := &request.Operation{ Name: opUpdateFunction, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", } if input == nil { input = &UpdateFunctionInput{} } output = &UpdateFunctionOutput{} req = c.newRequest(op, input, output) return } // UpdateFunction API operation for AWS AppSync. // // Updates a Function 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 AppSync's // API operation UpdateFunction for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction func (c *AppSync) UpdateFunction(input *UpdateFunctionInput) (*UpdateFunctionOutput, error) { req, out := c.UpdateFunctionRequest(input) return out, req.Send() } // UpdateFunctionWithContext is the same as UpdateFunction with the addition of // the ability to pass a context and additional request options. // // See UpdateFunction 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 *AppSync) UpdateFunctionWithContext(ctx aws.Context, input *UpdateFunctionInput, opts ...request.Option) (*UpdateFunctionOutput, error) { req, out := c.UpdateFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 UpdateGraphqlApi for more information on using the UpdateGraphqlApi // 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 UpdateGraphqlApiRequest method. // req, resp := client.UpdateGraphqlApiRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi func (c *AppSync) UpdateGraphqlApiRequest(input *UpdateGraphqlApiInput) (req *request.Request, output *UpdateGraphqlApiOutput) { op := &request.Operation{ Name: opUpdateGraphqlApi, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}", } if input == nil { input = &UpdateGraphqlApiInput{} } output = &UpdateGraphqlApiOutput{} req = c.newRequest(op, input, output) return } // UpdateGraphqlApi API operation for AWS AppSync. // // Updates a GraphqlApi 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 AppSync's // API operation UpdateGraphqlApi for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - AccessDeniedException // You don't have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi func (c *AppSync) UpdateGraphqlApi(input *UpdateGraphqlApiInput) (*UpdateGraphqlApiOutput, error) { req, out := c.UpdateGraphqlApiRequest(input) return out, req.Send() } // UpdateGraphqlApiWithContext is the same as UpdateGraphqlApi with the addition of // the ability to pass a context and additional request options. // // See UpdateGraphqlApi 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 *AppSync) UpdateGraphqlApiWithContext(ctx aws.Context, input *UpdateGraphqlApiInput, opts ...request.Option) (*UpdateGraphqlApiOutput, error) { req, out := c.UpdateGraphqlApiRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 UpdateResolver for more information on using the UpdateResolver // 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 UpdateResolverRequest method. // req, resp := client.UpdateResolverRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver func (c *AppSync) UpdateResolverRequest(input *UpdateResolverInput) (req *request.Request, output *UpdateResolverOutput) { op := &request.Operation{ Name: opUpdateResolver, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}", } if input == nil { input = &UpdateResolverInput{} } output = &UpdateResolverOutput{} req = c.newRequest(op, input, output) return } // UpdateResolver API operation for AWS AppSync. // // Updates a Resolver 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 AppSync's // API operation UpdateResolver for usage and error information. // // Returned Error Types: // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - BadRequestException // 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver func (c *AppSync) UpdateResolver(input *UpdateResolverInput) (*UpdateResolverOutput, error) { req, out := c.UpdateResolverRequest(input) return out, req.Send() } // UpdateResolverWithContext is the same as UpdateResolver with the addition of // the ability to pass a context and additional request options. // // See UpdateResolver 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 *AppSync) UpdateResolverWithContext(ctx aws.Context, input *UpdateResolverInput, opts ...request.Option) (*UpdateResolverOutput, error) { req, out := c.UpdateResolverRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateSourceApiAssociation = "UpdateSourceApiAssociation" // UpdateSourceApiAssociationRequest generates a "aws/request.Request" representing the // client's request for the UpdateSourceApiAssociation 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 UpdateSourceApiAssociation for more information on using the UpdateSourceApiAssociation // 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 UpdateSourceApiAssociationRequest method. // req, resp := client.UpdateSourceApiAssociationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation func (c *AppSync) UpdateSourceApiAssociationRequest(input *UpdateSourceApiAssociationInput) (req *request.Request, output *UpdateSourceApiAssociationOutput) { op := &request.Operation{ Name: opUpdateSourceApiAssociation, HTTPMethod: "POST", HTTPPath: "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}", } if input == nil { input = &UpdateSourceApiAssociationInput{} } output = &UpdateSourceApiAssociationOutput{} req = c.newRequest(op, input, output) return } // UpdateSourceApiAssociation API operation for AWS AppSync. // // Updates some of the configuration choices of a particular source API association. // // Returns awserr.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 AppSync's // API operation UpdateSourceApiAssociation for usage and error information. // // Returned Error Types: // // - UnauthorizedException // You aren't authorized to perform this operation. // // - BadRequestException // 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. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateSourceApiAssociation func (c *AppSync) UpdateSourceApiAssociation(input *UpdateSourceApiAssociationInput) (*UpdateSourceApiAssociationOutput, error) { req, out := c.UpdateSourceApiAssociationRequest(input) return out, req.Send() } // UpdateSourceApiAssociationWithContext is the same as UpdateSourceApiAssociation with the addition of // the ability to pass a context and additional request options. // // See UpdateSourceApiAssociation 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 *AppSync) UpdateSourceApiAssociationWithContext(ctx aws.Context, input *UpdateSourceApiAssociationInput, opts ...request.Option) (*UpdateSourceApiAssociationOutput, error) { req, out := c.UpdateSourceApiAssociationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } 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 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 UpdateType for more information on using the UpdateType // 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 UpdateTypeRequest method. // req, resp := client.UpdateTypeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType func (c *AppSync) UpdateTypeRequest(input *UpdateTypeInput) (req *request.Request, output *UpdateTypeOutput) { op := &request.Operation{ Name: opUpdateType, HTTPMethod: "POST", HTTPPath: "/v1/apis/{apiId}/types/{typeName}", } if input == nil { input = &UpdateTypeInput{} } output = &UpdateTypeOutput{} req = c.newRequest(op, input, output) return } // UpdateType API operation for AWS AppSync. // // Updates a Type 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 AppSync's // API operation UpdateType for usage and error information. // // Returned Error Types: // // - BadRequestException // 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. // // - ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // // - NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // // - UnauthorizedException // You aren't authorized to perform this operation. // // - InternalFailureException // An internal AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType func (c *AppSync) UpdateType(input *UpdateTypeInput) (*UpdateTypeOutput, error) { req, out := c.UpdateTypeRequest(input) return out, req.Send() } // UpdateTypeWithContext is the same as UpdateType with the addition of // the ability to pass a context and additional request options. // // See UpdateType 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 *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput, opts ...request.Option) (*UpdateTypeOutput, error) { req, out := c.UpdateTypeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // You don't have access to perform this operation on this resource. type AccessDeniedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AccessDeniedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". 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 } // Describes an additional authentication provider. type AdditionalAuthenticationProvider struct { _ struct{} `type:"structure"` // The authentication type: API key, Identity and Access Management (IAM), OpenID // Connect (OIDC), Amazon Cognito user pools, or Lambda. AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"` // Configuration for Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The OIDC configuration. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The Amazon Cognito user pool configuration. UserPoolConfig *CognitoUserPoolConfig `locationName:"userPoolConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AdditionalAuthenticationProvider) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AdditionalAuthenticationProvider) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AdditionalAuthenticationProvider) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AdditionalAuthenticationProvider"} if s.LambdaAuthorizerConfig != nil { if err := s.LambdaAuthorizerConfig.Validate(); err != nil { invalidParams.AddNested("LambdaAuthorizerConfig", 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)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthenticationType sets the AuthenticationType field's value. func (s *AdditionalAuthenticationProvider) SetAuthenticationType(v string) *AdditionalAuthenticationProvider { s.AuthenticationType = &v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *AdditionalAuthenticationProvider) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *AdditionalAuthenticationProvider { s.LambdaAuthorizerConfig = v return s } // SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value. func (s *AdditionalAuthenticationProvider) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *AdditionalAuthenticationProvider { s.OpenIDConnectConfig = v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *AdditionalAuthenticationProvider) SetUserPoolConfig(v *CognitoUserPoolConfig) *AdditionalAuthenticationProvider { s.UserPoolConfig = v return s } // Describes an ApiAssociation object. type ApiAssociation struct { _ struct{} `type:"structure"` // The API ID. ApiId *string `locationName:"apiId" type:"string"` // Identifies the status of an association. // // * PROCESSING: The API association is being created. You cannot modify // association requests during processing. // // * SUCCESS: The API association was successful. You can modify associations // after success. // // * FAILED: The API association has failed. You can modify associations // after failure. AssociationStatus *string `locationName:"associationStatus" type:"string" enum:"AssociationStatus"` // Details about the last deployment status. DeploymentDetail *string `locationName:"deploymentDetail" type:"string"` // The domain name. DomainName *string `locationName:"domainName" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiAssociation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiAssociation) GoString() string { return s.String() } // SetApiId sets the ApiId field's value. func (s *ApiAssociation) SetApiId(v string) *ApiAssociation { s.ApiId = &v return s } // SetAssociationStatus sets the AssociationStatus field's value. func (s *ApiAssociation) SetAssociationStatus(v string) *ApiAssociation { s.AssociationStatus = &v return s } // SetDeploymentDetail sets the DeploymentDetail field's value. func (s *ApiAssociation) SetDeploymentDetail(v string) *ApiAssociation { s.DeploymentDetail = &v return s } // SetDomainName sets the DomainName field's value. func (s *ApiAssociation) SetDomainName(v string) *ApiAssociation { s.DomainName = &v return s } // The ApiCache object. type ApiCache struct { _ struct{} `type:"structure"` // Caching behavior. // // * FULL_REQUEST_CACHING: All requests are fully cached. // // * PER_RESOLVER_CACHING: Individual resolvers that you specify are cached. ApiCachingBehavior *string `locationName:"apiCachingBehavior" type:"string" enum:"ApiCachingBehavior"` // At-rest encryption flag for cache. You cannot update this setting after creation. AtRestEncryptionEnabled *bool `locationName:"atRestEncryptionEnabled" type:"boolean"` // The cache instance status. // // * AVAILABLE: The instance is available for use. // // * CREATING: The instance is currently creating. // // * DELETING: The instance is currently deleting. // // * MODIFYING: The instance is currently modifying. // // * FAILED: The instance has failed creation. Status *string `locationName:"status" type:"string" enum:"ApiCacheStatus"` // Transit encryption flag when connecting to cache. You cannot update this // setting after creation. TransitEncryptionEnabled *bool `locationName:"transitEncryptionEnabled" type:"boolean"` // TTL in seconds for cache entries. // // Valid values are 1–3,600 seconds. Ttl *int64 `locationName:"ttl" type:"long"` // The cache instance type. Valid values are // // * SMALL // // * MEDIUM // // * LARGE // // * XLARGE // // * LARGE_2X // // * LARGE_4X // // * LARGE_8X (not available in all regions) // // * LARGE_12X // // Historically, instance types were identified by an EC2-style value. As of // July 2020, this is deprecated, and the generic identifiers above should be // used. // // The following legacy instance types are available, but their use is discouraged: // // * T2_SMALL: A t2.small instance type. // // * T2_MEDIUM: A t2.medium instance type. // // * R4_LARGE: A r4.large instance type. // // * R4_XLARGE: A r4.xlarge instance type. // // * R4_2XLARGE: A r4.2xlarge instance type. // // * R4_4XLARGE: A r4.4xlarge instance type. // // * R4_8XLARGE: A r4.8xlarge instance type. Type *string `locationName:"type" type:"string" enum:"ApiCacheType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiCache) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiCache) GoString() string { return s.String() } // SetApiCachingBehavior sets the ApiCachingBehavior field's value. func (s *ApiCache) SetApiCachingBehavior(v string) *ApiCache { s.ApiCachingBehavior = &v return s } // SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value. func (s *ApiCache) SetAtRestEncryptionEnabled(v bool) *ApiCache { s.AtRestEncryptionEnabled = &v return s } // SetStatus sets the Status field's value. func (s *ApiCache) SetStatus(v string) *ApiCache { s.Status = &v return s } // SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value. func (s *ApiCache) SetTransitEncryptionEnabled(v bool) *ApiCache { s.TransitEncryptionEnabled = &v return s } // SetTtl sets the Ttl field's value. func (s *ApiCache) SetTtl(v int64) *ApiCache { s.Ttl = &v return s } // SetType sets the Type field's value. func (s *ApiCache) SetType(v string) *ApiCache { s.Type = &v return s } // Describes an API key. // // Customers invoke AppSync GraphQL API operations with API keys as an identity // mechanism. There are two key versions: // // da1: We introduced this version at launch in November 2017. These keys always // expire after 7 days. Amazon DynamoDB TTL manages key expiration. These keys // ceased to be valid after February 21, 2018, and they should no longer be // used. // // - 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 deleted these // keys from the table on February 21, 2018. // // da2: We introduced this version in February 2018 when AppSync added support // to extend key expiration. // // - ListApiKeys returns the expiration time and deletion time in seconds. // // - CreateApiKey returns the expiration time and deletion time in seconds // and accepts a user-provided expiration time in seconds. // // - UpdateApiKey returns the expiration time and and deletion time in seconds // and accepts a user-provided expiration time in seconds. Expired API keys // are kept for 60 days after the expiration time. You can update the key // expiration time as long as the key isn't deleted. // // - DeleteApiKey deletes the item from the table. // // - Expiration is stored in DynamoDB as seconds. After the expiration time, // using the key to authenticate will fail. However, you can reinstate the // key before deletion. // // - Deletion is stored in DynamoDB as seconds. The key is deleted after // deletion time. type ApiKey struct { _ struct{} `type:"structure"` // The time after which the API key is deleted. The date is represented as seconds // since the epoch, rounded down to the nearest hour. Deletes *int64 `locationName:"deletes" type:"long"` // 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. Expires *int64 `locationName:"expires" type:"long"` // The API key ID. Id *string `locationName:"id" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiKey) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiKey) GoString() string { return s.String() } // SetDeletes sets the Deletes field's value. func (s *ApiKey) SetDeletes(v int64) *ApiKey { s.Deletes = &v return s } // SetDescription sets the Description field's value. func (s *ApiKey) SetDescription(v string) *ApiKey { s.Description = &v return s } // SetExpires sets the Expires field's value. func (s *ApiKey) SetExpires(v int64) *ApiKey { s.Expires = &v return s } // SetId sets the Id field's value. func (s *ApiKey) SetId(v string) *ApiKey { s.Id = &v return s } // The API key exceeded a limit. Try your request again. type ApiKeyLimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiKeyLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiKeyLimitExceededException) GoString() string { return s.String() } func newErrorApiKeyLimitExceededException(v protocol.ResponseMetadata) error { return &ApiKeyLimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ApiKeyLimitExceededException) Code() string { return "ApiKeyLimitExceededException" } // Message returns the exception's message. func (s *ApiKeyLimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ApiKeyLimitExceededException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. 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 `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiKeyValidityOutOfBoundsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiKeyValidityOutOfBoundsException) GoString() string { return s.String() } func newErrorApiKeyValidityOutOfBoundsException(v protocol.ResponseMetadata) error { return &ApiKeyValidityOutOfBoundsException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ApiKeyValidityOutOfBoundsException) Code() string { return "ApiKeyValidityOutOfBoundsException" } // Message returns the exception's message. func (s *ApiKeyValidityOutOfBoundsException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ApiKeyValidityOutOfBoundsException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. 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 `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ApiLimitExceededException) GoString() string { return s.String() } func newErrorApiLimitExceededException(v protocol.ResponseMetadata) error { return &ApiLimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ApiLimitExceededException) Code() string { return "ApiLimitExceededException" } // Message returns the exception's message. func (s *ApiLimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ApiLimitExceededException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. func (s *ApiLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } // Describes a runtime used by an Amazon Web Services AppSync pipeline resolver // or Amazon Web Services AppSync function. Specifies the name and version of // the runtime to use. Note that if a runtime is specified, code must also be // specified. type AppSyncRuntime struct { _ struct{} `type:"structure"` // The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true" enum:"RuntimeName"` // The version of the runtime to use. Currently, the only allowed version is // 1.0.0. // // RuntimeVersion is a required field RuntimeVersion *string `locationName:"runtimeVersion" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AppSyncRuntime) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AppSyncRuntime) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AppSyncRuntime) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AppSyncRuntime"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.RuntimeVersion == nil { invalidParams.Add(request.NewErrParamRequired("RuntimeVersion")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *AppSyncRuntime) SetName(v string) *AppSyncRuntime { s.Name = &v return s } // SetRuntimeVersion sets the RuntimeVersion field's value. func (s *AppSyncRuntime) SetRuntimeVersion(v string) *AppSyncRuntime { s.RuntimeVersion = &v return s } type AssociateApiInput struct { _ struct{} `type:"structure"` // The API ID. Private APIs can not be associated with custom domains. // // ApiId is a required field ApiId *string `locationName:"apiId" type:"string" required:"true"` // The domain name. // // DomainName is a required field DomainName *string `location:"uri" locationName:"domainName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateApiInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *AssociateApiInput) SetApiId(v string) *AssociateApiInput { s.ApiId = &v return s } // SetDomainName sets the DomainName field's value. func (s *AssociateApiInput) SetDomainName(v string) *AssociateApiInput { s.DomainName = &v return s } type AssociateApiOutput struct { _ struct{} `type:"structure"` // The ApiAssociation object. ApiAssociation *ApiAssociation `locationName:"apiAssociation" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateApiOutput) GoString() string { return s.String() } // SetApiAssociation sets the ApiAssociation field's value. func (s *AssociateApiOutput) SetApiAssociation(v *ApiAssociation) *AssociateApiOutput { s.ApiAssociation = v return s } type AssociateMergedGraphqlApiInput struct { _ struct{} `type:"structure"` // The description field. Description *string `locationName:"description" type:"string"` // The identifier of the AppSync Merged API. This is generated by the AppSync // service. In most cases, Merged APIs (especially in your account) only require // the API ID value or ARN of the merged API. However, Merged APIs in other // accounts (cross-account use cases) strictly require the full resource ARN // of the merged API. // // MergedApiIdentifier is a required field MergedApiIdentifier *string `locationName:"mergedApiIdentifier" type:"string" required:"true"` // The SourceApiAssociationConfig object data. SourceApiAssociationConfig *SourceApiAssociationConfig `locationName:"sourceApiAssociationConfig" type:"structure"` // The identifier of the AppSync Source API. This is generated by the AppSync // service. In most cases, source APIs (especially in your account) only require // the API ID value or ARN of the source API. However, source APIs from other // accounts (cross-account use cases) strictly require the full resource ARN // of the source API. // // SourceApiIdentifier is a required field SourceApiIdentifier *string `location:"uri" locationName:"sourceApiIdentifier" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateMergedGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateMergedGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateMergedGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateMergedGraphqlApiInput"} if s.MergedApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("MergedApiIdentifier")) } if s.SourceApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("SourceApiIdentifier")) } if s.SourceApiIdentifier != nil && len(*s.SourceApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("SourceApiIdentifier", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *AssociateMergedGraphqlApiInput) SetDescription(v string) *AssociateMergedGraphqlApiInput { s.Description = &v return s } // SetMergedApiIdentifier sets the MergedApiIdentifier field's value. func (s *AssociateMergedGraphqlApiInput) SetMergedApiIdentifier(v string) *AssociateMergedGraphqlApiInput { s.MergedApiIdentifier = &v return s } // SetSourceApiAssociationConfig sets the SourceApiAssociationConfig field's value. func (s *AssociateMergedGraphqlApiInput) SetSourceApiAssociationConfig(v *SourceApiAssociationConfig) *AssociateMergedGraphqlApiInput { s.SourceApiAssociationConfig = v return s } // SetSourceApiIdentifier sets the SourceApiIdentifier field's value. func (s *AssociateMergedGraphqlApiInput) SetSourceApiIdentifier(v string) *AssociateMergedGraphqlApiInput { s.SourceApiIdentifier = &v return s } type AssociateMergedGraphqlApiOutput struct { _ struct{} `type:"structure"` // The SourceApiAssociation object data. SourceApiAssociation *SourceApiAssociation `locationName:"sourceApiAssociation" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateMergedGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateMergedGraphqlApiOutput) GoString() string { return s.String() } // SetSourceApiAssociation sets the SourceApiAssociation field's value. func (s *AssociateMergedGraphqlApiOutput) SetSourceApiAssociation(v *SourceApiAssociation) *AssociateMergedGraphqlApiOutput { s.SourceApiAssociation = v return s } type AssociateSourceGraphqlApiInput struct { _ struct{} `type:"structure"` // The description field. Description *string `locationName:"description" type:"string"` // The identifier of the AppSync Merged API. This is generated by the AppSync // service. In most cases, Merged APIs (especially in your account) only require // the API ID value or ARN of the merged API. However, Merged APIs in other // accounts (cross-account use cases) strictly require the full resource ARN // of the merged API. // // MergedApiIdentifier is a required field MergedApiIdentifier *string `location:"uri" locationName:"mergedApiIdentifier" type:"string" required:"true"` // The SourceApiAssociationConfig object data. SourceApiAssociationConfig *SourceApiAssociationConfig `locationName:"sourceApiAssociationConfig" type:"structure"` // The identifier of the AppSync Source API. This is generated by the AppSync // service. In most cases, source APIs (especially in your account) only require // the API ID value or ARN of the source API. However, source APIs from other // accounts (cross-account use cases) strictly require the full resource ARN // of the source API. // // SourceApiIdentifier is a required field SourceApiIdentifier *string `locationName:"sourceApiIdentifier" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateSourceGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateSourceGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AssociateSourceGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AssociateSourceGraphqlApiInput"} if s.MergedApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("MergedApiIdentifier")) } if s.MergedApiIdentifier != nil && len(*s.MergedApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("MergedApiIdentifier", 1)) } if s.SourceApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("SourceApiIdentifier")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *AssociateSourceGraphqlApiInput) SetDescription(v string) *AssociateSourceGraphqlApiInput { s.Description = &v return s } // SetMergedApiIdentifier sets the MergedApiIdentifier field's value. func (s *AssociateSourceGraphqlApiInput) SetMergedApiIdentifier(v string) *AssociateSourceGraphqlApiInput { s.MergedApiIdentifier = &v return s } // SetSourceApiAssociationConfig sets the SourceApiAssociationConfig field's value. func (s *AssociateSourceGraphqlApiInput) SetSourceApiAssociationConfig(v *SourceApiAssociationConfig) *AssociateSourceGraphqlApiInput { s.SourceApiAssociationConfig = v return s } // SetSourceApiIdentifier sets the SourceApiIdentifier field's value. func (s *AssociateSourceGraphqlApiInput) SetSourceApiIdentifier(v string) *AssociateSourceGraphqlApiInput { s.SourceApiIdentifier = &v return s } type AssociateSourceGraphqlApiOutput struct { _ struct{} `type:"structure"` // The SourceApiAssociation object data. SourceApiAssociation *SourceApiAssociation `locationName:"sourceApiAssociation" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateSourceGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AssociateSourceGraphqlApiOutput) GoString() string { return s.String() } // SetSourceApiAssociation sets the SourceApiAssociation field's value. func (s *AssociateSourceGraphqlApiOutput) SetSourceApiAssociation(v *SourceApiAssociation) *AssociateSourceGraphqlApiOutput { s.SourceApiAssociation = v return s } // The authorization configuration in case the HTTP endpoint requires authorization. type AuthorizationConfig struct { _ struct{} `type:"structure"` // The authorization type that the HTTP endpoint requires. // // * AWS_IAM: The authorization type is Signature Version 4 (SigV4). // // AuthorizationType is a required field AuthorizationType *string `locationName:"authorizationType" type:"string" required:"true" enum:"AuthorizationType"` // The Identity and Access Management (IAM) settings. AwsIamConfig *AwsIamConfig `locationName:"awsIamConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AuthorizationConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AuthorizationConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *AuthorizationConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AuthorizationConfig"} if s.AuthorizationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizationType")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizationType sets the AuthorizationType field's value. func (s *AuthorizationConfig) SetAuthorizationType(v string) *AuthorizationConfig { s.AuthorizationType = &v return s } // SetAwsIamConfig sets the AwsIamConfig field's value. func (s *AuthorizationConfig) SetAwsIamConfig(v *AwsIamConfig) *AuthorizationConfig { s.AwsIamConfig = v return s } // The Identity and Access Management (IAM) configuration. type AwsIamConfig struct { _ struct{} `type:"structure"` // The signing Amazon Web Services Region for IAM authorization. SigningRegion *string `locationName:"signingRegion" type:"string"` // The signing service name for IAM authorization. SigningServiceName *string `locationName:"signingServiceName" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AwsIamConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s AwsIamConfig) GoString() string { return s.String() } // SetSigningRegion sets the SigningRegion field's value. func (s *AwsIamConfig) SetSigningRegion(v string) *AwsIamConfig { s.SigningRegion = &v return s } // SetSigningServiceName sets the SigningServiceName field's value. func (s *AwsIamConfig) SetSigningServiceName(v string) *AwsIamConfig { s.SigningServiceName = &v return s } // Provides further details for the reason behind the bad request. For reason // type CODE_ERROR, the detail will contain a list of code errors. type BadRequestDetail struct { _ struct{} `type:"structure"` // Contains the list of errors in the request. CodeErrors []*CodeError `locationName:"codeErrors" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s BadRequestDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s BadRequestDetail) GoString() string { return s.String() } // SetCodeErrors sets the CodeErrors field's value. func (s *BadRequestDetail) SetCodeErrors(v []*CodeError) *BadRequestDetail { s.CodeErrors = v return s } // 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 `json:"-" xml:"-"` // Provides further details for the reason behind the bad request. For reason // type CODE_ERROR, the detail will contain a list of code errors. Detail *BadRequestDetail `locationName:"detail" type:"structure"` Message_ *string `locationName:"message" type:"string"` // Provides context for the cause of the bad request. The only supported value // is CODE_ERROR. Reason *string `locationName:"reason" type:"string" enum:"BadRequestReason"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s BadRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s BadRequestException) GoString() string { return s.String() } func newErrorBadRequestException(v protocol.ResponseMetadata) error { return &BadRequestException{ RespMetadata: v, } } // Code returns the exception type name. func (s *BadRequestException) Code() string { return "BadRequestException" } // Message returns the exception's message. func (s *BadRequestException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *BadRequestException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. func (s *BadRequestException) RequestID() string { return s.RespMetadata.RequestID } // The caching configuration for a resolver that has caching activated. type CachingConfig struct { _ struct{} `type:"structure"` // The caching keys for a resolver that has caching activated. // // Valid values are entries from the $context.arguments, $context.source, and // $context.identity maps. CachingKeys []*string `locationName:"cachingKeys" type:"list"` // The TTL in seconds for a resolver that has caching activated. // // Valid values are 1–3,600 seconds. // // Ttl is a required field Ttl *int64 `locationName:"ttl" type:"long" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CachingConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CachingConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CachingConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CachingConfig"} if s.Ttl == nil { invalidParams.Add(request.NewErrParamRequired("Ttl")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCachingKeys sets the CachingKeys field's value. func (s *CachingConfig) SetCachingKeys(v []*string) *CachingConfig { s.CachingKeys = v return s } // SetTtl sets the Ttl field's value. func (s *CachingConfig) SetTtl(v int64) *CachingConfig { s.Ttl = &v return s } // Describes an AppSync error. type CodeError struct { _ struct{} `type:"structure"` // The type of code error. // // Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR. ErrorType *string `locationName:"errorType" type:"string"` // The line, column, and span location of the error in the code. Location *CodeErrorLocation `locationName:"location" type:"structure"` // A user presentable error. // // Examples include, but aren't limited to: Parsing error: Unterminated string // literal. Value *string `locationName:"value" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CodeError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CodeError) GoString() string { return s.String() } // SetErrorType sets the ErrorType field's value. func (s *CodeError) SetErrorType(v string) *CodeError { s.ErrorType = &v return s } // SetLocation sets the Location field's value. func (s *CodeError) SetLocation(v *CodeErrorLocation) *CodeError { s.Location = v return s } // SetValue sets the Value field's value. func (s *CodeError) SetValue(v string) *CodeError { s.Value = &v return s } // Describes the location of the error in a code sample. type CodeErrorLocation struct { _ struct{} `type:"structure"` // The column number in the code. Defaults to 0 if unknown. Column *int64 `locationName:"column" type:"integer"` // The line number in the code. Defaults to 0 if unknown. Line *int64 `locationName:"line" type:"integer"` // The span/length of the error. Defaults to -1 if unknown. Span *int64 `locationName:"span" type:"integer"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CodeErrorLocation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CodeErrorLocation) GoString() string { return s.String() } // SetColumn sets the Column field's value. func (s *CodeErrorLocation) SetColumn(v int64) *CodeErrorLocation { s.Column = &v return s } // SetLine sets the Line field's value. func (s *CodeErrorLocation) SetLine(v int64) *CodeErrorLocation { s.Line = &v return s } // SetSpan sets the Span field's value. func (s *CodeErrorLocation) SetSpan(v int64) *CodeErrorLocation { s.Span = &v return s } // Describes an Amazon Cognito user pool configuration. type CognitoUserPoolConfig struct { _ struct{} `type:"structure"` // A regular expression for validating the incoming Amazon Cognito user pool // app client ID. If this value isn't set, no filtering is applied. AppIdClientRegex *string `locationName:"appIdClientRegex" type:"string"` // The Amazon Web Services Region in which the user pool was created. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The user pool ID. // // UserPoolId is a required field UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CognitoUserPoolConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CognitoUserPoolConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CognitoUserPoolConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CognitoUserPoolConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppIdClientRegex sets the AppIdClientRegex field's value. func (s *CognitoUserPoolConfig) SetAppIdClientRegex(v string) *CognitoUserPoolConfig { s.AppIdClientRegex = &v return s } // SetAwsRegion sets the AwsRegion field's value. func (s *CognitoUserPoolConfig) SetAwsRegion(v string) *CognitoUserPoolConfig { s.AwsRegion = &v return s } // SetUserPoolId sets the UserPoolId field's value. func (s *CognitoUserPoolConfig) SetUserPoolId(v string) *CognitoUserPoolConfig { s.UserPoolId = &v return s } // 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 `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ConcurrentModificationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ConcurrentModificationException) GoString() string { return s.String() } func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { return &ConcurrentModificationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ConcurrentModificationException) Code() string { return "ConcurrentModificationException" } // Message returns the exception's message. func (s *ConcurrentModificationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ConcurrentModificationException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. func (s *ConcurrentModificationException) RequestID() string { return s.RespMetadata.RequestID } // Represents the input of a CreateApiCache operation. type CreateApiCacheInput struct { _ struct{} `type:"structure"` // Caching behavior. // // * FULL_REQUEST_CACHING: All requests are fully cached. // // * PER_RESOLVER_CACHING: Individual resolvers that you specify are cached. // // ApiCachingBehavior is a required field ApiCachingBehavior *string `locationName:"apiCachingBehavior" type:"string" required:"true" enum:"ApiCachingBehavior"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // At-rest encryption flag for cache. You cannot update this setting after creation. AtRestEncryptionEnabled *bool `locationName:"atRestEncryptionEnabled" type:"boolean"` // Transit encryption flag when connecting to cache. You cannot update this // setting after creation. TransitEncryptionEnabled *bool `locationName:"transitEncryptionEnabled" type:"boolean"` // TTL in seconds for cache entries. // // Valid values are 1–3,600 seconds. // // Ttl is a required field Ttl *int64 `locationName:"ttl" type:"long" required:"true"` // The cache instance type. Valid values are // // * SMALL // // * MEDIUM // // * LARGE // // * XLARGE // // * LARGE_2X // // * LARGE_4X // // * LARGE_8X (not available in all regions) // // * LARGE_12X // // Historically, instance types were identified by an EC2-style value. As of // July 2020, this is deprecated, and the generic identifiers above should be // used. // // The following legacy instance types are available, but their use is discouraged: // // * T2_SMALL: A t2.small instance type. // // * T2_MEDIUM: A t2.medium instance type. // // * R4_LARGE: A r4.large instance type. // // * R4_XLARGE: A r4.xlarge instance type. // // * R4_2XLARGE: A r4.2xlarge instance type. // // * R4_4XLARGE: A r4.4xlarge instance type. // // * R4_8XLARGE: A r4.8xlarge instance type. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ApiCacheType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateApiCacheInput"} if s.ApiCachingBehavior == nil { invalidParams.Add(request.NewErrParamRequired("ApiCachingBehavior")) } 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.Ttl == nil { invalidParams.Add(request.NewErrParamRequired("Ttl")) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiCachingBehavior sets the ApiCachingBehavior field's value. func (s *CreateApiCacheInput) SetApiCachingBehavior(v string) *CreateApiCacheInput { s.ApiCachingBehavior = &v return s } // SetApiId sets the ApiId field's value. func (s *CreateApiCacheInput) SetApiId(v string) *CreateApiCacheInput { s.ApiId = &v return s } // SetAtRestEncryptionEnabled sets the AtRestEncryptionEnabled field's value. func (s *CreateApiCacheInput) SetAtRestEncryptionEnabled(v bool) *CreateApiCacheInput { s.AtRestEncryptionEnabled = &v return s } // SetTransitEncryptionEnabled sets the TransitEncryptionEnabled field's value. func (s *CreateApiCacheInput) SetTransitEncryptionEnabled(v bool) *CreateApiCacheInput { s.TransitEncryptionEnabled = &v return s } // SetTtl sets the Ttl field's value. func (s *CreateApiCacheInput) SetTtl(v int64) *CreateApiCacheInput { s.Ttl = &v return s } // SetType sets the Type field's value. func (s *CreateApiCacheInput) SetType(v string) *CreateApiCacheInput { s.Type = &v return s } // Represents the output of a CreateApiCache operation. type CreateApiCacheOutput struct { _ struct{} `type:"structure"` // The ApiCache object. ApiCache *ApiCache `locationName:"apiCache" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiCacheOutput) GoString() string { return s.String() } // SetApiCache sets the ApiCache field's value. func (s *CreateApiCacheOutput) SetApiCache(v *ApiCache) *CreateApiCacheOutput { s.ApiCache = v return s } type CreateApiKeyInput struct { _ struct{} `type:"structure"` // The ID for your GraphQL API. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // A description of the purpose of the API key. Description *string `locationName:"description" type:"string"` // From the creation time, 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. For more // information, see . Expires *int64 `locationName:"expires" type:"long"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiKeyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiKeyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateApiKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateApiKeyInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateApiKeyInput) SetApiId(v string) *CreateApiKeyInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *CreateApiKeyInput) SetDescription(v string) *CreateApiKeyInput { s.Description = &v return s } // SetExpires sets the Expires field's value. func (s *CreateApiKeyInput) SetExpires(v int64) *CreateApiKeyInput { s.Expires = &v return s } type CreateApiKeyOutput struct { _ struct{} `type:"structure"` // The API key. ApiKey *ApiKey `locationName:"apiKey" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiKeyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateApiKeyOutput) GoString() string { return s.String() } // SetApiKey sets the ApiKey field's value. func (s *CreateApiKeyOutput) SetApiKey(v *ApiKey) *CreateApiKeyOutput { s.ApiKey = v return s } type CreateDataSourceInput struct { _ struct{} `type:"structure"` // The API ID for the GraphQL API for the DataSource. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // A description of the DataSource. Description *string `locationName:"description" type:"string"` // Amazon DynamoDB settings. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` // Amazon OpenSearch Service settings. // // As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. // This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig // to create an OpenSearch data source. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` // Amazon EventBridge settings. EventBridgeConfig *EventBridgeDataSourceConfig `locationName:"eventBridgeConfig" type:"structure"` // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` // Lambda settings. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // A user-supplied name for the DataSource. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // Amazon OpenSearch Service settings. OpenSearchServiceConfig *OpenSearchServiceDataSourceConfig `locationName:"openSearchServiceConfig" type:"structure"` // Relational database settings. RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` // The Identity and Access Management (IAM) service role Amazon Resource Name // (ARN) for the data source. The system assumes this role when accessing the // data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The type of the DataSource. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"DataSourceType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceInput"} 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.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.DynamodbConfig != nil { if err := s.DynamodbConfig.Validate(); err != nil { invalidParams.AddNested("DynamodbConfig", err.(request.ErrInvalidParams)) } } if s.ElasticsearchConfig != nil { if err := s.ElasticsearchConfig.Validate(); err != nil { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } if s.EventBridgeConfig != nil { if err := s.EventBridgeConfig.Validate(); err != nil { invalidParams.AddNested("EventBridgeConfig", err.(request.ErrInvalidParams)) } } if s.HttpConfig != nil { if err := s.HttpConfig.Validate(); err != nil { invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) } } if s.LambdaConfig != nil { if err := s.LambdaConfig.Validate(); err != nil { invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) } } if s.OpenSearchServiceConfig != nil { if err := s.OpenSearchServiceConfig.Validate(); err != nil { invalidParams.AddNested("OpenSearchServiceConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateDataSourceInput) SetApiId(v string) *CreateDataSourceInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *CreateDataSourceInput) SetDescription(v string) *CreateDataSourceInput { s.Description = &v return s } // SetDynamodbConfig sets the DynamodbConfig field's value. func (s *CreateDataSourceInput) SetDynamodbConfig(v *DynamodbDataSourceConfig) *CreateDataSourceInput { s.DynamodbConfig = v return s } // SetElasticsearchConfig sets the ElasticsearchConfig field's value. func (s *CreateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *CreateDataSourceInput { s.ElasticsearchConfig = v return s } // SetEventBridgeConfig sets the EventBridgeConfig field's value. func (s *CreateDataSourceInput) SetEventBridgeConfig(v *EventBridgeDataSourceConfig) *CreateDataSourceInput { s.EventBridgeConfig = v return s } // SetHttpConfig sets the HttpConfig field's value. func (s *CreateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *CreateDataSourceInput { s.HttpConfig = v return s } // SetLambdaConfig sets the LambdaConfig field's value. func (s *CreateDataSourceInput) SetLambdaConfig(v *LambdaDataSourceConfig) *CreateDataSourceInput { s.LambdaConfig = v return s } // SetName sets the Name field's value. func (s *CreateDataSourceInput) SetName(v string) *CreateDataSourceInput { s.Name = &v return s } // SetOpenSearchServiceConfig sets the OpenSearchServiceConfig field's value. func (s *CreateDataSourceInput) SetOpenSearchServiceConfig(v *OpenSearchServiceDataSourceConfig) *CreateDataSourceInput { s.OpenSearchServiceConfig = v return s } // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. func (s *CreateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *CreateDataSourceInput { s.RelationalDatabaseConfig = v return s } // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *CreateDataSourceInput) SetServiceRoleArn(v string) *CreateDataSourceInput { s.ServiceRoleArn = &v return s } // SetType sets the Type field's value. func (s *CreateDataSourceInput) SetType(v string) *CreateDataSourceInput { s.Type = &v return s } type CreateDataSourceOutput struct { _ struct{} `type:"structure"` // The DataSource object. DataSource *DataSource `locationName:"dataSource" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDataSourceOutput) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *CreateDataSourceOutput) SetDataSource(v *DataSource) *CreateDataSourceOutput { s.DataSource = v return s } type CreateDomainNameInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the certificate. This can be an Certificate // Manager (ACM) certificate or an Identity and Access Management (IAM) server // certificate. // // CertificateArn is a required field CertificateArn *string `locationName:"certificateArn" min:"20" type:"string" required:"true"` // A description of the DomainName. Description *string `locationName:"description" type:"string"` // The domain name. // // DomainName is a required field DomainName *string `locationName:"domainName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDomainNameInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDomainNameInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDomainNameInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDomainNameInput"} if s.CertificateArn == nil { invalidParams.Add(request.NewErrParamRequired("CertificateArn")) } if s.CertificateArn != nil && len(*s.CertificateArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20)) } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCertificateArn sets the CertificateArn field's value. func (s *CreateDomainNameInput) SetCertificateArn(v string) *CreateDomainNameInput { s.CertificateArn = &v return s } // SetDescription sets the Description field's value. func (s *CreateDomainNameInput) SetDescription(v string) *CreateDomainNameInput { s.Description = &v return s } // SetDomainName sets the DomainName field's value. func (s *CreateDomainNameInput) SetDomainName(v string) *CreateDomainNameInput { s.DomainName = &v return s } type CreateDomainNameOutput struct { _ struct{} `type:"structure"` // The configuration for the DomainName. DomainNameConfig *DomainNameConfig `locationName:"domainNameConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDomainNameOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateDomainNameOutput) GoString() string { return s.String() } // SetDomainNameConfig sets the DomainNameConfig field's value. func (s *CreateDomainNameOutput) SetDomainNameConfig(v *DomainNameConfig) *CreateDomainNameOutput { s.DomainNameConfig = v return s } type CreateFunctionInput struct { _ struct{} `type:"structure"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The function code that contains the request and response functions. When // code is used, the runtime is required. The runtime value must be APPSYNC_JS. Code *string `locationName:"code" min:"1" type:"string"` // The Function DataSource name. // // DataSourceName is a required field DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string" required:"true"` // The Function description. Description *string `locationName:"description" type:"string"` // The version of the request mapping template. Currently, the supported value // is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion // is required. FunctionVersion *string `locationName:"functionVersion" type:"string"` // The maximum batching size for a resolver. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` // The Function name. The function name does not have to be unique. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Function request mapping template. Functions support only the 2018-05-29 // version of the request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The Function response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a runtime used by an Amazon Web Services AppSync pipeline resolver // or Amazon Web Services AppSync function. Specifies the name and version of // the runtime to use. Note that if a runtime is specified, code must also be // specified. Runtime *AppSyncRuntime `locationName:"runtime" type:"structure"` // Describes a Sync configuration for a resolver. // // Specifies which Conflict Detection strategy and Resolution strategy to use // when the resolver is invoked. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateFunctionInput"} 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.Code != nil && len(*s.Code) < 1 { invalidParams.Add(request.NewErrParamMinLen("Code", 1)) } if s.DataSourceName == nil { invalidParams.Add(request.NewErrParamRequired("DataSourceName")) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 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.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.Runtime != nil { if err := s.Runtime.Validate(); err != nil { invalidParams.AddNested("Runtime", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateFunctionInput) SetApiId(v string) *CreateFunctionInput { s.ApiId = &v return s } // SetCode sets the Code field's value. func (s *CreateFunctionInput) SetCode(v string) *CreateFunctionInput { s.Code = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *CreateFunctionInput) SetDataSourceName(v string) *CreateFunctionInput { s.DataSourceName = &v return s } // SetDescription sets the Description field's value. func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput { s.Description = &v return s } // SetFunctionVersion sets the FunctionVersion field's value. func (s *CreateFunctionInput) SetFunctionVersion(v string) *CreateFunctionInput { s.FunctionVersion = &v return s } // SetMaxBatchSize sets the MaxBatchSize field's value. func (s *CreateFunctionInput) SetMaxBatchSize(v int64) *CreateFunctionInput { s.MaxBatchSize = &v return s } // SetName sets the Name field's value. func (s *CreateFunctionInput) SetName(v string) *CreateFunctionInput { s.Name = &v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *CreateFunctionInput) SetRequestMappingTemplate(v string) *CreateFunctionInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *CreateFunctionInput) SetResponseMappingTemplate(v string) *CreateFunctionInput { s.ResponseMappingTemplate = &v return s } // SetRuntime sets the Runtime field's value. func (s *CreateFunctionInput) SetRuntime(v *AppSyncRuntime) *CreateFunctionInput { s.Runtime = v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *CreateFunctionInput) SetSyncConfig(v *SyncConfig) *CreateFunctionInput { s.SyncConfig = v return s } type CreateFunctionOutput struct { _ struct{} `type:"structure"` // The Function object. FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateFunctionOutput) GoString() string { return s.String() } // SetFunctionConfiguration sets the FunctionConfiguration field's value. func (s *CreateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *CreateFunctionOutput { s.FunctionConfiguration = v return s } type CreateGraphqlApiInput struct { _ struct{} `type:"structure"` // A list of additional authentication providers for the GraphqlApi API. AdditionalAuthenticationProviders []*AdditionalAuthenticationProvider `locationName:"additionalAuthenticationProviders" type:"list"` // The value that indicates whether the GraphQL API is a standard API (GRAPHQL) // or merged API (MERGED). ApiType *string `locationName:"apiType" type:"string" enum:"GraphQLApiType"` // The authentication type: API key, Identity and Access Management (IAM), OpenID // Connect (OIDC), Amazon Cognito user pools, or Lambda. // // AuthenticationType is a required field AuthenticationType *string `locationName:"authenticationType" type:"string" required:"true" enum:"AuthenticationType"` // Configuration for Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The Amazon CloudWatch Logs configuration. LogConfig *LogConfig `locationName:"logConfig" type:"structure"` // The Identity and Access Management service role ARN for a merged API. The // AppSync service assumes this role on behalf of the Merged API to validate // access to source APIs at runtime and to prompt the AUTO_MERGE to update the // merged API endpoint with the source API changes automatically. MergedApiExecutionRoleArn *string `locationName:"mergedApiExecutionRoleArn" type:"string"` // A user-supplied name for the GraphqlApi. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // The OIDC configuration. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The owner contact information for an API resource. // // This field accepts any string input with a length of 0 - 256 characters. OwnerContact *string `locationName:"ownerContact" type:"string"` // A TagMap object. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The Amazon Cognito user pool configuration. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` // Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). // If no value is provided, the visibility will be set to GLOBAL by default. // This value cannot be changed once the API has been created. Visibility *string `locationName:"visibility" type:"string" enum:"GraphQLApiVisibility"` // A flag indicating whether to use X-Ray tracing for the GraphqlApi. XrayEnabled *bool `locationName:"xrayEnabled" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateGraphqlApiInput"} if s.AuthenticationType == nil { invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if s.AdditionalAuthenticationProviders != nil { for i, v := range s.AdditionalAuthenticationProviders { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AdditionalAuthenticationProviders", i), err.(request.ErrInvalidParams)) } } } if s.LambdaAuthorizerConfig != nil { if err := s.LambdaAuthorizerConfig.Validate(); err != nil { invalidParams.AddNested("LambdaAuthorizerConfig", err.(request.ErrInvalidParams)) } } 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)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAdditionalAuthenticationProviders sets the AdditionalAuthenticationProviders field's value. func (s *CreateGraphqlApiInput) SetAdditionalAuthenticationProviders(v []*AdditionalAuthenticationProvider) *CreateGraphqlApiInput { s.AdditionalAuthenticationProviders = v return s } // SetApiType sets the ApiType field's value. func (s *CreateGraphqlApiInput) SetApiType(v string) *CreateGraphqlApiInput { s.ApiType = &v return s } // SetAuthenticationType sets the AuthenticationType field's value. func (s *CreateGraphqlApiInput) SetAuthenticationType(v string) *CreateGraphqlApiInput { s.AuthenticationType = &v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *CreateGraphqlApiInput) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *CreateGraphqlApiInput { s.LambdaAuthorizerConfig = v return s } // SetLogConfig sets the LogConfig field's value. func (s *CreateGraphqlApiInput) SetLogConfig(v *LogConfig) *CreateGraphqlApiInput { s.LogConfig = v return s } // SetMergedApiExecutionRoleArn sets the MergedApiExecutionRoleArn field's value. func (s *CreateGraphqlApiInput) SetMergedApiExecutionRoleArn(v string) *CreateGraphqlApiInput { s.MergedApiExecutionRoleArn = &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 } // SetOwnerContact sets the OwnerContact field's value. func (s *CreateGraphqlApiInput) SetOwnerContact(v string) *CreateGraphqlApiInput { s.OwnerContact = &v return s } // SetTags sets the Tags field's value. func (s *CreateGraphqlApiInput) SetTags(v map[string]*string) *CreateGraphqlApiInput { s.Tags = v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *CreateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *CreateGraphqlApiInput { s.UserPoolConfig = v return s } // SetVisibility sets the Visibility field's value. func (s *CreateGraphqlApiInput) SetVisibility(v string) *CreateGraphqlApiInput { s.Visibility = &v return s } // SetXrayEnabled sets the XrayEnabled field's value. func (s *CreateGraphqlApiInput) SetXrayEnabled(v bool) *CreateGraphqlApiInput { s.XrayEnabled = &v return s } type CreateGraphqlApiOutput struct { _ struct{} `type:"structure"` // The GraphqlApi. GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateGraphqlApiOutput) GoString() string { return s.String() } // SetGraphqlApi sets the GraphqlApi field's value. func (s *CreateGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *CreateGraphqlApiOutput { s.GraphqlApi = v return s } type CreateResolverInput struct { _ struct{} `type:"structure"` // The ID for the GraphQL API for which the resolver is being created. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The caching configuration for the resolver. CachingConfig *CachingConfig `locationName:"cachingConfig" type:"structure"` // The resolver code that contains the request and response functions. When // code is used, the runtime is required. The runtime value must be APPSYNC_JS. Code *string `locationName:"code" min:"1" type:"string"` // The name of the data source for which the resolver is being created. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The name of the field to attach the resolver to. // // FieldName is a required field FieldName *string `locationName:"fieldName" min:"1" type:"string" required:"true"` // The resolver type. // // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver // type. You can use a UNIT resolver to run a GraphQL query against a single // data source. // // * PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver // to invoke a series of Function objects in a serial manner. You can use // a pipeline resolver to run a GraphQL query against multiple data sources. Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` // The maximum batching size for a resolver. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` // The PipelineConfig. PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` // The mapping template to use for requests. // // A resolver uses a request mapping template to convert a GraphQL expression // into a format that a data source can understand. Mapping templates are written // in Apache Velocity Template Language (VTL). // // VTL request mapping templates are optional when using an Lambda data source. // For all other data sources, VTL request and response mapping templates are // required. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The mapping template to use for responses from the data source. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a runtime used by an Amazon Web Services AppSync pipeline resolver // or Amazon Web Services AppSync function. Specifies the name and version of // the runtime to use. Note that if a runtime is specified, code must also be // specified. Runtime *AppSyncRuntime `locationName:"runtime" type:"structure"` // The SyncConfig for a resolver attached to a versioned data source. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` // The name of the Type. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateResolverInput"} 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.Code != nil && len(*s.Code) < 1 { invalidParams.Add(request.NewErrParamMinLen("Code", 1)) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } 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")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if s.CachingConfig != nil { if err := s.CachingConfig.Validate(); err != nil { invalidParams.AddNested("CachingConfig", err.(request.ErrInvalidParams)) } } if s.Runtime != nil { if err := s.Runtime.Validate(); err != nil { invalidParams.AddNested("Runtime", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateResolverInput) SetApiId(v string) *CreateResolverInput { s.ApiId = &v return s } // SetCachingConfig sets the CachingConfig field's value. func (s *CreateResolverInput) SetCachingConfig(v *CachingConfig) *CreateResolverInput { s.CachingConfig = v return s } // SetCode sets the Code field's value. func (s *CreateResolverInput) SetCode(v string) *CreateResolverInput { s.Code = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *CreateResolverInput) SetDataSourceName(v string) *CreateResolverInput { s.DataSourceName = &v return s } // SetFieldName sets the FieldName field's value. func (s *CreateResolverInput) SetFieldName(v string) *CreateResolverInput { s.FieldName = &v return s } // SetKind sets the Kind field's value. func (s *CreateResolverInput) SetKind(v string) *CreateResolverInput { s.Kind = &v return s } // SetMaxBatchSize sets the MaxBatchSize field's value. func (s *CreateResolverInput) SetMaxBatchSize(v int64) *CreateResolverInput { s.MaxBatchSize = &v return s } // SetPipelineConfig sets the PipelineConfig field's value. func (s *CreateResolverInput) SetPipelineConfig(v *PipelineConfig) *CreateResolverInput { s.PipelineConfig = v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *CreateResolverInput) SetRequestMappingTemplate(v string) *CreateResolverInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *CreateResolverInput) SetResponseMappingTemplate(v string) *CreateResolverInput { s.ResponseMappingTemplate = &v return s } // SetRuntime sets the Runtime field's value. func (s *CreateResolverInput) SetRuntime(v *AppSyncRuntime) *CreateResolverInput { s.Runtime = v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *CreateResolverInput) SetSyncConfig(v *SyncConfig) *CreateResolverInput { s.SyncConfig = v return s } // SetTypeName sets the TypeName field's value. func (s *CreateResolverInput) SetTypeName(v string) *CreateResolverInput { s.TypeName = &v return s } type CreateResolverOutput struct { _ struct{} `type:"structure"` // The Resolver object. Resolver *Resolver `locationName:"resolver" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateResolverOutput) GoString() string { return s.String() } // SetResolver sets the Resolver field's value. func (s *CreateResolverOutput) SetResolver(v *Resolver) *CreateResolverOutput { s.Resolver = v return s } type CreateTypeInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type definition, in GraphQL Schema Definition Language (SDL) format. // // For more information, see the GraphQL SDL documentation (http://graphql.org/learn/schema/). // // Definition is a required field Definition *string `locationName:"definition" type:"string" required:"true"` // The type format: SDL or JSON. // // Format is a required field Format *string `locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateTypeInput"} 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.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *CreateTypeInput) SetApiId(v string) *CreateTypeInput { s.ApiId = &v return s } // SetDefinition sets the Definition field's value. func (s *CreateTypeInput) SetDefinition(v string) *CreateTypeInput { s.Definition = &v return s } // SetFormat sets the Format field's value. func (s *CreateTypeInput) SetFormat(v string) *CreateTypeInput { s.Format = &v return s } type CreateTypeOutput struct { _ struct{} `type:"structure"` // The Type object. Type *Type `locationName:"type" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateTypeOutput) GoString() string { return s.String() } // SetType sets the Type field's value. func (s *CreateTypeOutput) SetType(v *Type) *CreateTypeOutput { s.Type = v return s } // Describes a data source. type DataSource struct { _ struct{} `type:"structure"` // The data source Amazon Resource Name (ARN). DataSourceArn *string `locationName:"dataSourceArn" type:"string"` // The description of the data source. Description *string `locationName:"description" type:"string"` // DynamoDB settings. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` // Amazon OpenSearch Service settings. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` // Amazon EventBridge settings. EventBridgeConfig *EventBridgeDataSourceConfig `locationName:"eventBridgeConfig" type:"structure"` // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` // Lambda settings. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // The name of the data source. Name *string `locationName:"name" min:"1" type:"string"` // Amazon OpenSearch Service settings. OpenSearchServiceConfig *OpenSearchServiceDataSourceConfig `locationName:"openSearchServiceConfig" type:"structure"` // Relational database settings. RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` // The Identity and Access Management (IAM) service role Amazon Resource Name // (ARN) for the data source. The system assumes this role when accessing the // data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The type of the data source. // // * AWS_LAMBDA: The data source is an Lambda function. // // * AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table. // // * AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service // domain. // // * AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service // domain. // // * AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration. // // * NONE: There is no data source. Use this type when you want to invoke // a GraphQL operation without connecting to a data source, such as when // you're performing data transformation with resolvers or invoking a subscription // from a mutation. // // * HTTP: The data source is an HTTP endpoint. // // * RELATIONAL_DATABASE: The data source is a relational database. Type *string `locationName:"type" type:"string" enum:"DataSourceType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DataSource) GoString() string { return s.String() } // SetDataSourceArn sets the DataSourceArn field's value. func (s *DataSource) SetDataSourceArn(v string) *DataSource { s.DataSourceArn = &v return s } // SetDescription sets the Description field's value. func (s *DataSource) SetDescription(v string) *DataSource { s.Description = &v return s } // SetDynamodbConfig sets the DynamodbConfig field's value. func (s *DataSource) SetDynamodbConfig(v *DynamodbDataSourceConfig) *DataSource { s.DynamodbConfig = v return s } // SetElasticsearchConfig sets the ElasticsearchConfig field's value. func (s *DataSource) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *DataSource { s.ElasticsearchConfig = v return s } // SetEventBridgeConfig sets the EventBridgeConfig field's value. func (s *DataSource) SetEventBridgeConfig(v *EventBridgeDataSourceConfig) *DataSource { s.EventBridgeConfig = v return s } // SetHttpConfig sets the HttpConfig field's value. func (s *DataSource) SetHttpConfig(v *HttpDataSourceConfig) *DataSource { s.HttpConfig = v return s } // SetLambdaConfig sets the LambdaConfig field's value. func (s *DataSource) SetLambdaConfig(v *LambdaDataSourceConfig) *DataSource { s.LambdaConfig = v return s } // SetName sets the Name field's value. func (s *DataSource) SetName(v string) *DataSource { s.Name = &v return s } // SetOpenSearchServiceConfig sets the OpenSearchServiceConfig field's value. func (s *DataSource) SetOpenSearchServiceConfig(v *OpenSearchServiceDataSourceConfig) *DataSource { s.OpenSearchServiceConfig = v return s } // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. func (s *DataSource) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *DataSource { s.RelationalDatabaseConfig = v return s } // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *DataSource) SetServiceRoleArn(v string) *DataSource { s.ServiceRoleArn = &v return s } // SetType sets the Type field's value. func (s *DataSource) SetType(v string) *DataSource { s.Type = &v return s } // Represents the input of a DeleteApiCache operation. type DeleteApiCacheInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteApiCacheInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteApiCacheInput) SetApiId(v string) *DeleteApiCacheInput { s.ApiId = &v return s } // Represents the output of a DeleteApiCache operation. type DeleteApiCacheOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiCacheOutput) GoString() string { return s.String() } type DeleteApiKeyInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The ID for the API key. // // Id is a required field Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiKeyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiKeyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteApiKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteApiKeyInput"} 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.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } if s.Id != nil && len(*s.Id) < 1 { invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteApiKeyInput) SetApiId(v string) *DeleteApiKeyInput { s.ApiId = &v return s } // SetId sets the Id field's value. func (s *DeleteApiKeyInput) SetId(v string) *DeleteApiKeyInput { s.Id = &v return s } type DeleteApiKeyOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiKeyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteApiKeyOutput) GoString() string { return s.String() } type DeleteDataSourceInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The name of the data source. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDataSourceInput"} 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.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 } // SetApiId sets the ApiId field's value. func (s *DeleteDataSourceInput) SetApiId(v string) *DeleteDataSourceInput { s.ApiId = &v return s } // SetName sets the Name field's value. func (s *DeleteDataSourceInput) SetName(v string) *DeleteDataSourceInput { s.Name = &v return s } type DeleteDataSourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDataSourceOutput) GoString() string { return s.String() } type DeleteDomainNameInput struct { _ struct{} `type:"structure" nopayload:"true"` // The domain name. // // DomainName is a required field DomainName *string `location:"uri" locationName:"domainName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDomainNameInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDomainNameInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteDomainNameInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteDomainNameInput"} if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainName sets the DomainName field's value. func (s *DeleteDomainNameInput) SetDomainName(v string) *DeleteDomainNameInput { s.DomainName = &v return s } type DeleteDomainNameOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDomainNameOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteDomainNameOutput) GoString() string { return s.String() } type DeleteFunctionInput struct { _ struct{} `type:"structure" nopayload:"true"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The Function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionInput"} 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.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteFunctionInput) SetApiId(v string) *DeleteFunctionInput { s.ApiId = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *DeleteFunctionInput) SetFunctionId(v string) *DeleteFunctionInput { s.FunctionId = &v return s } type DeleteFunctionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteFunctionOutput) GoString() string { return s.String() } type DeleteGraphqlApiInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteGraphqlApiInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteGraphqlApiInput) SetApiId(v string) *DeleteGraphqlApiInput { s.ApiId = &v return s } type DeleteGraphqlApiOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteGraphqlApiOutput) GoString() string { return s.String() } type DeleteResolverInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The resolver field name. // // FieldName is a required field FieldName *string `location:"uri" locationName:"fieldName" min:"1" type:"string" required:"true"` // The name of the resolver type. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteResolverInput"} 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.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteResolverInput) SetApiId(v string) *DeleteResolverInput { s.ApiId = &v return s } // SetFieldName sets the FieldName field's value. func (s *DeleteResolverInput) SetFieldName(v string) *DeleteResolverInput { s.FieldName = &v return s } // SetTypeName sets the TypeName field's value. func (s *DeleteResolverInput) SetTypeName(v string) *DeleteResolverInput { s.TypeName = &v return s } type DeleteResolverOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteResolverOutput) GoString() string { return s.String() } type DeleteTypeInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteTypeInput"} 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.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *DeleteTypeInput) SetApiId(v string) *DeleteTypeInput { s.ApiId = &v return s } // SetTypeName sets the TypeName field's value. func (s *DeleteTypeInput) SetTypeName(v string) *DeleteTypeInput { s.TypeName = &v return s } type DeleteTypeOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteTypeOutput) GoString() string { return s.String() } // Describes a Delta Sync configuration. type DeltaSyncConfig struct { _ struct{} `type:"structure"` // The number of minutes that an Item is stored in the data source. BaseTableTTL *int64 `locationName:"baseTableTTL" type:"long"` // The Delta Sync table name. DeltaSyncTableName *string `locationName:"deltaSyncTableName" type:"string"` // The number of minutes that a Delta Sync log entry is stored in the Delta // Sync table. DeltaSyncTableTTL *int64 `locationName:"deltaSyncTableTTL" type:"long"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeltaSyncConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeltaSyncConfig) GoString() string { return s.String() } // SetBaseTableTTL sets the BaseTableTTL field's value. func (s *DeltaSyncConfig) SetBaseTableTTL(v int64) *DeltaSyncConfig { s.BaseTableTTL = &v return s } // SetDeltaSyncTableName sets the DeltaSyncTableName field's value. func (s *DeltaSyncConfig) SetDeltaSyncTableName(v string) *DeltaSyncConfig { s.DeltaSyncTableName = &v return s } // SetDeltaSyncTableTTL sets the DeltaSyncTableTTL field's value. func (s *DeltaSyncConfig) SetDeltaSyncTableTTL(v int64) *DeltaSyncConfig { s.DeltaSyncTableTTL = &v return s } type DisassociateApiInput struct { _ struct{} `type:"structure" nopayload:"true"` // The domain name. // // DomainName is a required field DomainName *string `location:"uri" locationName:"domainName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateApiInput"} if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainName sets the DomainName field's value. func (s *DisassociateApiInput) SetDomainName(v string) *DisassociateApiInput { s.DomainName = &v return s } type DisassociateApiOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateApiOutput) GoString() string { return s.String() } type DisassociateMergedGraphqlApiInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID generated by the AppSync service for the source API association. // // AssociationId is a required field AssociationId *string `location:"uri" locationName:"associationId" type:"string" required:"true"` // The identifier of the AppSync Source API. This is generated by the AppSync // service. In most cases, source APIs (especially in your account) only require // the API ID value or ARN of the source API. However, source APIs from other // accounts (cross-account use cases) strictly require the full resource ARN // of the source API. // // SourceApiIdentifier is a required field SourceApiIdentifier *string `location:"uri" locationName:"sourceApiIdentifier" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateMergedGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateMergedGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateMergedGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateMergedGraphqlApiInput"} if s.AssociationId == nil { invalidParams.Add(request.NewErrParamRequired("AssociationId")) } if s.AssociationId != nil && len(*s.AssociationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.SourceApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("SourceApiIdentifier")) } if s.SourceApiIdentifier != nil && len(*s.SourceApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("SourceApiIdentifier", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssociationId sets the AssociationId field's value. func (s *DisassociateMergedGraphqlApiInput) SetAssociationId(v string) *DisassociateMergedGraphqlApiInput { s.AssociationId = &v return s } // SetSourceApiIdentifier sets the SourceApiIdentifier field's value. func (s *DisassociateMergedGraphqlApiInput) SetSourceApiIdentifier(v string) *DisassociateMergedGraphqlApiInput { s.SourceApiIdentifier = &v return s } type DisassociateMergedGraphqlApiOutput struct { _ struct{} `type:"structure"` // The state of the source API association. SourceApiAssociationStatus *string `locationName:"sourceApiAssociationStatus" type:"string" enum:"SourceApiAssociationStatus"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateMergedGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateMergedGraphqlApiOutput) GoString() string { return s.String() } // SetSourceApiAssociationStatus sets the SourceApiAssociationStatus field's value. func (s *DisassociateMergedGraphqlApiOutput) SetSourceApiAssociationStatus(v string) *DisassociateMergedGraphqlApiOutput { s.SourceApiAssociationStatus = &v return s } type DisassociateSourceGraphqlApiInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID generated by the AppSync service for the source API association. // // AssociationId is a required field AssociationId *string `location:"uri" locationName:"associationId" type:"string" required:"true"` // The identifier of the AppSync Merged API. This is generated by the AppSync // service. In most cases, Merged APIs (especially in your account) only require // the API ID value or ARN of the merged API. However, Merged APIs in other // accounts (cross-account use cases) strictly require the full resource ARN // of the merged API. // // MergedApiIdentifier is a required field MergedApiIdentifier *string `location:"uri" locationName:"mergedApiIdentifier" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateSourceGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateSourceGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateSourceGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateSourceGraphqlApiInput"} if s.AssociationId == nil { invalidParams.Add(request.NewErrParamRequired("AssociationId")) } if s.AssociationId != nil && len(*s.AssociationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.MergedApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("MergedApiIdentifier")) } if s.MergedApiIdentifier != nil && len(*s.MergedApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("MergedApiIdentifier", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssociationId sets the AssociationId field's value. func (s *DisassociateSourceGraphqlApiInput) SetAssociationId(v string) *DisassociateSourceGraphqlApiInput { s.AssociationId = &v return s } // SetMergedApiIdentifier sets the MergedApiIdentifier field's value. func (s *DisassociateSourceGraphqlApiInput) SetMergedApiIdentifier(v string) *DisassociateSourceGraphqlApiInput { s.MergedApiIdentifier = &v return s } type DisassociateSourceGraphqlApiOutput struct { _ struct{} `type:"structure"` // The state of the source API association. SourceApiAssociationStatus *string `locationName:"sourceApiAssociationStatus" type:"string" enum:"SourceApiAssociationStatus"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateSourceGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DisassociateSourceGraphqlApiOutput) GoString() string { return s.String() } // SetSourceApiAssociationStatus sets the SourceApiAssociationStatus field's value. func (s *DisassociateSourceGraphqlApiOutput) SetSourceApiAssociationStatus(v string) *DisassociateSourceGraphqlApiOutput { s.SourceApiAssociationStatus = &v return s } // Describes a configuration for a custom domain. type DomainNameConfig struct { _ struct{} `type:"structure"` // The domain name that AppSync provides. AppsyncDomainName *string `locationName:"appsyncDomainName" type:"string"` // The Amazon Resource Name (ARN) of the certificate. This can be an Certificate // Manager (ACM) certificate or an Identity and Access Management (IAM) server // certificate. CertificateArn *string `locationName:"certificateArn" min:"20" type:"string"` // A description of the DomainName configuration. Description *string `locationName:"description" type:"string"` // The domain name. DomainName *string `locationName:"domainName" min:"1" type:"string"` // The ID of your Amazon Route 53 hosted zone. HostedZoneId *string `locationName:"hostedZoneId" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DomainNameConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DomainNameConfig) GoString() string { return s.String() } // SetAppsyncDomainName sets the AppsyncDomainName field's value. func (s *DomainNameConfig) SetAppsyncDomainName(v string) *DomainNameConfig { s.AppsyncDomainName = &v return s } // SetCertificateArn sets the CertificateArn field's value. func (s *DomainNameConfig) SetCertificateArn(v string) *DomainNameConfig { s.CertificateArn = &v return s } // SetDescription sets the Description field's value. func (s *DomainNameConfig) SetDescription(v string) *DomainNameConfig { s.Description = &v return s } // SetDomainName sets the DomainName field's value. func (s *DomainNameConfig) SetDomainName(v string) *DomainNameConfig { s.DomainName = &v return s } // SetHostedZoneId sets the HostedZoneId field's value. func (s *DomainNameConfig) SetHostedZoneId(v string) *DomainNameConfig { s.HostedZoneId = &v return s } // Describes an Amazon DynamoDB data source configuration. type DynamodbDataSourceConfig struct { _ struct{} `type:"structure"` // The Amazon Web Services Region. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The DeltaSyncConfig for a versioned data source. DeltaSyncConfig *DeltaSyncConfig `locationName:"deltaSyncConfig" type:"structure"` // The table name. // // TableName is a required field TableName *string `locationName:"tableName" type:"string" required:"true"` // Set to TRUE to use Amazon Cognito credentials with this data source. UseCallerCredentials *bool `locationName:"useCallerCredentials" type:"boolean"` // Set to TRUE to use Conflict Detection and Resolution with this data source. Versioned *bool `locationName:"versioned" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DynamodbDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DynamodbDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DynamodbDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DynamodbDataSourceConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAwsRegion sets the AwsRegion field's value. func (s *DynamodbDataSourceConfig) SetAwsRegion(v string) *DynamodbDataSourceConfig { s.AwsRegion = &v return s } // SetDeltaSyncConfig sets the DeltaSyncConfig field's value. func (s *DynamodbDataSourceConfig) SetDeltaSyncConfig(v *DeltaSyncConfig) *DynamodbDataSourceConfig { s.DeltaSyncConfig = v return s } // SetTableName sets the TableName field's value. func (s *DynamodbDataSourceConfig) SetTableName(v string) *DynamodbDataSourceConfig { s.TableName = &v return s } // SetUseCallerCredentials sets the UseCallerCredentials field's value. func (s *DynamodbDataSourceConfig) SetUseCallerCredentials(v bool) *DynamodbDataSourceConfig { s.UseCallerCredentials = &v return s } // SetVersioned sets the Versioned field's value. func (s *DynamodbDataSourceConfig) SetVersioned(v bool) *DynamodbDataSourceConfig { s.Versioned = &v return s } // Describes an OpenSearch data source configuration. // // As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. // This configuration is deprecated. For new data sources, use OpenSearchServiceDataSourceConfig // to specify an OpenSearch data source. type ElasticsearchDataSourceConfig struct { _ struct{} `type:"structure"` // The Amazon Web Services Region. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The endpoint. // // Endpoint is a required field Endpoint *string `locationName:"endpoint" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ElasticsearchDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ElasticsearchDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ElasticsearchDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ElasticsearchDataSourceConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.Endpoint == nil { invalidParams.Add(request.NewErrParamRequired("Endpoint")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAwsRegion sets the AwsRegion field's value. func (s *ElasticsearchDataSourceConfig) SetAwsRegion(v string) *ElasticsearchDataSourceConfig { s.AwsRegion = &v return s } // SetEndpoint sets the Endpoint field's value. func (s *ElasticsearchDataSourceConfig) SetEndpoint(v string) *ElasticsearchDataSourceConfig { s.Endpoint = &v return s } // Contains the list of errors generated. When using JavaScript, this will apply // to the request or response function evaluation. type ErrorDetail struct { _ struct{} `type:"structure"` // The error payload. Message *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ErrorDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ErrorDetail) GoString() string { return s.String() } // SetMessage sets the Message field's value. func (s *ErrorDetail) SetMessage(v string) *ErrorDetail { s.Message = &v return s } // Contains the list of errors from a code evaluation response. type EvaluateCodeErrorDetail struct { _ struct{} `type:"structure"` // Contains the list of CodeError objects. CodeErrors []*CodeError `locationName:"codeErrors" type:"list"` // The error payload. Message *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateCodeErrorDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateCodeErrorDetail) GoString() string { return s.String() } // SetCodeErrors sets the CodeErrors field's value. func (s *EvaluateCodeErrorDetail) SetCodeErrors(v []*CodeError) *EvaluateCodeErrorDetail { s.CodeErrors = v return s } // SetMessage sets the Message field's value. func (s *EvaluateCodeErrorDetail) SetMessage(v string) *EvaluateCodeErrorDetail { s.Message = &v return s } type EvaluateCodeInput struct { _ struct{} `type:"structure"` // The code definition to be evaluated. Note that code and runtime are both // required for this action. The runtime value must be APPSYNC_JS. // // Code is a required field Code *string `locationName:"code" min:"1" type:"string" required:"true"` // The map that holds all of the contextual information for your resolver invocation. // A context is required for this action. // // Context is a required field Context *string `locationName:"context" min:"2" type:"string" required:"true"` // The function within the code to be evaluated. If provided, the valid values // are request and response. Function *string `locationName:"function" type:"string"` // The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS // runtime is supported. // // Runtime is a required field Runtime *AppSyncRuntime `locationName:"runtime" type:"structure" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateCodeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateCodeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EvaluateCodeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EvaluateCodeInput"} if s.Code == nil { invalidParams.Add(request.NewErrParamRequired("Code")) } if s.Code != nil && len(*s.Code) < 1 { invalidParams.Add(request.NewErrParamMinLen("Code", 1)) } if s.Context == nil { invalidParams.Add(request.NewErrParamRequired("Context")) } if s.Context != nil && len(*s.Context) < 2 { invalidParams.Add(request.NewErrParamMinLen("Context", 2)) } if s.Runtime == nil { invalidParams.Add(request.NewErrParamRequired("Runtime")) } if s.Runtime != nil { if err := s.Runtime.Validate(); err != nil { invalidParams.AddNested("Runtime", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCode sets the Code field's value. func (s *EvaluateCodeInput) SetCode(v string) *EvaluateCodeInput { s.Code = &v return s } // SetContext sets the Context field's value. func (s *EvaluateCodeInput) SetContext(v string) *EvaluateCodeInput { s.Context = &v return s } // SetFunction sets the Function field's value. func (s *EvaluateCodeInput) SetFunction(v string) *EvaluateCodeInput { s.Function = &v return s } // SetRuntime sets the Runtime field's value. func (s *EvaluateCodeInput) SetRuntime(v *AppSyncRuntime) *EvaluateCodeInput { s.Runtime = v return s } type EvaluateCodeOutput struct { _ struct{} `type:"structure"` // Contains the payload of the response error. Error *EvaluateCodeErrorDetail `locationName:"error" type:"structure"` // The result of the evaluation operation. EvaluationResult *string `locationName:"evaluationResult" type:"string"` // A list of logs that were generated by calls to util.log.info and util.log.error // in the evaluated code. Logs []*string `locationName:"logs" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateCodeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateCodeOutput) GoString() string { return s.String() } // SetError sets the Error field's value. func (s *EvaluateCodeOutput) SetError(v *EvaluateCodeErrorDetail) *EvaluateCodeOutput { s.Error = v return s } // SetEvaluationResult sets the EvaluationResult field's value. func (s *EvaluateCodeOutput) SetEvaluationResult(v string) *EvaluateCodeOutput { s.EvaluationResult = &v return s } // SetLogs sets the Logs field's value. func (s *EvaluateCodeOutput) SetLogs(v []*string) *EvaluateCodeOutput { s.Logs = v return s } type EvaluateMappingTemplateInput struct { _ struct{} `type:"structure"` // The map that holds all of the contextual information for your resolver invocation. // A context is required for this action. // // Context is a required field Context *string `locationName:"context" min:"2" type:"string" required:"true"` // The mapping template; this can be a request or response template. A template // is required for this action. // // Template is a required field Template *string `locationName:"template" min:"2" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateMappingTemplateInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateMappingTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EvaluateMappingTemplateInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EvaluateMappingTemplateInput"} if s.Context == nil { invalidParams.Add(request.NewErrParamRequired("Context")) } if s.Context != nil && len(*s.Context) < 2 { invalidParams.Add(request.NewErrParamMinLen("Context", 2)) } if s.Template == nil { invalidParams.Add(request.NewErrParamRequired("Template")) } if s.Template != nil && len(*s.Template) < 2 { invalidParams.Add(request.NewErrParamMinLen("Template", 2)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetContext sets the Context field's value. func (s *EvaluateMappingTemplateInput) SetContext(v string) *EvaluateMappingTemplateInput { s.Context = &v return s } // SetTemplate sets the Template field's value. func (s *EvaluateMappingTemplateInput) SetTemplate(v string) *EvaluateMappingTemplateInput { s.Template = &v return s } type EvaluateMappingTemplateOutput struct { _ struct{} `type:"structure"` // The ErrorDetail object. Error *ErrorDetail `locationName:"error" type:"structure"` // The mapping template; this can be a request or response template. EvaluationResult *string `locationName:"evaluationResult" type:"string"` // A list of logs that were generated by calls to util.log.info and util.log.error // in the evaluated code. Logs []*string `locationName:"logs" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateMappingTemplateOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EvaluateMappingTemplateOutput) GoString() string { return s.String() } // SetError sets the Error field's value. func (s *EvaluateMappingTemplateOutput) SetError(v *ErrorDetail) *EvaluateMappingTemplateOutput { s.Error = v return s } // SetEvaluationResult sets the EvaluationResult field's value. func (s *EvaluateMappingTemplateOutput) SetEvaluationResult(v string) *EvaluateMappingTemplateOutput { s.EvaluationResult = &v return s } // SetLogs sets the Logs field's value. func (s *EvaluateMappingTemplateOutput) SetLogs(v []*string) *EvaluateMappingTemplateOutput { s.Logs = v return s } // Describes an Amazon EventBridge bus data source configuration. type EventBridgeDataSourceConfig struct { _ struct{} `type:"structure"` // The ARN of the event bus. For more information about event buses, see Amazon // EventBridge event buses (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html). // // EventBusArn is a required field EventBusArn *string `locationName:"eventBusArn" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EventBridgeDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s EventBridgeDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *EventBridgeDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "EventBridgeDataSourceConfig"} if s.EventBusArn == nil { invalidParams.Add(request.NewErrParamRequired("EventBusArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetEventBusArn sets the EventBusArn field's value. func (s *EventBridgeDataSourceConfig) SetEventBusArn(v string) *EventBridgeDataSourceConfig { s.EventBusArn = &v return s } // Represents the input of a FlushApiCache operation. type FlushApiCacheInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s FlushApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s FlushApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *FlushApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "FlushApiCacheInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *FlushApiCacheInput) SetApiId(v string) *FlushApiCacheInput { s.ApiId = &v return s } // Represents the output of a FlushApiCache operation. type FlushApiCacheOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s FlushApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s FlushApiCacheOutput) GoString() string { return s.String() } // A function is a reusable entity. You can use multiple functions to compose // the resolver logic. type FunctionConfiguration struct { _ struct{} `type:"structure"` // The function code that contains the request and response functions. When // code is used, the runtime is required. The runtime value must be APPSYNC_JS. Code *string `locationName:"code" min:"1" type:"string"` // The name of the DataSource. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The Function description. Description *string `locationName:"description" type:"string"` // The Amazon Resource Name (ARN) of the Function object. FunctionArn *string `locationName:"functionArn" type:"string"` // A unique ID representing the Function object. FunctionId *string `locationName:"functionId" type:"string"` // The version of the request mapping template. Currently, only the 2018-05-29 // version of the template is supported. FunctionVersion *string `locationName:"functionVersion" type:"string"` // The maximum batching size for a resolver. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` // The name of the Function object. Name *string `locationName:"name" min:"1" type:"string"` // The Function request mapping template. Functions support only the 2018-05-29 // version of the request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The Function response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a runtime used by an Amazon Web Services AppSync pipeline resolver // or Amazon Web Services AppSync function. Specifies the name and version of // the runtime to use. Note that if a runtime is specified, code must also be // specified. Runtime *AppSyncRuntime `locationName:"runtime" type:"structure"` // Describes a Sync configuration for a resolver. // // Specifies which Conflict Detection strategy and Resolution strategy to use // when the resolver is invoked. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s FunctionConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s FunctionConfiguration) GoString() string { return s.String() } // SetCode sets the Code field's value. func (s *FunctionConfiguration) SetCode(v string) *FunctionConfiguration { s.Code = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *FunctionConfiguration) SetDataSourceName(v string) *FunctionConfiguration { s.DataSourceName = &v return s } // SetDescription sets the Description field's value. func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration { s.Description = &v return s } // SetFunctionArn sets the FunctionArn field's value. func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration { s.FunctionArn = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *FunctionConfiguration) SetFunctionId(v string) *FunctionConfiguration { s.FunctionId = &v return s } // SetFunctionVersion sets the FunctionVersion field's value. func (s *FunctionConfiguration) SetFunctionVersion(v string) *FunctionConfiguration { s.FunctionVersion = &v return s } // SetMaxBatchSize sets the MaxBatchSize field's value. func (s *FunctionConfiguration) SetMaxBatchSize(v int64) *FunctionConfiguration { s.MaxBatchSize = &v return s } // SetName sets the Name field's value. func (s *FunctionConfiguration) SetName(v string) *FunctionConfiguration { s.Name = &v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *FunctionConfiguration) SetRequestMappingTemplate(v string) *FunctionConfiguration { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *FunctionConfiguration) SetResponseMappingTemplate(v string) *FunctionConfiguration { s.ResponseMappingTemplate = &v return s } // SetRuntime sets the Runtime field's value. func (s *FunctionConfiguration) SetRuntime(v *AppSyncRuntime) *FunctionConfiguration { s.Runtime = v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *FunctionConfiguration) SetSyncConfig(v *SyncConfig) *FunctionConfiguration { s.SyncConfig = v return s } type GetApiAssociationInput struct { _ struct{} `type:"structure" nopayload:"true"` // The domain name. // // DomainName is a required field DomainName *string `location:"uri" locationName:"domainName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiAssociationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiAssociationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetApiAssociationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetApiAssociationInput"} if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainName sets the DomainName field's value. func (s *GetApiAssociationInput) SetDomainName(v string) *GetApiAssociationInput { s.DomainName = &v return s } type GetApiAssociationOutput struct { _ struct{} `type:"structure"` // The ApiAssociation object. ApiAssociation *ApiAssociation `locationName:"apiAssociation" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiAssociationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiAssociationOutput) GoString() string { return s.String() } // SetApiAssociation sets the ApiAssociation field's value. func (s *GetApiAssociationOutput) SetApiAssociation(v *ApiAssociation) *GetApiAssociationOutput { s.ApiAssociation = v return s } // Represents the input of a GetApiCache operation. type GetApiCacheInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetApiCacheInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetApiCacheInput) SetApiId(v string) *GetApiCacheInput { s.ApiId = &v return s } // Represents the output of a GetApiCache operation. type GetApiCacheOutput struct { _ struct{} `type:"structure"` // The ApiCache object. ApiCache *ApiCache `locationName:"apiCache" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetApiCacheOutput) GoString() string { return s.String() } // SetApiCache sets the ApiCache field's value. func (s *GetApiCacheOutput) SetApiCache(v *ApiCache) *GetApiCacheOutput { s.ApiCache = v return s } type GetDataSourceInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The name of the data source. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDataSourceInput"} 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.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 } // SetApiId sets the ApiId field's value. func (s *GetDataSourceInput) SetApiId(v string) *GetDataSourceInput { s.ApiId = &v return s } // SetName sets the Name field's value. func (s *GetDataSourceInput) SetName(v string) *GetDataSourceInput { s.Name = &v return s } type GetDataSourceOutput struct { _ struct{} `type:"structure"` // The DataSource object. DataSource *DataSource `locationName:"dataSource" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDataSourceOutput) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *GetDataSourceOutput) SetDataSource(v *DataSource) *GetDataSourceOutput { s.DataSource = v return s } type GetDomainNameInput struct { _ struct{} `type:"structure" nopayload:"true"` // The domain name. // // DomainName is a required field DomainName *string `location:"uri" locationName:"domainName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDomainNameInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDomainNameInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetDomainNameInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetDomainNameInput"} if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDomainName sets the DomainName field's value. func (s *GetDomainNameInput) SetDomainName(v string) *GetDomainNameInput { s.DomainName = &v return s } type GetDomainNameOutput struct { _ struct{} `type:"structure"` // The configuration for the DomainName. DomainNameConfig *DomainNameConfig `locationName:"domainNameConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDomainNameOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetDomainNameOutput) GoString() string { return s.String() } // SetDomainNameConfig sets the DomainNameConfig field's value. func (s *GetDomainNameOutput) SetDomainNameConfig(v *DomainNameConfig) *GetDomainNameOutput { s.DomainNameConfig = v return s } type GetFunctionInput struct { _ struct{} `type:"structure" nopayload:"true"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The Function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetFunctionInput"} 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.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetFunctionInput) SetApiId(v string) *GetFunctionInput { s.ApiId = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *GetFunctionInput) SetFunctionId(v string) *GetFunctionInput { s.FunctionId = &v return s } type GetFunctionOutput struct { _ struct{} `type:"structure"` // The Function object. FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetFunctionOutput) GoString() string { return s.String() } // SetFunctionConfiguration sets the FunctionConfiguration field's value. func (s *GetFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *GetFunctionOutput { s.FunctionConfiguration = v return s } type GetGraphqlApiInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID for the GraphQL API. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetGraphqlApiInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetGraphqlApiInput) SetApiId(v string) *GetGraphqlApiInput { s.ApiId = &v return s } type GetGraphqlApiOutput struct { _ struct{} `type:"structure"` // The GraphqlApi object. GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetGraphqlApiOutput) GoString() string { return s.String() } // SetGraphqlApi sets the GraphqlApi field's value. func (s *GetGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *GetGraphqlApiOutput { s.GraphqlApi = v return s } type GetIntrospectionSchemaInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The schema format: SDL or JSON. // // Format is a required field Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"OutputType"` // A flag that specifies whether the schema introspection should contain directives. IncludeDirectives *bool `location:"querystring" locationName:"includeDirectives" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetIntrospectionSchemaInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetIntrospectionSchemaInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetIntrospectionSchemaInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetIntrospectionSchemaInput"} 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.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetIntrospectionSchemaInput) SetApiId(v string) *GetIntrospectionSchemaInput { s.ApiId = &v return s } // SetFormat sets the Format field's value. func (s *GetIntrospectionSchemaInput) SetFormat(v string) *GetIntrospectionSchemaInput { s.Format = &v return s } // SetIncludeDirectives sets the IncludeDirectives field's value. func (s *GetIntrospectionSchemaInput) SetIncludeDirectives(v bool) *GetIntrospectionSchemaInput { s.IncludeDirectives = &v return s } type GetIntrospectionSchemaOutput struct { _ struct{} `type:"structure" payload:"Schema"` // The schema, in GraphQL Schema Definition Language (SDL) format. // // For more information, see the GraphQL SDL documentation (http://graphql.org/learn/schema/). Schema []byte `locationName:"schema" type:"blob"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetIntrospectionSchemaOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetIntrospectionSchemaOutput) GoString() string { return s.String() } // SetSchema sets the Schema field's value. func (s *GetIntrospectionSchemaOutput) SetSchema(v []byte) *GetIntrospectionSchemaOutput { s.Schema = v return s } type GetResolverInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The resolver field name. // // FieldName is a required field FieldName *string `location:"uri" locationName:"fieldName" min:"1" type:"string" required:"true"` // The resolver type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetResolverInput"} 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.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetResolverInput) SetApiId(v string) *GetResolverInput { s.ApiId = &v return s } // SetFieldName sets the FieldName field's value. func (s *GetResolverInput) SetFieldName(v string) *GetResolverInput { s.FieldName = &v return s } // SetTypeName sets the TypeName field's value. func (s *GetResolverInput) SetTypeName(v string) *GetResolverInput { s.TypeName = &v return s } type GetResolverOutput struct { _ struct{} `type:"structure"` // The Resolver object. Resolver *Resolver `locationName:"resolver" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetResolverOutput) GoString() string { return s.String() } // SetResolver sets the Resolver field's value. func (s *GetResolverOutput) SetResolver(v *Resolver) *GetResolverOutput { s.Resolver = v return s } type GetSchemaCreationStatusInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSchemaCreationStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSchemaCreationStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetSchemaCreationStatusInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetSchemaCreationStatusInput"} if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } if s.ApiId != nil && len(*s.ApiId) < 1 { invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetSchemaCreationStatusInput) SetApiId(v string) *GetSchemaCreationStatusInput { s.ApiId = &v return s } type GetSchemaCreationStatusOutput struct { _ struct{} `type:"structure"` // Detailed information about the status of the schema creation operation. Details *string `locationName:"details" type:"string"` // The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). // When the schema is in the ACTIVE state, you can add data. Status *string `locationName:"status" type:"string" enum:"SchemaStatus"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSchemaCreationStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSchemaCreationStatusOutput) GoString() string { return s.String() } // SetDetails sets the Details field's value. func (s *GetSchemaCreationStatusOutput) SetDetails(v string) *GetSchemaCreationStatusOutput { s.Details = &v return s } // SetStatus sets the Status field's value. func (s *GetSchemaCreationStatusOutput) SetStatus(v string) *GetSchemaCreationStatusOutput { s.Status = &v return s } type GetSourceApiAssociationInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID generated by the AppSync service for the source API association. // // AssociationId is a required field AssociationId *string `location:"uri" locationName:"associationId" type:"string" required:"true"` // The identifier of the AppSync Merged API. This is generated by the AppSync // service. In most cases, Merged APIs (especially in your account) only require // the API ID value or ARN of the merged API. However, Merged APIs in other // accounts (cross-account use cases) strictly require the full resource ARN // of the merged API. // // MergedApiIdentifier is a required field MergedApiIdentifier *string `location:"uri" locationName:"mergedApiIdentifier" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSourceApiAssociationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSourceApiAssociationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetSourceApiAssociationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetSourceApiAssociationInput"} if s.AssociationId == nil { invalidParams.Add(request.NewErrParamRequired("AssociationId")) } if s.AssociationId != nil && len(*s.AssociationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.MergedApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("MergedApiIdentifier")) } if s.MergedApiIdentifier != nil && len(*s.MergedApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("MergedApiIdentifier", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssociationId sets the AssociationId field's value. func (s *GetSourceApiAssociationInput) SetAssociationId(v string) *GetSourceApiAssociationInput { s.AssociationId = &v return s } // SetMergedApiIdentifier sets the MergedApiIdentifier field's value. func (s *GetSourceApiAssociationInput) SetMergedApiIdentifier(v string) *GetSourceApiAssociationInput { s.MergedApiIdentifier = &v return s } type GetSourceApiAssociationOutput struct { _ struct{} `type:"structure"` // The SourceApiAssociation object data. SourceApiAssociation *SourceApiAssociation `locationName:"sourceApiAssociation" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSourceApiAssociationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetSourceApiAssociationOutput) GoString() string { return s.String() } // SetSourceApiAssociation sets the SourceApiAssociation field's value. func (s *GetSourceApiAssociationOutput) SetSourceApiAssociation(v *SourceApiAssociation) *GetSourceApiAssociationOutput { s.SourceApiAssociation = v return s } type GetTypeInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type format: SDL or JSON. // // Format is a required field Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` // The type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetTypeInput"} 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.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *GetTypeInput) SetApiId(v string) *GetTypeInput { s.ApiId = &v return s } // SetFormat sets the Format field's value. func (s *GetTypeInput) SetFormat(v string) *GetTypeInput { s.Format = &v return s } // SetTypeName sets the TypeName field's value. func (s *GetTypeInput) SetTypeName(v string) *GetTypeInput { s.TypeName = &v return s } type GetTypeOutput struct { _ struct{} `type:"structure"` // The Type object. Type *Type `locationName:"type" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetTypeOutput) GoString() string { return s.String() } // SetType sets the Type field's value. func (s *GetTypeOutput) SetType(v *Type) *GetTypeOutput { s.Type = v return s } // The GraphQL schema is not valid. type GraphQLSchemaException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GraphQLSchemaException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GraphQLSchemaException) GoString() string { return s.String() } func newErrorGraphQLSchemaException(v protocol.ResponseMetadata) error { return &GraphQLSchemaException{ RespMetadata: v, } } // Code returns the exception type name. func (s *GraphQLSchemaException) Code() string { return "GraphQLSchemaException" } // Message returns the exception's message. func (s *GraphQLSchemaException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *GraphQLSchemaException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. func (s *GraphQLSchemaException) RequestID() string { return s.RespMetadata.RequestID } // Describes a GraphQL API. type GraphqlApi struct { _ struct{} `type:"structure"` // A list of additional authentication providers for the GraphqlApi API. AdditionalAuthenticationProviders []*AdditionalAuthenticationProvider `locationName:"additionalAuthenticationProviders" type:"list"` // The API ID. ApiId *string `locationName:"apiId" type:"string"` // The value that indicates whether the GraphQL API is a standard API (GRAPHQL) // or merged API (MERGED). ApiType *string `locationName:"apiType" type:"string" enum:"GraphQLApiType"` // The Amazon Resource Name (ARN). Arn *string `locationName:"arn" type:"string"` // The authentication type. AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"` // The DNS records for the API. Dns map[string]*string `locationName:"dns" type:"map"` // Configuration for Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The Amazon CloudWatch Logs configuration. LogConfig *LogConfig `locationName:"logConfig" type:"structure"` // The Identity and Access Management service role ARN for a merged API. The // AppSync service assumes this role on behalf of the Merged API to validate // access to source APIs at runtime and to prompt the AUTO_MERGE to update the // merged API endpoint with the source API changes automatically. MergedApiExecutionRoleArn *string `locationName:"mergedApiExecutionRoleArn" type:"string"` // The API name. Name *string `locationName:"name" min:"1" type:"string"` // The OpenID Connect configuration. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The account owner of the GraphQL API. Owner *string `locationName:"owner" type:"string"` // The owner contact information for an API resource. // // This field accepts any string input with a length of 0 - 256 characters. OwnerContact *string `locationName:"ownerContact" type:"string"` // The tags. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The URIs. Uris map[string]*string `locationName:"uris" type:"map"` // The Amazon Cognito user pool configuration. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` // Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). // If no value is provided, the visibility will be set to GLOBAL by default. // This value cannot be changed once the API has been created. Visibility *string `locationName:"visibility" type:"string" enum:"GraphQLApiVisibility"` // The ARN of the WAF access control list (ACL) associated with this GraphqlApi, // if one exists. WafWebAclArn *string `locationName:"wafWebAclArn" type:"string"` // A flag indicating whether to use X-Ray tracing for this GraphqlApi. XrayEnabled *bool `locationName:"xrayEnabled" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GraphqlApi) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GraphqlApi) GoString() string { return s.String() } // SetAdditionalAuthenticationProviders sets the AdditionalAuthenticationProviders field's value. func (s *GraphqlApi) SetAdditionalAuthenticationProviders(v []*AdditionalAuthenticationProvider) *GraphqlApi { s.AdditionalAuthenticationProviders = v return s } // SetApiId sets the ApiId field's value. func (s *GraphqlApi) SetApiId(v string) *GraphqlApi { s.ApiId = &v return s } // SetApiType sets the ApiType field's value. func (s *GraphqlApi) SetApiType(v string) *GraphqlApi { s.ApiType = &v return s } // SetArn sets the Arn field's value. func (s *GraphqlApi) SetArn(v string) *GraphqlApi { s.Arn = &v return s } // SetAuthenticationType sets the AuthenticationType field's value. func (s *GraphqlApi) SetAuthenticationType(v string) *GraphqlApi { s.AuthenticationType = &v return s } // SetDns sets the Dns field's value. func (s *GraphqlApi) SetDns(v map[string]*string) *GraphqlApi { s.Dns = v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *GraphqlApi) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *GraphqlApi { s.LambdaAuthorizerConfig = v return s } // SetLogConfig sets the LogConfig field's value. func (s *GraphqlApi) SetLogConfig(v *LogConfig) *GraphqlApi { s.LogConfig = v return s } // SetMergedApiExecutionRoleArn sets the MergedApiExecutionRoleArn field's value. func (s *GraphqlApi) SetMergedApiExecutionRoleArn(v string) *GraphqlApi { s.MergedApiExecutionRoleArn = &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 } // SetOwner sets the Owner field's value. func (s *GraphqlApi) SetOwner(v string) *GraphqlApi { s.Owner = &v return s } // SetOwnerContact sets the OwnerContact field's value. func (s *GraphqlApi) SetOwnerContact(v string) *GraphqlApi { s.OwnerContact = &v return s } // SetTags sets the Tags field's value. func (s *GraphqlApi) SetTags(v map[string]*string) *GraphqlApi { s.Tags = v return s } // SetUris sets the Uris field's value. func (s *GraphqlApi) SetUris(v map[string]*string) *GraphqlApi { s.Uris = v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *GraphqlApi) SetUserPoolConfig(v *UserPoolConfig) *GraphqlApi { s.UserPoolConfig = v return s } // SetVisibility sets the Visibility field's value. func (s *GraphqlApi) SetVisibility(v string) *GraphqlApi { s.Visibility = &v return s } // SetWafWebAclArn sets the WafWebAclArn field's value. func (s *GraphqlApi) SetWafWebAclArn(v string) *GraphqlApi { s.WafWebAclArn = &v return s } // SetXrayEnabled sets the XrayEnabled field's value. func (s *GraphqlApi) SetXrayEnabled(v bool) *GraphqlApi { s.XrayEnabled = &v return s } // Describes an HTTP data source configuration. type HttpDataSourceConfig struct { _ struct{} `type:"structure"` // The authorization configuration in case the HTTP endpoint requires authorization. AuthorizationConfig *AuthorizationConfig `locationName:"authorizationConfig" type:"structure"` // The HTTP URL endpoint. You can specify either the domain name or IP, and // port combination, and the URL scheme must be HTTP or HTTPS. If you don't // specify the port, AppSync uses the default port 80 for the HTTP endpoint // and port 443 for HTTPS endpoints. Endpoint *string `locationName:"endpoint" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s HttpDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s HttpDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *HttpDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "HttpDataSourceConfig"} if s.AuthorizationConfig != nil { if err := s.AuthorizationConfig.Validate(); err != nil { invalidParams.AddNested("AuthorizationConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizationConfig sets the AuthorizationConfig field's value. func (s *HttpDataSourceConfig) SetAuthorizationConfig(v *AuthorizationConfig) *HttpDataSourceConfig { s.AuthorizationConfig = v return s } // SetEndpoint sets the Endpoint field's value. func (s *HttpDataSourceConfig) SetEndpoint(v string) *HttpDataSourceConfig { s.Endpoint = &v return s } // An internal AppSync error occurred. Try your request again. type InternalFailureException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InternalFailureException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InternalFailureException) GoString() string { return s.String() } func newErrorInternalFailureException(v protocol.ResponseMetadata) error { return &InternalFailureException{ RespMetadata: v, } } // Code returns the exception type name. func (s *InternalFailureException) Code() string { return "InternalFailureException" } // Message returns the exception's message. func (s *InternalFailureException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InternalFailureException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. func (s *InternalFailureException) RequestID() string { return s.RespMetadata.RequestID } // A LambdaAuthorizerConfig specifies how to authorize AppSync API access when // using the AWS_LAMBDA authorizer mode. Be aware that an AppSync API can have // only one Lambda authorizer configured at a time. type LambdaAuthorizerConfig struct { _ struct{} `type:"structure"` // The number of seconds a response should be cached for. The default is 0 seconds, // which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, // the default value is used. The maximum value is one hour (3600 seconds). // The Lambda function can override this by returning a ttlOverride key in its // response. AuthorizerResultTtlInSeconds *int64 `locationName:"authorizerResultTtlInSeconds" type:"integer"` // The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. // This can be a standard Lambda ARN, a version ARN (.../v3), or an alias ARN. // // Note: This Lambda function must have the following resource-based policy // assigned to it. When configuring Lambda authorizers in the console, this // is done for you. To use the Command Line Interface (CLI), run the following: // // aws lambda add-permission --function-name "arn:aws:lambda:us-east-2:111122223333:function:my-function" // --statement-id "appsync" --principal appsync.amazonaws.com --action lambda:InvokeFunction // // AuthorizerUri is a required field AuthorizerUri *string `locationName:"authorizerUri" type:"string" required:"true"` // A regular expression for validation of tokens before the Lambda function // is called. IdentityValidationExpression *string `locationName:"identityValidationExpression" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaAuthorizerConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaAuthorizerConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LambdaAuthorizerConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LambdaAuthorizerConfig"} if s.AuthorizerUri == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerUri")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAuthorizerResultTtlInSeconds sets the AuthorizerResultTtlInSeconds field's value. func (s *LambdaAuthorizerConfig) SetAuthorizerResultTtlInSeconds(v int64) *LambdaAuthorizerConfig { s.AuthorizerResultTtlInSeconds = &v return s } // SetAuthorizerUri sets the AuthorizerUri field's value. func (s *LambdaAuthorizerConfig) SetAuthorizerUri(v string) *LambdaAuthorizerConfig { s.AuthorizerUri = &v return s } // SetIdentityValidationExpression sets the IdentityValidationExpression field's value. func (s *LambdaAuthorizerConfig) SetIdentityValidationExpression(v string) *LambdaAuthorizerConfig { s.IdentityValidationExpression = &v return s } // The LambdaConflictHandlerConfig object when configuring LAMBDA as the Conflict // Handler. type LambdaConflictHandlerConfig struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict // Handler. LambdaConflictHandlerArn *string `locationName:"lambdaConflictHandlerArn" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaConflictHandlerConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaConflictHandlerConfig) GoString() string { return s.String() } // SetLambdaConflictHandlerArn sets the LambdaConflictHandlerArn field's value. func (s *LambdaConflictHandlerConfig) SetLambdaConflictHandlerArn(v string) *LambdaConflictHandlerConfig { s.LambdaConflictHandlerArn = &v return s } // Describes an Lambda data source configuration. type LambdaDataSourceConfig struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the Lambda function. // // LambdaFunctionArn is a required field LambdaFunctionArn *string `locationName:"lambdaFunctionArn" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LambdaDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LambdaDataSourceConfig"} if s.LambdaFunctionArn == nil { invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLambdaFunctionArn sets the LambdaFunctionArn field's value. func (s *LambdaDataSourceConfig) SetLambdaFunctionArn(v string) *LambdaDataSourceConfig { s.LambdaFunctionArn = &v return s } // The request exceeded a limit. Try your request again. type LimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LimitExceededException) GoString() string { return s.String() } func newErrorLimitExceededException(v protocol.ResponseMetadata) error { return &LimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. func (s *LimitExceededException) Code() string { return "LimitExceededException" } // Message returns the exception's message. func (s *LimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *LimitExceededException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } type ListApiKeysInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListApiKeysInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListApiKeysInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListApiKeysInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListApiKeysInput"} 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.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListApiKeysInput) SetApiId(v string) *ListApiKeysInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListApiKeysInput) SetMaxResults(v int64) *ListApiKeysInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListApiKeysInput) SetNextToken(v string) *ListApiKeysInput { s.NextToken = &v return s } type ListApiKeysOutput struct { _ struct{} `type:"structure"` // The ApiKey objects. ApiKeys []*ApiKey `locationName:"apiKeys" type:"list"` // An identifier to pass in the next request to this operation to return the // next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListApiKeysOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListApiKeysOutput) GoString() string { return s.String() } // SetApiKeys sets the ApiKeys field's value. func (s *ListApiKeysOutput) SetApiKeys(v []*ApiKey) *ListApiKeysOutput { s.ApiKeys = v return s } // SetNextToken sets the NextToken field's value. func (s *ListApiKeysOutput) SetNextToken(v string) *ListApiKeysOutput { s.NextToken = &v return s } type ListDataSourcesInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDataSourcesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDataSourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDataSourcesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDataSourcesInput"} 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.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListDataSourcesInput) SetApiId(v string) *ListDataSourcesInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListDataSourcesInput) SetMaxResults(v int64) *ListDataSourcesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDataSourcesInput) SetNextToken(v string) *ListDataSourcesInput { s.NextToken = &v return s } type ListDataSourcesOutput struct { _ struct{} `type:"structure"` // The DataSource objects. DataSources []*DataSource `locationName:"dataSources" type:"list"` // An identifier to pass in the next request to this operation to return the // next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDataSourcesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDataSourcesOutput) GoString() string { return s.String() } // SetDataSources sets the DataSources field's value. func (s *ListDataSourcesOutput) SetDataSources(v []*DataSource) *ListDataSourcesOutput { s.DataSources = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDataSourcesOutput) SetNextToken(v string) *ListDataSourcesOutput { s.NextToken = &v return s } type ListDomainNamesInput struct { _ struct{} `type:"structure" nopayload:"true"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDomainNamesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDomainNamesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListDomainNamesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListDomainNamesInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListDomainNamesInput) SetMaxResults(v int64) *ListDomainNamesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListDomainNamesInput) SetNextToken(v string) *ListDomainNamesInput { s.NextToken = &v return s } type ListDomainNamesOutput struct { _ struct{} `type:"structure"` // Lists configurations for multiple domain names. DomainNameConfigs []*DomainNameConfig `locationName:"domainNameConfigs" type:"list"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDomainNamesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListDomainNamesOutput) GoString() string { return s.String() } // SetDomainNameConfigs sets the DomainNameConfigs field's value. func (s *ListDomainNamesOutput) SetDomainNameConfigs(v []*DomainNameConfig) *ListDomainNamesOutput { s.DomainNameConfigs = v return s } // SetNextToken sets the NextToken field's value. func (s *ListDomainNamesOutput) SetNextToken(v string) *ListDomainNamesOutput { s.NextToken = &v return s } type ListFunctionsInput struct { _ struct{} `type:"structure" nopayload:"true"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListFunctionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListFunctionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListFunctionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListFunctionsInput"} 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.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListFunctionsInput) SetApiId(v string) *ListFunctionsInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListFunctionsInput) SetMaxResults(v int64) *ListFunctionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListFunctionsInput) SetNextToken(v string) *ListFunctionsInput { s.NextToken = &v return s } type ListFunctionsOutput struct { _ struct{} `type:"structure"` // A list of Function objects. Functions []*FunctionConfiguration `locationName:"functions" type:"list"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListFunctionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListFunctionsOutput) GoString() string { return s.String() } // SetFunctions sets the Functions field's value. func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput { s.Functions = v return s } // SetNextToken sets the NextToken field's value. func (s *ListFunctionsOutput) SetNextToken(v string) *ListFunctionsOutput { s.NextToken = &v return s } type ListGraphqlApisInput struct { _ struct{} `type:"structure" nopayload:"true"` // The value that indicates whether the GraphQL API is a standard API (GRAPHQL) // or merged API (MERGED). ApiType *string `location:"querystring" locationName:"apiType" type:"string" enum:"GraphQLApiType"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` // The account owner of the GraphQL API. Owner *string `location:"querystring" locationName:"owner" type:"string" enum:"Ownership"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListGraphqlApisInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListGraphqlApisInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListGraphqlApisInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListGraphqlApisInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiType sets the ApiType field's value. func (s *ListGraphqlApisInput) SetApiType(v string) *ListGraphqlApisInput { s.ApiType = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListGraphqlApisInput) SetMaxResults(v int64) *ListGraphqlApisInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListGraphqlApisInput) SetNextToken(v string) *ListGraphqlApisInput { s.NextToken = &v return s } // SetOwner sets the Owner field's value. func (s *ListGraphqlApisInput) SetOwner(v string) *ListGraphqlApisInput { s.Owner = &v return s } type ListGraphqlApisOutput struct { _ struct{} `type:"structure"` // The GraphqlApi objects. GraphqlApis []*GraphqlApi `locationName:"graphqlApis" type:"list"` // An identifier to pass in the next request to this operation to return the // next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListGraphqlApisOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListGraphqlApisOutput) GoString() string { return s.String() } // SetGraphqlApis sets the GraphqlApis field's value. func (s *ListGraphqlApisOutput) SetGraphqlApis(v []*GraphqlApi) *ListGraphqlApisOutput { s.GraphqlApis = v return s } // SetNextToken sets the NextToken field's value. func (s *ListGraphqlApisOutput) SetNextToken(v string) *ListGraphqlApisOutput { s.NextToken = &v return s } type ListResolversByFunctionInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversByFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversByFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListResolversByFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListResolversByFunctionInput"} 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.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListResolversByFunctionInput) SetApiId(v string) *ListResolversByFunctionInput { s.ApiId = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *ListResolversByFunctionInput) SetFunctionId(v string) *ListResolversByFunctionInput { s.FunctionId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListResolversByFunctionInput) SetMaxResults(v int64) *ListResolversByFunctionInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListResolversByFunctionInput) SetNextToken(v string) *ListResolversByFunctionInput { s.NextToken = &v return s } type ListResolversByFunctionOutput struct { _ struct{} `type:"structure"` // An identifier that you can use to return the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The list of resolvers. Resolvers []*Resolver `locationName:"resolvers" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversByFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversByFunctionOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListResolversByFunctionOutput) SetNextToken(v string) *ListResolversByFunctionOutput { s.NextToken = &v return s } // SetResolvers sets the Resolvers field's value. func (s *ListResolversByFunctionOutput) SetResolvers(v []*Resolver) *ListResolversByFunctionOutput { s.Resolvers = v return s } type ListResolversInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` // The type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListResolversInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListResolversInput"} 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.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListResolversInput) SetApiId(v string) *ListResolversInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListResolversInput) SetMaxResults(v int64) *ListResolversInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListResolversInput) SetNextToken(v string) *ListResolversInput { s.NextToken = &v return s } // SetTypeName sets the TypeName field's value. func (s *ListResolversInput) SetTypeName(v string) *ListResolversInput { s.TypeName = &v return s } type ListResolversOutput struct { _ struct{} `type:"structure"` // An identifier to pass in the next request to this operation to return the // next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The Resolver objects. Resolvers []*Resolver `locationName:"resolvers" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListResolversOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListResolversOutput) SetNextToken(v string) *ListResolversOutput { s.NextToken = &v return s } // SetResolvers sets the Resolvers field's value. func (s *ListResolversOutput) SetResolvers(v []*Resolver) *ListResolversOutput { s.Resolvers = v return s } type ListSourceApiAssociationsInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListSourceApiAssociationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListSourceApiAssociationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListSourceApiAssociationsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListSourceApiAssociationsInput"} 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.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListSourceApiAssociationsInput) SetApiId(v string) *ListSourceApiAssociationsInput { s.ApiId = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListSourceApiAssociationsInput) SetMaxResults(v int64) *ListSourceApiAssociationsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListSourceApiAssociationsInput) SetNextToken(v string) *ListSourceApiAssociationsInput { s.NextToken = &v return s } type ListSourceApiAssociationsOutput struct { _ struct{} `type:"structure"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The SourceApiAssociationSummary object data. SourceApiAssociationSummaries []*SourceApiAssociationSummary `locationName:"sourceApiAssociationSummaries" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListSourceApiAssociationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListSourceApiAssociationsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListSourceApiAssociationsOutput) SetNextToken(v string) *ListSourceApiAssociationsOutput { s.NextToken = &v return s } // SetSourceApiAssociationSummaries sets the SourceApiAssociationSummaries field's value. func (s *ListSourceApiAssociationsOutput) SetSourceApiAssociationSummaries(v []*SourceApiAssociationSummary) *ListSourceApiAssociationsOutput { s.SourceApiAssociationSummaries = v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure" nopayload:"true"` // The GraphqlApi Amazon Resource Name (ARN). // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"70" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 70 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 70)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // A TagMap object. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { s.Tags = v return s } type ListTypesByAssociationInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID generated by the AppSync service for the source API association. // // AssociationId is a required field AssociationId *string `location:"uri" locationName:"associationId" type:"string" required:"true"` // The format type. // // Format is a required field Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // The identifier of the AppSync Merged API. This is generated by the AppSync // service. In most cases, Merged APIs (especially in your account) only require // the API ID value or ARN of the merged API. However, Merged APIs in other // accounts (cross-account use cases) strictly require the full resource ARN // of the merged API. // // MergedApiIdentifier is a required field MergedApiIdentifier *string `location:"uri" locationName:"mergedApiIdentifier" type:"string" required:"true"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesByAssociationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesByAssociationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTypesByAssociationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTypesByAssociationInput"} if s.AssociationId == nil { invalidParams.Add(request.NewErrParamRequired("AssociationId")) } if s.AssociationId != nil && len(*s.AssociationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.MergedApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("MergedApiIdentifier")) } if s.MergedApiIdentifier != nil && len(*s.MergedApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("MergedApiIdentifier", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssociationId sets the AssociationId field's value. func (s *ListTypesByAssociationInput) SetAssociationId(v string) *ListTypesByAssociationInput { s.AssociationId = &v return s } // SetFormat sets the Format field's value. func (s *ListTypesByAssociationInput) SetFormat(v string) *ListTypesByAssociationInput { s.Format = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTypesByAssociationInput) SetMaxResults(v int64) *ListTypesByAssociationInput { s.MaxResults = &v return s } // SetMergedApiIdentifier sets the MergedApiIdentifier field's value. func (s *ListTypesByAssociationInput) SetMergedApiIdentifier(v string) *ListTypesByAssociationInput { s.MergedApiIdentifier = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTypesByAssociationInput) SetNextToken(v string) *ListTypesByAssociationInput { s.NextToken = &v return s } type ListTypesByAssociationOutput struct { _ struct{} `type:"structure"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The Type objects. Types []*Type `locationName:"types" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesByAssociationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesByAssociationOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTypesByAssociationOutput) SetNextToken(v string) *ListTypesByAssociationOutput { s.NextToken = &v return s } // SetTypes sets the Types field's value. func (s *ListTypesByAssociationOutput) SetTypes(v []*Type) *ListTypesByAssociationOutput { s.Types = v return s } type ListTypesInput struct { _ struct{} `type:"structure" nopayload:"true"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The type format: SDL or JSON. // // Format is a required field Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` // The maximum number of results that you want the request to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` // An identifier that was returned from the previous call to this operation, // which you can use to return the next set of items in the list. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTypesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTypesInput"} 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.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *ListTypesInput) SetApiId(v string) *ListTypesInput { s.ApiId = &v return s } // SetFormat sets the Format field's value. func (s *ListTypesInput) SetFormat(v string) *ListTypesInput { s.Format = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListTypesInput) SetMaxResults(v int64) *ListTypesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListTypesInput) SetNextToken(v string) *ListTypesInput { s.NextToken = &v return s } type ListTypesOutput struct { _ struct{} `type:"structure"` // An identifier to pass in the next request to this operation to return the // next set of items in the list. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The Type objects. Types []*Type `locationName:"types" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTypesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListTypesOutput) SetNextToken(v string) *ListTypesOutput { s.NextToken = &v return s } // SetTypes sets the Types field's value. func (s *ListTypesOutput) SetTypes(v []*Type) *ListTypesOutput { s.Types = v return s } // The Amazon CloudWatch Logs configuration. type LogConfig struct { _ struct{} `type:"structure"` // The service role that AppSync assumes to publish to CloudWatch logs in your // account. // // CloudWatchLogsRoleArn is a required field CloudWatchLogsRoleArn *string `locationName:"cloudWatchLogsRoleArn" type:"string" required:"true"` // Set to TRUE to exclude sections that contain information such as headers, // context, and evaluated mapping templates, regardless of logging level. ExcludeVerboseContent *bool `locationName:"excludeVerboseContent" type:"boolean"` // The field logging level. Values can be NONE, ERROR, or 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. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LogConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". 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 } // SetExcludeVerboseContent sets the ExcludeVerboseContent field's value. func (s *LogConfig) SetExcludeVerboseContent(v bool) *LogConfig { s.ExcludeVerboseContent = &v return s } // SetFieldLogLevel sets the FieldLogLevel field's value. func (s *LogConfig) SetFieldLogLevel(v string) *LogConfig { s.FieldLogLevel = &v return s } // 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 `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s NotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s NotFoundException) GoString() string { return s.String() } func newErrorNotFoundException(v protocol.ResponseMetadata) error { return &NotFoundException{ RespMetadata: v, } } // Code returns the exception type name. func (s *NotFoundException) Code() string { return "NotFoundException" } // Message returns the exception's message. 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 } // Describes an OpenID Connect (OIDC) configuration. type OpenIDConnectConfig struct { _ struct{} `type:"structure"` // The number of milliseconds that a token is valid after being authenticated. AuthTTL *int64 `locationName:"authTTL" type:"long"` // The client identifier of the relying party at the OpenID identity provider. // This identifier is typically obtained when the relying party is registered // with the OpenID identity provider. You can specify a regular expression so // that AppSync can validate against multiple client identifiers at a time. ClientId *string `locationName:"clientId" type:"string"` // The number of milliseconds that a token is valid after it's issued to a user. IatTTL *int64 `locationName:"iatTTL" type:"long"` // The issuer for the OIDC 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. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s OpenIDConnectConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". 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 an OpenSearch data source configuration. type OpenSearchServiceDataSourceConfig struct { _ struct{} `type:"structure"` // The Amazon Web Services Region. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The endpoint. // // Endpoint is a required field Endpoint *string `locationName:"endpoint" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s OpenSearchServiceDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s OpenSearchServiceDataSourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *OpenSearchServiceDataSourceConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OpenSearchServiceDataSourceConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.Endpoint == nil { invalidParams.Add(request.NewErrParamRequired("Endpoint")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAwsRegion sets the AwsRegion field's value. func (s *OpenSearchServiceDataSourceConfig) SetAwsRegion(v string) *OpenSearchServiceDataSourceConfig { s.AwsRegion = &v return s } // SetEndpoint sets the Endpoint field's value. func (s *OpenSearchServiceDataSourceConfig) SetEndpoint(v string) *OpenSearchServiceDataSourceConfig { s.Endpoint = &v return s } // The pipeline configuration for a resolver of kind PIPELINE. type PipelineConfig struct { _ struct{} `type:"structure"` // A list of Function objects. Functions []*string `locationName:"functions" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s PipelineConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s PipelineConfig) GoString() string { return s.String() } // SetFunctions sets the Functions field's value. func (s *PipelineConfig) SetFunctions(v []*string) *PipelineConfig { s.Functions = v return s } // The Amazon Relational Database Service (Amazon RDS) HTTP endpoint configuration. type RdsHttpEndpointConfig struct { _ struct{} `type:"structure"` // Amazon Web Services Region for Amazon RDS HTTP endpoint. AwsRegion *string `locationName:"awsRegion" type:"string"` // Amazon Web Services secret store Amazon Resource Name (ARN) for database // credentials. AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string"` // Logical database name. DatabaseName *string `locationName:"databaseName" type:"string"` // Amazon RDS cluster Amazon Resource Name (ARN). DbClusterIdentifier *string `locationName:"dbClusterIdentifier" type:"string"` // Logical schema name. Schema *string `locationName:"schema" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s RdsHttpEndpointConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s RdsHttpEndpointConfig) GoString() string { return s.String() } // SetAwsRegion sets the AwsRegion field's value. func (s *RdsHttpEndpointConfig) SetAwsRegion(v string) *RdsHttpEndpointConfig { s.AwsRegion = &v return s } // SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value. func (s *RdsHttpEndpointConfig) SetAwsSecretStoreArn(v string) *RdsHttpEndpointConfig { s.AwsSecretStoreArn = &v return s } // SetDatabaseName sets the DatabaseName field's value. func (s *RdsHttpEndpointConfig) SetDatabaseName(v string) *RdsHttpEndpointConfig { s.DatabaseName = &v return s } // SetDbClusterIdentifier sets the DbClusterIdentifier field's value. func (s *RdsHttpEndpointConfig) SetDbClusterIdentifier(v string) *RdsHttpEndpointConfig { s.DbClusterIdentifier = &v return s } // SetSchema sets the Schema field's value. func (s *RdsHttpEndpointConfig) SetSchema(v string) *RdsHttpEndpointConfig { s.Schema = &v return s } // Describes a relational database data source configuration. type RelationalDatabaseDataSourceConfig struct { _ struct{} `type:"structure"` // Amazon RDS HTTP endpoint settings. RdsHttpEndpointConfig *RdsHttpEndpointConfig `locationName:"rdsHttpEndpointConfig" type:"structure"` // Source type for the relational database. // // * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon // Relational Database Service (Amazon RDS) HTTP endpoint. RelationalDatabaseSourceType *string `locationName:"relationalDatabaseSourceType" type:"string" enum:"RelationalDatabaseSourceType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s RelationalDatabaseDataSourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s RelationalDatabaseDataSourceConfig) GoString() string { return s.String() } // SetRdsHttpEndpointConfig sets the RdsHttpEndpointConfig field's value. func (s *RelationalDatabaseDataSourceConfig) SetRdsHttpEndpointConfig(v *RdsHttpEndpointConfig) *RelationalDatabaseDataSourceConfig { s.RdsHttpEndpointConfig = v return s } // SetRelationalDatabaseSourceType sets the RelationalDatabaseSourceType field's value. func (s *RelationalDatabaseDataSourceConfig) SetRelationalDatabaseSourceType(v string) *RelationalDatabaseDataSourceConfig { s.RelationalDatabaseSourceType = &v return s } // Describes a resolver. type Resolver struct { _ struct{} `type:"structure"` // The caching configuration for the resolver. CachingConfig *CachingConfig `locationName:"cachingConfig" type:"structure"` // The resolver code that contains the request and response functions. When // code is used, the runtime is required. The runtime value must be APPSYNC_JS. Code *string `locationName:"code" min:"1" type:"string"` // The resolver data source name. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The resolver field name. FieldName *string `locationName:"fieldName" min:"1" type:"string"` // The resolver type. // // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver // type. You can use a UNIT resolver to run a GraphQL query against a single // data source. // // * PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver // to invoke a series of Function objects in a serial manner. You can use // a pipeline resolver to run a GraphQL query against multiple data sources. Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` // The maximum batching size for a resolver. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` // The PipelineConfig. PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` // The request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The resolver Amazon Resource Name (ARN). ResolverArn *string `locationName:"resolverArn" type:"string"` // The response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a runtime used by an Amazon Web Services AppSync pipeline resolver // or Amazon Web Services AppSync function. Specifies the name and version of // the runtime to use. Note that if a runtime is specified, code must also be // specified. Runtime *AppSyncRuntime `locationName:"runtime" type:"structure"` // The SyncConfig for a resolver attached to a versioned data source. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` // The resolver type name. TypeName *string `locationName:"typeName" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s Resolver) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s Resolver) GoString() string { return s.String() } // SetCachingConfig sets the CachingConfig field's value. func (s *Resolver) SetCachingConfig(v *CachingConfig) *Resolver { s.CachingConfig = v return s } // SetCode sets the Code field's value. func (s *Resolver) SetCode(v string) *Resolver { s.Code = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *Resolver) SetDataSourceName(v string) *Resolver { s.DataSourceName = &v return s } // SetFieldName sets the FieldName field's value. func (s *Resolver) SetFieldName(v string) *Resolver { s.FieldName = &v return s } // SetKind sets the Kind field's value. func (s *Resolver) SetKind(v string) *Resolver { s.Kind = &v return s } // SetMaxBatchSize sets the MaxBatchSize field's value. func (s *Resolver) SetMaxBatchSize(v int64) *Resolver { s.MaxBatchSize = &v return s } // SetPipelineConfig sets the PipelineConfig field's value. func (s *Resolver) SetPipelineConfig(v *PipelineConfig) *Resolver { s.PipelineConfig = v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *Resolver) SetRequestMappingTemplate(v string) *Resolver { s.RequestMappingTemplate = &v return s } // SetResolverArn sets the ResolverArn field's value. func (s *Resolver) SetResolverArn(v string) *Resolver { s.ResolverArn = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *Resolver) SetResponseMappingTemplate(v string) *Resolver { s.ResponseMappingTemplate = &v return s } // SetRuntime sets the Runtime field's value. func (s *Resolver) SetRuntime(v *AppSyncRuntime) *Resolver { s.Runtime = v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *Resolver) SetSyncConfig(v *SyncConfig) *Resolver { s.SyncConfig = v return s } // SetTypeName sets the TypeName field's value. func (s *Resolver) SetTypeName(v string) *Resolver { s.TypeName = &v return s } // Describes the configuration of a source API. A source API is a GraphQL API // that is linked to a merged API. There can be multiple source APIs attached // to each merged API. When linked to a merged API, the source API's schema, // data sources, and resolvers will be combined with other linked source API // data to form a new, singular API. // // Source APIs can originate from your account or from other accounts via Amazon // Web Services Resource Access Manager. For more information about sharing // resources from other accounts, see What is Amazon Web Services Resource Access // Manager? (https://docs.aws.amazon.com/ram/latest/userguide/what-is.html) // in the Amazon Web Services Resource Access Manager guide. type SourceApiAssociation struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the source API association. AssociationArn *string `locationName:"associationArn" type:"string"` // The ID generated by the AppSync service for the source API association. AssociationId *string `locationName:"associationId" type:"string"` // The description field. Description *string `locationName:"description" type:"string"` // The datetime value of the last successful merge of the source API association. // The result will be in UTC format and your local time zone. LastSuccessfulMergeDate *time.Time `locationName:"lastSuccessfulMergeDate" type:"timestamp"` // The Amazon Resource Name (ARN) of the AppSync Merged API. MergedApiArn *string `locationName:"mergedApiArn" type:"string"` // The ID of the AppSync Merged API. MergedApiId *string `locationName:"mergedApiId" type:"string"` // The Amazon Resource Name (ARN) of the AppSync source API. SourceApiArn *string `locationName:"sourceApiArn" type:"string"` // The SourceApiAssociationConfig object data. SourceApiAssociationConfig *SourceApiAssociationConfig `locationName:"sourceApiAssociationConfig" type:"structure"` // The state of the source API association. SourceApiAssociationStatus *string `locationName:"sourceApiAssociationStatus" type:"string" enum:"SourceApiAssociationStatus"` // The detailed message related to the current state of the source API association. SourceApiAssociationStatusDetail *string `locationName:"sourceApiAssociationStatusDetail" type:"string"` // The ID of the AppSync source API. SourceApiId *string `locationName:"sourceApiId" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SourceApiAssociation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SourceApiAssociation) GoString() string { return s.String() } // SetAssociationArn sets the AssociationArn field's value. func (s *SourceApiAssociation) SetAssociationArn(v string) *SourceApiAssociation { s.AssociationArn = &v return s } // SetAssociationId sets the AssociationId field's value. func (s *SourceApiAssociation) SetAssociationId(v string) *SourceApiAssociation { s.AssociationId = &v return s } // SetDescription sets the Description field's value. func (s *SourceApiAssociation) SetDescription(v string) *SourceApiAssociation { s.Description = &v return s } // SetLastSuccessfulMergeDate sets the LastSuccessfulMergeDate field's value. func (s *SourceApiAssociation) SetLastSuccessfulMergeDate(v time.Time) *SourceApiAssociation { s.LastSuccessfulMergeDate = &v return s } // SetMergedApiArn sets the MergedApiArn field's value. func (s *SourceApiAssociation) SetMergedApiArn(v string) *SourceApiAssociation { s.MergedApiArn = &v return s } // SetMergedApiId sets the MergedApiId field's value. func (s *SourceApiAssociation) SetMergedApiId(v string) *SourceApiAssociation { s.MergedApiId = &v return s } // SetSourceApiArn sets the SourceApiArn field's value. func (s *SourceApiAssociation) SetSourceApiArn(v string) *SourceApiAssociation { s.SourceApiArn = &v return s } // SetSourceApiAssociationConfig sets the SourceApiAssociationConfig field's value. func (s *SourceApiAssociation) SetSourceApiAssociationConfig(v *SourceApiAssociationConfig) *SourceApiAssociation { s.SourceApiAssociationConfig = v return s } // SetSourceApiAssociationStatus sets the SourceApiAssociationStatus field's value. func (s *SourceApiAssociation) SetSourceApiAssociationStatus(v string) *SourceApiAssociation { s.SourceApiAssociationStatus = &v return s } // SetSourceApiAssociationStatusDetail sets the SourceApiAssociationStatusDetail field's value. func (s *SourceApiAssociation) SetSourceApiAssociationStatusDetail(v string) *SourceApiAssociation { s.SourceApiAssociationStatusDetail = &v return s } // SetSourceApiId sets the SourceApiId field's value. func (s *SourceApiAssociation) SetSourceApiId(v string) *SourceApiAssociation { s.SourceApiId = &v return s } // Describes properties used to specify configurations related to a source API. type SourceApiAssociationConfig struct { _ struct{} `type:"structure"` // The property that indicates which merging option is enabled in the source // API association. // // Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges // are the default behavior and require the user to trigger any changes from // the source APIs to the merged API manually. Auto merges subscribe the merged // API to the changes performed on the source APIs so that any change in the // source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn // to perform merge operations. MergeType *string `locationName:"mergeType" type:"string" enum:"MergeType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SourceApiAssociationConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SourceApiAssociationConfig) GoString() string { return s.String() } // SetMergeType sets the MergeType field's value. func (s *SourceApiAssociationConfig) SetMergeType(v string) *SourceApiAssociationConfig { s.MergeType = &v return s } // Describes the ARNs and IDs of associations, Merged APIs, and source APIs. type SourceApiAssociationSummary struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the source API association. AssociationArn *string `locationName:"associationArn" type:"string"` // The ID generated by the AppSync service for the source API association. AssociationId *string `locationName:"associationId" type:"string"` // The description field. Description *string `locationName:"description" type:"string"` // The Amazon Resource Name (ARN) of the AppSync Merged API. MergedApiArn *string `locationName:"mergedApiArn" type:"string"` // The ID of the AppSync Merged API. MergedApiId *string `locationName:"mergedApiId" type:"string"` // The Amazon Resource Name (ARN) of the AppSync Source API. SourceApiArn *string `locationName:"sourceApiArn" type:"string"` // The ID of the AppSync source API. SourceApiId *string `locationName:"sourceApiId" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SourceApiAssociationSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SourceApiAssociationSummary) GoString() string { return s.String() } // SetAssociationArn sets the AssociationArn field's value. func (s *SourceApiAssociationSummary) SetAssociationArn(v string) *SourceApiAssociationSummary { s.AssociationArn = &v return s } // SetAssociationId sets the AssociationId field's value. func (s *SourceApiAssociationSummary) SetAssociationId(v string) *SourceApiAssociationSummary { s.AssociationId = &v return s } // SetDescription sets the Description field's value. func (s *SourceApiAssociationSummary) SetDescription(v string) *SourceApiAssociationSummary { s.Description = &v return s } // SetMergedApiArn sets the MergedApiArn field's value. func (s *SourceApiAssociationSummary) SetMergedApiArn(v string) *SourceApiAssociationSummary { s.MergedApiArn = &v return s } // SetMergedApiId sets the MergedApiId field's value. func (s *SourceApiAssociationSummary) SetMergedApiId(v string) *SourceApiAssociationSummary { s.MergedApiId = &v return s } // SetSourceApiArn sets the SourceApiArn field's value. func (s *SourceApiAssociationSummary) SetSourceApiArn(v string) *SourceApiAssociationSummary { s.SourceApiArn = &v return s } // SetSourceApiId sets the SourceApiId field's value. func (s *SourceApiAssociationSummary) SetSourceApiId(v string) *SourceApiAssociationSummary { s.SourceApiId = &v return s } type StartSchemaCreationInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The schema definition, in GraphQL schema language format. // Definition is automatically base64 encoded/decoded by the SDK. // // Definition is a required field Definition []byte `locationName:"definition" type:"blob" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaCreationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaCreationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartSchemaCreationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartSchemaCreationInput"} 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.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *StartSchemaCreationInput) SetApiId(v string) *StartSchemaCreationInput { s.ApiId = &v return s } // SetDefinition sets the Definition field's value. func (s *StartSchemaCreationInput) SetDefinition(v []byte) *StartSchemaCreationInput { s.Definition = v return s } type StartSchemaCreationOutput struct { _ struct{} `type:"structure"` // The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). // When the schema is in the ACTIVE state, you can add data. Status *string `locationName:"status" type:"string" enum:"SchemaStatus"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaCreationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaCreationOutput) GoString() string { return s.String() } // SetStatus sets the Status field's value. func (s *StartSchemaCreationOutput) SetStatus(v string) *StartSchemaCreationOutput { s.Status = &v return s } type StartSchemaMergeInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID generated by the AppSync service for the source API association. // // AssociationId is a required field AssociationId *string `location:"uri" locationName:"associationId" type:"string" required:"true"` // The identifier of the AppSync Merged API. This is generated by the AppSync // service. In most cases, Merged APIs (especially in your account) only require // the API ID value or ARN of the merged API. However, Merged APIs in other // accounts (cross-account use cases) strictly require the full resource ARN // of the merged API. // // MergedApiIdentifier is a required field MergedApiIdentifier *string `location:"uri" locationName:"mergedApiIdentifier" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaMergeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaMergeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartSchemaMergeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartSchemaMergeInput"} if s.AssociationId == nil { invalidParams.Add(request.NewErrParamRequired("AssociationId")) } if s.AssociationId != nil && len(*s.AssociationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.MergedApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("MergedApiIdentifier")) } if s.MergedApiIdentifier != nil && len(*s.MergedApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("MergedApiIdentifier", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssociationId sets the AssociationId field's value. func (s *StartSchemaMergeInput) SetAssociationId(v string) *StartSchemaMergeInput { s.AssociationId = &v return s } // SetMergedApiIdentifier sets the MergedApiIdentifier field's value. func (s *StartSchemaMergeInput) SetMergedApiIdentifier(v string) *StartSchemaMergeInput { s.MergedApiIdentifier = &v return s } type StartSchemaMergeOutput struct { _ struct{} `type:"structure"` // The state of the source API association. SourceApiAssociationStatus *string `locationName:"sourceApiAssociationStatus" type:"string" enum:"SourceApiAssociationStatus"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaMergeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSchemaMergeOutput) GoString() string { return s.String() } // SetSourceApiAssociationStatus sets the SourceApiAssociationStatus field's value. func (s *StartSchemaMergeOutput) SetSourceApiAssociationStatus(v string) *StartSchemaMergeOutput { s.SourceApiAssociationStatus = &v return s } // Describes a Sync configuration for a resolver. // // Specifies which Conflict Detection strategy and Resolution strategy to use // when the resolver is invoked. type SyncConfig struct { _ struct{} `type:"structure"` // The Conflict Detection strategy to use. // // * VERSION: Detect conflicts based on object versions for this resolver. // // * NONE: Do not detect conflicts when invoking this resolver. ConflictDetection *string `locationName:"conflictDetection" type:"string" enum:"ConflictDetectionType"` // The Conflict Resolution strategy to perform in the event of a conflict. // // * OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when // versions don't match the latest version at the server. // // * AUTOMERGE: Resolve conflicts with the Automerge conflict resolution // strategy. // // * LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig. ConflictHandler *string `locationName:"conflictHandler" type:"string" enum:"ConflictHandlerType"` // The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler. LambdaConflictHandlerConfig *LambdaConflictHandlerConfig `locationName:"lambdaConflictHandlerConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SyncConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SyncConfig) GoString() string { return s.String() } // SetConflictDetection sets the ConflictDetection field's value. func (s *SyncConfig) SetConflictDetection(v string) *SyncConfig { s.ConflictDetection = &v return s } // SetConflictHandler sets the ConflictHandler field's value. func (s *SyncConfig) SetConflictHandler(v string) *SyncConfig { s.ConflictHandler = &v return s } // SetLambdaConflictHandlerConfig sets the LambdaConflictHandlerConfig field's value. func (s *SyncConfig) SetLambdaConflictHandlerConfig(v *LambdaConflictHandlerConfig) *SyncConfig { s.LambdaConflictHandlerConfig = v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The GraphqlApi Amazon Resource Name (ARN). // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"70" type:"string" required:"true"` // A TagMap object. // // Tags is a required field Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 70 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 70)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceOutput) GoString() string { return s.String() } // Describes a type. type Type struct { _ struct{} `type:"structure"` // The type Amazon Resource Name (ARN). Arn *string `locationName:"arn" type:"string"` // The type definition. Definition *string `locationName:"definition" type:"string"` // The type description. Description *string `locationName:"description" type:"string"` // The type format: SDL or JSON. Format *string `locationName:"format" type:"string" enum:"TypeDefinitionFormat"` // The type name. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s Type) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s Type) GoString() string { return s.String() } // SetArn sets the Arn field's value. func (s *Type) SetArn(v string) *Type { s.Arn = &v return s } // SetDefinition sets the Definition field's value. func (s *Type) SetDefinition(v string) *Type { s.Definition = &v return s } // SetDescription sets the Description field's value. func (s *Type) SetDescription(v string) *Type { s.Description = &v return s } // SetFormat sets the Format field's value. func (s *Type) SetFormat(v string) *Type { s.Format = &v return s } // SetName sets the Name field's value. func (s *Type) SetName(v string) *Type { s.Name = &v return s } // You aren't authorized to perform this operation. type UnauthorizedException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UnauthorizedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UnauthorizedException) GoString() string { return s.String() } func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { return &UnauthorizedException{ RespMetadata: v, } } // Code returns the exception type name. func (s *UnauthorizedException) Code() string { return "UnauthorizedException" } // Message returns the exception's message. func (s *UnauthorizedException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *UnauthorizedException) OrigErr() error { return nil } 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 } // RequestID returns the service's response RequestID for request. func (s *UnauthorizedException) RequestID() string { return s.RespMetadata.RequestID } type UntagResourceInput struct { _ struct{} `type:"structure" nopayload:"true"` // The GraphqlApi Amazon Resource Name (ARN). // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" min:"70" type:"string" required:"true"` // A list of TagKey objects. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 70 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 70)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if s.TagKeys != nil && len(s.TagKeys) < 1 { invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceOutput) GoString() string { return s.String() } // Represents the input of a UpdateApiCache operation. type UpdateApiCacheInput struct { _ struct{} `type:"structure"` // Caching behavior. // // * FULL_REQUEST_CACHING: All requests are fully cached. // // * PER_RESOLVER_CACHING: Individual resolvers that you specify are cached. // // ApiCachingBehavior is a required field ApiCachingBehavior *string `locationName:"apiCachingBehavior" type:"string" required:"true" enum:"ApiCachingBehavior"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // TTL in seconds for cache entries. // // Valid values are 1–3,600 seconds. // // Ttl is a required field Ttl *int64 `locationName:"ttl" type:"long" required:"true"` // The cache instance type. Valid values are // // * SMALL // // * MEDIUM // // * LARGE // // * XLARGE // // * LARGE_2X // // * LARGE_4X // // * LARGE_8X (not available in all regions) // // * LARGE_12X // // Historically, instance types were identified by an EC2-style value. As of // July 2020, this is deprecated, and the generic identifiers above should be // used. // // The following legacy instance types are available, but their use is discouraged: // // * T2_SMALL: A t2.small instance type. // // * T2_MEDIUM: A t2.medium instance type. // // * R4_LARGE: A r4.large instance type. // // * R4_XLARGE: A r4.xlarge instance type. // // * R4_2XLARGE: A r4.2xlarge instance type. // // * R4_4XLARGE: A r4.4xlarge instance type. // // * R4_8XLARGE: A r4.8xlarge instance type. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ApiCacheType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiCacheInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiCacheInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateApiCacheInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateApiCacheInput"} if s.ApiCachingBehavior == nil { invalidParams.Add(request.NewErrParamRequired("ApiCachingBehavior")) } 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.Ttl == nil { invalidParams.Add(request.NewErrParamRequired("Ttl")) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiCachingBehavior sets the ApiCachingBehavior field's value. func (s *UpdateApiCacheInput) SetApiCachingBehavior(v string) *UpdateApiCacheInput { s.ApiCachingBehavior = &v return s } // SetApiId sets the ApiId field's value. func (s *UpdateApiCacheInput) SetApiId(v string) *UpdateApiCacheInput { s.ApiId = &v return s } // SetTtl sets the Ttl field's value. func (s *UpdateApiCacheInput) SetTtl(v int64) *UpdateApiCacheInput { s.Ttl = &v return s } // SetType sets the Type field's value. func (s *UpdateApiCacheInput) SetType(v string) *UpdateApiCacheInput { s.Type = &v return s } // Represents the output of a UpdateApiCache operation. type UpdateApiCacheOutput struct { _ struct{} `type:"structure"` // The ApiCache object. ApiCache *ApiCache `locationName:"apiCache" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiCacheOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiCacheOutput) GoString() string { return s.String() } // SetApiCache sets the ApiCache field's value. func (s *UpdateApiCacheOutput) SetApiCache(v *ApiCache) *UpdateApiCacheOutput { s.ApiCache = v return s } type UpdateApiKeyInput struct { _ struct{} `type:"structure"` // The ID for the GraphQL API. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // A description of the purpose of the API key. Description *string `locationName:"description" type:"string"` // From the update time, the 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. // // Id is a required field Id *string `location:"uri" locationName:"id" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiKeyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiKeyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateApiKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateApiKeyInput"} 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.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } if s.Id != nil && len(*s.Id) < 1 { invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateApiKeyInput) SetApiId(v string) *UpdateApiKeyInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *UpdateApiKeyInput) SetDescription(v string) *UpdateApiKeyInput { s.Description = &v return s } // SetExpires sets the Expires field's value. func (s *UpdateApiKeyInput) SetExpires(v int64) *UpdateApiKeyInput { s.Expires = &v return s } // SetId sets the Id field's value. func (s *UpdateApiKeyInput) SetId(v string) *UpdateApiKeyInput { s.Id = &v return s } type UpdateApiKeyOutput struct { _ struct{} `type:"structure"` // The API key. ApiKey *ApiKey `locationName:"apiKey" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiKeyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateApiKeyOutput) GoString() string { return s.String() } // SetApiKey sets the ApiKey field's value. func (s *UpdateApiKeyOutput) SetApiKey(v *ApiKey) *UpdateApiKeyOutput { s.ApiKey = v return s } type UpdateDataSourceInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The new description for the data source. Description *string `locationName:"description" type:"string"` // The new Amazon DynamoDB configuration. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` // The new OpenSearch configuration. // // As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. // This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig // to update an OpenSearch data source. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` // The new Amazon EventBridge settings. EventBridgeConfig *EventBridgeDataSourceConfig `locationName:"eventBridgeConfig" type:"structure"` // The new HTTP endpoint configuration. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` // The new Lambda configuration. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // The new name for the data source. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` // The new OpenSearch configuration. OpenSearchServiceConfig *OpenSearchServiceDataSourceConfig `locationName:"openSearchServiceConfig" type:"structure"` // The new relational database configuration. RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` // The new service role Amazon Resource Name (ARN) for the data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The new data source type. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"DataSourceType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDataSourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDataSourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDataSourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourceInput"} 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.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } if s.DynamodbConfig != nil { if err := s.DynamodbConfig.Validate(); err != nil { invalidParams.AddNested("DynamodbConfig", err.(request.ErrInvalidParams)) } } if s.ElasticsearchConfig != nil { if err := s.ElasticsearchConfig.Validate(); err != nil { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } if s.EventBridgeConfig != nil { if err := s.EventBridgeConfig.Validate(); err != nil { invalidParams.AddNested("EventBridgeConfig", err.(request.ErrInvalidParams)) } } if s.HttpConfig != nil { if err := s.HttpConfig.Validate(); err != nil { invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) } } if s.LambdaConfig != nil { if err := s.LambdaConfig.Validate(); err != nil { invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) } } if s.OpenSearchServiceConfig != nil { if err := s.OpenSearchServiceConfig.Validate(); err != nil { invalidParams.AddNested("OpenSearchServiceConfig", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateDataSourceInput) SetApiId(v string) *UpdateDataSourceInput { s.ApiId = &v return s } // SetDescription sets the Description field's value. func (s *UpdateDataSourceInput) SetDescription(v string) *UpdateDataSourceInput { s.Description = &v return s } // SetDynamodbConfig sets the DynamodbConfig field's value. func (s *UpdateDataSourceInput) SetDynamodbConfig(v *DynamodbDataSourceConfig) *UpdateDataSourceInput { s.DynamodbConfig = v return s } // SetElasticsearchConfig sets the ElasticsearchConfig field's value. func (s *UpdateDataSourceInput) SetElasticsearchConfig(v *ElasticsearchDataSourceConfig) *UpdateDataSourceInput { s.ElasticsearchConfig = v return s } // SetEventBridgeConfig sets the EventBridgeConfig field's value. func (s *UpdateDataSourceInput) SetEventBridgeConfig(v *EventBridgeDataSourceConfig) *UpdateDataSourceInput { s.EventBridgeConfig = v return s } // SetHttpConfig sets the HttpConfig field's value. func (s *UpdateDataSourceInput) SetHttpConfig(v *HttpDataSourceConfig) *UpdateDataSourceInput { s.HttpConfig = v return s } // SetLambdaConfig sets the LambdaConfig field's value. func (s *UpdateDataSourceInput) SetLambdaConfig(v *LambdaDataSourceConfig) *UpdateDataSourceInput { s.LambdaConfig = v return s } // SetName sets the Name field's value. func (s *UpdateDataSourceInput) SetName(v string) *UpdateDataSourceInput { s.Name = &v return s } // SetOpenSearchServiceConfig sets the OpenSearchServiceConfig field's value. func (s *UpdateDataSourceInput) SetOpenSearchServiceConfig(v *OpenSearchServiceDataSourceConfig) *UpdateDataSourceInput { s.OpenSearchServiceConfig = v return s } // SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. func (s *UpdateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *UpdateDataSourceInput { s.RelationalDatabaseConfig = v return s } // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *UpdateDataSourceInput) SetServiceRoleArn(v string) *UpdateDataSourceInput { s.ServiceRoleArn = &v return s } // SetType sets the Type field's value. func (s *UpdateDataSourceInput) SetType(v string) *UpdateDataSourceInput { s.Type = &v return s } type UpdateDataSourceOutput struct { _ struct{} `type:"structure"` // The updated DataSource object. DataSource *DataSource `locationName:"dataSource" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDataSourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDataSourceOutput) GoString() string { return s.String() } // SetDataSource sets the DataSource field's value. func (s *UpdateDataSourceOutput) SetDataSource(v *DataSource) *UpdateDataSourceOutput { s.DataSource = v return s } type UpdateDomainNameInput struct { _ struct{} `type:"structure"` // A description of the DomainName. Description *string `locationName:"description" type:"string"` // The domain name. // // DomainName is a required field DomainName *string `location:"uri" locationName:"domainName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDomainNameInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDomainNameInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateDomainNameInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateDomainNameInput"} if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDescription sets the Description field's value. func (s *UpdateDomainNameInput) SetDescription(v string) *UpdateDomainNameInput { s.Description = &v return s } // SetDomainName sets the DomainName field's value. func (s *UpdateDomainNameInput) SetDomainName(v string) *UpdateDomainNameInput { s.DomainName = &v return s } type UpdateDomainNameOutput struct { _ struct{} `type:"structure"` // The configuration for the DomainName. DomainNameConfig *DomainNameConfig `locationName:"domainNameConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDomainNameOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateDomainNameOutput) GoString() string { return s.String() } // SetDomainNameConfig sets the DomainNameConfig field's value. func (s *UpdateDomainNameOutput) SetDomainNameConfig(v *DomainNameConfig) *UpdateDomainNameOutput { s.DomainNameConfig = v return s } type UpdateFunctionInput struct { _ struct{} `type:"structure"` // The GraphQL API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The function code that contains the request and response functions. When // code is used, the runtime is required. The runtime value must be APPSYNC_JS. Code *string `locationName:"code" min:"1" type:"string"` // The Function DataSource name. // // DataSourceName is a required field DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string" required:"true"` // The Function description. Description *string `locationName:"description" type:"string"` // The function ID. // // FunctionId is a required field FunctionId *string `location:"uri" locationName:"functionId" min:"1" type:"string" required:"true"` // The version of the request mapping template. Currently, the supported value // is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion // is required. FunctionVersion *string `locationName:"functionVersion" type:"string"` // The maximum batching size for a resolver. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` // The Function name. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Function request mapping template. Functions support only the 2018-05-29 // version of the request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The Function request mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a runtime used by an Amazon Web Services AppSync pipeline resolver // or Amazon Web Services AppSync function. Specifies the name and version of // the runtime to use. Note that if a runtime is specified, code must also be // specified. Runtime *AppSyncRuntime `locationName:"runtime" type:"structure"` // Describes a Sync configuration for a resolver. // // Specifies which Conflict Detection strategy and Resolution strategy to use // when the resolver is invoked. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateFunctionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionInput"} 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.Code != nil && len(*s.Code) < 1 { invalidParams.Add(request.NewErrParamMinLen("Code", 1)) } if s.DataSourceName == nil { invalidParams.Add(request.NewErrParamRequired("DataSourceName")) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 1)) } if s.FunctionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionId")) } if s.FunctionId != nil && len(*s.FunctionId) < 1 { invalidParams.Add(request.NewErrParamMinLen("FunctionId", 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.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.Runtime != nil { if err := s.Runtime.Validate(); err != nil { invalidParams.AddNested("Runtime", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateFunctionInput) SetApiId(v string) *UpdateFunctionInput { s.ApiId = &v return s } // SetCode sets the Code field's value. func (s *UpdateFunctionInput) SetCode(v string) *UpdateFunctionInput { s.Code = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *UpdateFunctionInput) SetDataSourceName(v string) *UpdateFunctionInput { s.DataSourceName = &v return s } // SetDescription sets the Description field's value. func (s *UpdateFunctionInput) SetDescription(v string) *UpdateFunctionInput { s.Description = &v return s } // SetFunctionId sets the FunctionId field's value. func (s *UpdateFunctionInput) SetFunctionId(v string) *UpdateFunctionInput { s.FunctionId = &v return s } // SetFunctionVersion sets the FunctionVersion field's value. func (s *UpdateFunctionInput) SetFunctionVersion(v string) *UpdateFunctionInput { s.FunctionVersion = &v return s } // SetMaxBatchSize sets the MaxBatchSize field's value. func (s *UpdateFunctionInput) SetMaxBatchSize(v int64) *UpdateFunctionInput { s.MaxBatchSize = &v return s } // SetName sets the Name field's value. func (s *UpdateFunctionInput) SetName(v string) *UpdateFunctionInput { s.Name = &v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *UpdateFunctionInput) SetRequestMappingTemplate(v string) *UpdateFunctionInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *UpdateFunctionInput) SetResponseMappingTemplate(v string) *UpdateFunctionInput { s.ResponseMappingTemplate = &v return s } // SetRuntime sets the Runtime field's value. func (s *UpdateFunctionInput) SetRuntime(v *AppSyncRuntime) *UpdateFunctionInput { s.Runtime = v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *UpdateFunctionInput) SetSyncConfig(v *SyncConfig) *UpdateFunctionInput { s.SyncConfig = v return s } type UpdateFunctionOutput struct { _ struct{} `type:"structure"` // The Function object. FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateFunctionOutput) GoString() string { return s.String() } // SetFunctionConfiguration sets the FunctionConfiguration field's value. func (s *UpdateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *UpdateFunctionOutput { s.FunctionConfiguration = v return s } type UpdateGraphqlApiInput struct { _ struct{} `type:"structure"` // A list of additional authentication providers for the GraphqlApi API. AdditionalAuthenticationProviders []*AdditionalAuthenticationProvider `locationName:"additionalAuthenticationProviders" type:"list"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The new authentication type for the GraphqlApi object. AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"` // Configuration for Lambda function authorization. LambdaAuthorizerConfig *LambdaAuthorizerConfig `locationName:"lambdaAuthorizerConfig" type:"structure"` // The Amazon CloudWatch Logs configuration for the GraphqlApi object. LogConfig *LogConfig `locationName:"logConfig" type:"structure"` // The Identity and Access Management service role ARN for a merged API. The // AppSync service assumes this role on behalf of the Merged API to validate // access to source APIs at runtime and to prompt the AUTO_MERGE to update the // merged API endpoint with the source API changes automatically. MergedApiExecutionRoleArn *string `locationName:"mergedApiExecutionRoleArn" type:"string"` // The new name for the GraphqlApi object. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // The OpenID Connect configuration for the GraphqlApi object. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The owner contact information for an API resource. // // This field accepts any string input with a length of 0 - 256 characters. OwnerContact *string `locationName:"ownerContact" type:"string"` // The new Amazon Cognito user pool configuration for the ~GraphqlApi object. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` // A flag indicating whether to use X-Ray tracing for the GraphqlApi. XrayEnabled *bool `locationName:"xrayEnabled" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateGraphqlApiInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateGraphqlApiInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateGraphqlApiInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateGraphqlApiInput"} 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.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.AdditionalAuthenticationProviders != nil { for i, v := range s.AdditionalAuthenticationProviders { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AdditionalAuthenticationProviders", i), err.(request.ErrInvalidParams)) } } } if s.LambdaAuthorizerConfig != nil { if err := s.LambdaAuthorizerConfig.Validate(); err != nil { invalidParams.AddNested("LambdaAuthorizerConfig", err.(request.ErrInvalidParams)) } } 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)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAdditionalAuthenticationProviders sets the AdditionalAuthenticationProviders field's value. func (s *UpdateGraphqlApiInput) SetAdditionalAuthenticationProviders(v []*AdditionalAuthenticationProvider) *UpdateGraphqlApiInput { s.AdditionalAuthenticationProviders = v return s } // SetApiId sets the ApiId field's value. func (s *UpdateGraphqlApiInput) SetApiId(v string) *UpdateGraphqlApiInput { s.ApiId = &v return s } // SetAuthenticationType sets the AuthenticationType field's value. func (s *UpdateGraphqlApiInput) SetAuthenticationType(v string) *UpdateGraphqlApiInput { s.AuthenticationType = &v return s } // SetLambdaAuthorizerConfig sets the LambdaAuthorizerConfig field's value. func (s *UpdateGraphqlApiInput) SetLambdaAuthorizerConfig(v *LambdaAuthorizerConfig) *UpdateGraphqlApiInput { s.LambdaAuthorizerConfig = v return s } // SetLogConfig sets the LogConfig field's value. func (s *UpdateGraphqlApiInput) SetLogConfig(v *LogConfig) *UpdateGraphqlApiInput { s.LogConfig = v return s } // SetMergedApiExecutionRoleArn sets the MergedApiExecutionRoleArn field's value. func (s *UpdateGraphqlApiInput) SetMergedApiExecutionRoleArn(v string) *UpdateGraphqlApiInput { s.MergedApiExecutionRoleArn = &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 } // SetOwnerContact sets the OwnerContact field's value. func (s *UpdateGraphqlApiInput) SetOwnerContact(v string) *UpdateGraphqlApiInput { s.OwnerContact = &v return s } // SetUserPoolConfig sets the UserPoolConfig field's value. func (s *UpdateGraphqlApiInput) SetUserPoolConfig(v *UserPoolConfig) *UpdateGraphqlApiInput { s.UserPoolConfig = v return s } // SetXrayEnabled sets the XrayEnabled field's value. func (s *UpdateGraphqlApiInput) SetXrayEnabled(v bool) *UpdateGraphqlApiInput { s.XrayEnabled = &v return s } type UpdateGraphqlApiOutput struct { _ struct{} `type:"structure"` // The updated GraphqlApi object. GraphqlApi *GraphqlApi `locationName:"graphqlApi" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateGraphqlApiOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateGraphqlApiOutput) GoString() string { return s.String() } // SetGraphqlApi sets the GraphqlApi field's value. func (s *UpdateGraphqlApiOutput) SetGraphqlApi(v *GraphqlApi) *UpdateGraphqlApiOutput { s.GraphqlApi = v return s } type UpdateResolverInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The caching configuration for the resolver. CachingConfig *CachingConfig `locationName:"cachingConfig" type:"structure"` // The resolver code that contains the request and response functions. When // code is used, the runtime is required. The runtime value must be APPSYNC_JS. Code *string `locationName:"code" min:"1" type:"string"` // The new data source name. DataSourceName *string `locationName:"dataSourceName" min:"1" type:"string"` // The new field name. // // FieldName is a required field FieldName *string `location:"uri" locationName:"fieldName" min:"1" type:"string" required:"true"` // The resolver type. // // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver // type. You can use a UNIT resolver to run a GraphQL query against a single // data source. // // * PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver // to invoke a series of Function objects in a serial manner. You can use // a pipeline resolver to run a GraphQL query against multiple data sources. Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` // The maximum batching size for a resolver. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"` // The PipelineConfig. PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` // The new request mapping template. // // A resolver uses a request mapping template to convert a GraphQL expression // into a format that a data source can understand. Mapping templates are written // in Apache Velocity Template Language (VTL). // // VTL request mapping templates are optional when using an Lambda data source. // For all other data sources, VTL request and response mapping templates are // required. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` // The new response mapping template. ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` // Describes a runtime used by an Amazon Web Services AppSync pipeline resolver // or Amazon Web Services AppSync function. Specifies the name and version of // the runtime to use. Note that if a runtime is specified, code must also be // specified. Runtime *AppSyncRuntime `locationName:"runtime" type:"structure"` // The SyncConfig for a resolver attached to a versioned data source. SyncConfig *SyncConfig `locationName:"syncConfig" type:"structure"` // The new type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateResolverInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateResolverInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateResolverInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateResolverInput"} 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.Code != nil && len(*s.Code) < 1 { invalidParams.Add(request.NewErrParamMinLen("Code", 1)) } if s.DataSourceName != nil && len(*s.DataSourceName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DataSourceName", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } if s.FieldName != nil && len(*s.FieldName) < 1 { invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) } 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")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if s.CachingConfig != nil { if err := s.CachingConfig.Validate(); err != nil { invalidParams.AddNested("CachingConfig", err.(request.ErrInvalidParams)) } } if s.Runtime != nil { if err := s.Runtime.Validate(); err != nil { invalidParams.AddNested("Runtime", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateResolverInput) SetApiId(v string) *UpdateResolverInput { s.ApiId = &v return s } // SetCachingConfig sets the CachingConfig field's value. func (s *UpdateResolverInput) SetCachingConfig(v *CachingConfig) *UpdateResolverInput { s.CachingConfig = v return s } // SetCode sets the Code field's value. func (s *UpdateResolverInput) SetCode(v string) *UpdateResolverInput { s.Code = &v return s } // SetDataSourceName sets the DataSourceName field's value. func (s *UpdateResolverInput) SetDataSourceName(v string) *UpdateResolverInput { s.DataSourceName = &v return s } // SetFieldName sets the FieldName field's value. func (s *UpdateResolverInput) SetFieldName(v string) *UpdateResolverInput { s.FieldName = &v return s } // SetKind sets the Kind field's value. func (s *UpdateResolverInput) SetKind(v string) *UpdateResolverInput { s.Kind = &v return s } // SetMaxBatchSize sets the MaxBatchSize field's value. func (s *UpdateResolverInput) SetMaxBatchSize(v int64) *UpdateResolverInput { s.MaxBatchSize = &v return s } // SetPipelineConfig sets the PipelineConfig field's value. func (s *UpdateResolverInput) SetPipelineConfig(v *PipelineConfig) *UpdateResolverInput { s.PipelineConfig = v return s } // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *UpdateResolverInput) SetRequestMappingTemplate(v string) *UpdateResolverInput { s.RequestMappingTemplate = &v return s } // SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. func (s *UpdateResolverInput) SetResponseMappingTemplate(v string) *UpdateResolverInput { s.ResponseMappingTemplate = &v return s } // SetRuntime sets the Runtime field's value. func (s *UpdateResolverInput) SetRuntime(v *AppSyncRuntime) *UpdateResolverInput { s.Runtime = v return s } // SetSyncConfig sets the SyncConfig field's value. func (s *UpdateResolverInput) SetSyncConfig(v *SyncConfig) *UpdateResolverInput { s.SyncConfig = v return s } // SetTypeName sets the TypeName field's value. func (s *UpdateResolverInput) SetTypeName(v string) *UpdateResolverInput { s.TypeName = &v return s } type UpdateResolverOutput struct { _ struct{} `type:"structure"` // The updated Resolver object. Resolver *Resolver `locationName:"resolver" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateResolverOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateResolverOutput) GoString() string { return s.String() } // SetResolver sets the Resolver field's value. func (s *UpdateResolverOutput) SetResolver(v *Resolver) *UpdateResolverOutput { s.Resolver = v return s } type UpdateSourceApiAssociationInput struct { _ struct{} `type:"structure"` // The ID generated by the AppSync service for the source API association. // // AssociationId is a required field AssociationId *string `location:"uri" locationName:"associationId" type:"string" required:"true"` // The description field. Description *string `locationName:"description" type:"string"` // The identifier of the AppSync Merged API. This is generated by the AppSync // service. In most cases, Merged APIs (especially in your account) only require // the API ID value or ARN of the merged API. However, Merged APIs in other // accounts (cross-account use cases) strictly require the full resource ARN // of the merged API. // // MergedApiIdentifier is a required field MergedApiIdentifier *string `location:"uri" locationName:"mergedApiIdentifier" type:"string" required:"true"` // The SourceApiAssociationConfig object data. SourceApiAssociationConfig *SourceApiAssociationConfig `locationName:"sourceApiAssociationConfig" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateSourceApiAssociationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateSourceApiAssociationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateSourceApiAssociationInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateSourceApiAssociationInput"} if s.AssociationId == nil { invalidParams.Add(request.NewErrParamRequired("AssociationId")) } if s.AssociationId != nil && len(*s.AssociationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.MergedApiIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("MergedApiIdentifier")) } if s.MergedApiIdentifier != nil && len(*s.MergedApiIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("MergedApiIdentifier", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAssociationId sets the AssociationId field's value. func (s *UpdateSourceApiAssociationInput) SetAssociationId(v string) *UpdateSourceApiAssociationInput { s.AssociationId = &v return s } // SetDescription sets the Description field's value. func (s *UpdateSourceApiAssociationInput) SetDescription(v string) *UpdateSourceApiAssociationInput { s.Description = &v return s } // SetMergedApiIdentifier sets the MergedApiIdentifier field's value. func (s *UpdateSourceApiAssociationInput) SetMergedApiIdentifier(v string) *UpdateSourceApiAssociationInput { s.MergedApiIdentifier = &v return s } // SetSourceApiAssociationConfig sets the SourceApiAssociationConfig field's value. func (s *UpdateSourceApiAssociationInput) SetSourceApiAssociationConfig(v *SourceApiAssociationConfig) *UpdateSourceApiAssociationInput { s.SourceApiAssociationConfig = v return s } type UpdateSourceApiAssociationOutput struct { _ struct{} `type:"structure"` // The SourceApiAssociation object data. SourceApiAssociation *SourceApiAssociation `locationName:"sourceApiAssociation" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateSourceApiAssociationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateSourceApiAssociationOutput) GoString() string { return s.String() } // SetSourceApiAssociation sets the SourceApiAssociation field's value. func (s *UpdateSourceApiAssociationOutput) SetSourceApiAssociation(v *SourceApiAssociation) *UpdateSourceApiAssociationOutput { s.SourceApiAssociation = v return s } type UpdateTypeInput struct { _ struct{} `type:"structure"` // The API ID. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The new definition. Definition *string `locationName:"definition" type:"string"` // The new type format: SDL or JSON. // // Format is a required field Format *string `locationName:"format" type:"string" required:"true" enum:"TypeDefinitionFormat"` // The new type name. // // TypeName is a required field TypeName *string `location:"uri" locationName:"typeName" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateTypeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateTypeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateTypeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateTypeInput"} 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.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } if s.TypeName == nil { invalidParams.Add(request.NewErrParamRequired("TypeName")) } if s.TypeName != nil && len(*s.TypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TypeName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetApiId sets the ApiId field's value. func (s *UpdateTypeInput) SetApiId(v string) *UpdateTypeInput { s.ApiId = &v return s } // SetDefinition sets the Definition field's value. func (s *UpdateTypeInput) SetDefinition(v string) *UpdateTypeInput { s.Definition = &v return s } // SetFormat sets the Format field's value. func (s *UpdateTypeInput) SetFormat(v string) *UpdateTypeInput { s.Format = &v return s } // SetTypeName sets the TypeName field's value. func (s *UpdateTypeInput) SetTypeName(v string) *UpdateTypeInput { s.TypeName = &v return s } type UpdateTypeOutput struct { _ struct{} `type:"structure"` // The updated Type object. Type *Type `locationName:"type" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateTypeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateTypeOutput) GoString() string { return s.String() } // SetType sets the Type field's value. func (s *UpdateTypeOutput) SetType(v *Type) *UpdateTypeOutput { s.Type = v return s } // Describes an Amazon Cognito user pool configuration. type UserPoolConfig struct { _ struct{} `type:"structure"` // A regular expression for validating the incoming Amazon Cognito user pool // app client ID. If this value isn't set, no filtering is applied. AppIdClientRegex *string `locationName:"appIdClientRegex" type:"string"` // The Amazon Web Services Region in which the user pool was created. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The action that you want your GraphQL API to take when a request that uses // Amazon Cognito user pool authentication doesn't match the Amazon Cognito // user pool configuration. // // DefaultAction is a required field DefaultAction *string `locationName:"defaultAction" type:"string" required:"true" enum:"DefaultAction"` // The user pool ID. // // UserPoolId is a required field UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UserPoolConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UserPoolConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UserPoolConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UserPoolConfig"} if s.AwsRegion == nil { invalidParams.Add(request.NewErrParamRequired("AwsRegion")) } if s.DefaultAction == nil { invalidParams.Add(request.NewErrParamRequired("DefaultAction")) } if s.UserPoolId == nil { invalidParams.Add(request.NewErrParamRequired("UserPoolId")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetAppIdClientRegex sets the AppIdClientRegex field's value. func (s *UserPoolConfig) SetAppIdClientRegex(v string) *UserPoolConfig { s.AppIdClientRegex = &v return s } // SetAwsRegion sets the AwsRegion field's value. func (s *UserPoolConfig) SetAwsRegion(v string) *UserPoolConfig { s.AwsRegion = &v return s } // SetDefaultAction sets the DefaultAction field's value. func (s *UserPoolConfig) SetDefaultAction(v string) *UserPoolConfig { s.DefaultAction = &v return s } // SetUserPoolId sets the UserPoolId field's value. func (s *UserPoolConfig) SetUserPoolId(v string) *UserPoolConfig { s.UserPoolId = &v return s } const ( // ApiCacheStatusAvailable is a ApiCacheStatus enum value ApiCacheStatusAvailable = "AVAILABLE" // ApiCacheStatusCreating is a ApiCacheStatus enum value ApiCacheStatusCreating = "CREATING" // ApiCacheStatusDeleting is a ApiCacheStatus enum value ApiCacheStatusDeleting = "DELETING" // ApiCacheStatusModifying is a ApiCacheStatus enum value ApiCacheStatusModifying = "MODIFYING" // ApiCacheStatusFailed is a ApiCacheStatus enum value ApiCacheStatusFailed = "FAILED" ) // ApiCacheStatus_Values returns all elements of the ApiCacheStatus enum func ApiCacheStatus_Values() []string { return []string{ ApiCacheStatusAvailable, ApiCacheStatusCreating, ApiCacheStatusDeleting, ApiCacheStatusModifying, ApiCacheStatusFailed, } } const ( // ApiCacheTypeT2Small is a ApiCacheType enum value ApiCacheTypeT2Small = "T2_SMALL" // ApiCacheTypeT2Medium is a ApiCacheType enum value ApiCacheTypeT2Medium = "T2_MEDIUM" // ApiCacheTypeR4Large is a ApiCacheType enum value ApiCacheTypeR4Large = "R4_LARGE" // ApiCacheTypeR4Xlarge is a ApiCacheType enum value ApiCacheTypeR4Xlarge = "R4_XLARGE" // ApiCacheTypeR42xlarge is a ApiCacheType enum value ApiCacheTypeR42xlarge = "R4_2XLARGE" // ApiCacheTypeR44xlarge is a ApiCacheType enum value ApiCacheTypeR44xlarge = "R4_4XLARGE" // ApiCacheTypeR48xlarge is a ApiCacheType enum value ApiCacheTypeR48xlarge = "R4_8XLARGE" // ApiCacheTypeSmall is a ApiCacheType enum value ApiCacheTypeSmall = "SMALL" // ApiCacheTypeMedium is a ApiCacheType enum value ApiCacheTypeMedium = "MEDIUM" // ApiCacheTypeLarge is a ApiCacheType enum value ApiCacheTypeLarge = "LARGE" // ApiCacheTypeXlarge is a ApiCacheType enum value ApiCacheTypeXlarge = "XLARGE" // ApiCacheTypeLarge2x is a ApiCacheType enum value ApiCacheTypeLarge2x = "LARGE_2X" // ApiCacheTypeLarge4x is a ApiCacheType enum value ApiCacheTypeLarge4x = "LARGE_4X" // ApiCacheTypeLarge8x is a ApiCacheType enum value ApiCacheTypeLarge8x = "LARGE_8X" // ApiCacheTypeLarge12x is a ApiCacheType enum value ApiCacheTypeLarge12x = "LARGE_12X" ) // ApiCacheType_Values returns all elements of the ApiCacheType enum func ApiCacheType_Values() []string { return []string{ ApiCacheTypeT2Small, ApiCacheTypeT2Medium, ApiCacheTypeR4Large, ApiCacheTypeR4Xlarge, ApiCacheTypeR42xlarge, ApiCacheTypeR44xlarge, ApiCacheTypeR48xlarge, ApiCacheTypeSmall, ApiCacheTypeMedium, ApiCacheTypeLarge, ApiCacheTypeXlarge, ApiCacheTypeLarge2x, ApiCacheTypeLarge4x, ApiCacheTypeLarge8x, ApiCacheTypeLarge12x, } } const ( // ApiCachingBehaviorFullRequestCaching is a ApiCachingBehavior enum value ApiCachingBehaviorFullRequestCaching = "FULL_REQUEST_CACHING" // ApiCachingBehaviorPerResolverCaching is a ApiCachingBehavior enum value ApiCachingBehaviorPerResolverCaching = "PER_RESOLVER_CACHING" ) // ApiCachingBehavior_Values returns all elements of the ApiCachingBehavior enum func ApiCachingBehavior_Values() []string { return []string{ ApiCachingBehaviorFullRequestCaching, ApiCachingBehaviorPerResolverCaching, } } const ( // AssociationStatusProcessing is a AssociationStatus enum value AssociationStatusProcessing = "PROCESSING" // AssociationStatusFailed is a AssociationStatus enum value AssociationStatusFailed = "FAILED" // AssociationStatusSuccess is a AssociationStatus enum value AssociationStatusSuccess = "SUCCESS" ) // AssociationStatus_Values returns all elements of the AssociationStatus enum func AssociationStatus_Values() []string { return []string{ AssociationStatusProcessing, AssociationStatusFailed, AssociationStatusSuccess, } } const ( // AuthenticationTypeApiKey is a AuthenticationType enum value AuthenticationTypeApiKey = "API_KEY" // AuthenticationTypeAwsIam is a AuthenticationType enum value AuthenticationTypeAwsIam = "AWS_IAM" // AuthenticationTypeAmazonCognitoUserPools is a AuthenticationType enum value AuthenticationTypeAmazonCognitoUserPools = "AMAZON_COGNITO_USER_POOLS" // AuthenticationTypeOpenidConnect is a AuthenticationType enum value AuthenticationTypeOpenidConnect = "OPENID_CONNECT" // AuthenticationTypeAwsLambda is a AuthenticationType enum value AuthenticationTypeAwsLambda = "AWS_LAMBDA" ) // AuthenticationType_Values returns all elements of the AuthenticationType enum func AuthenticationType_Values() []string { return []string{ AuthenticationTypeApiKey, AuthenticationTypeAwsIam, AuthenticationTypeAmazonCognitoUserPools, AuthenticationTypeOpenidConnect, AuthenticationTypeAwsLambda, } } const ( // AuthorizationTypeAwsIam is a AuthorizationType enum value AuthorizationTypeAwsIam = "AWS_IAM" ) // AuthorizationType_Values returns all elements of the AuthorizationType enum func AuthorizationType_Values() []string { return []string{ AuthorizationTypeAwsIam, } } // Provides context for the cause of the bad request. The only supported value // is CODE_ERROR. const ( // BadRequestReasonCodeError is a BadRequestReason enum value BadRequestReasonCodeError = "CODE_ERROR" ) // BadRequestReason_Values returns all elements of the BadRequestReason enum func BadRequestReason_Values() []string { return []string{ BadRequestReasonCodeError, } } const ( // ConflictDetectionTypeVersion is a ConflictDetectionType enum value ConflictDetectionTypeVersion = "VERSION" // ConflictDetectionTypeNone is a ConflictDetectionType enum value ConflictDetectionTypeNone = "NONE" ) // ConflictDetectionType_Values returns all elements of the ConflictDetectionType enum func ConflictDetectionType_Values() []string { return []string{ ConflictDetectionTypeVersion, ConflictDetectionTypeNone, } } const ( // ConflictHandlerTypeOptimisticConcurrency is a ConflictHandlerType enum value ConflictHandlerTypeOptimisticConcurrency = "OPTIMISTIC_CONCURRENCY" // ConflictHandlerTypeLambda is a ConflictHandlerType enum value ConflictHandlerTypeLambda = "LAMBDA" // ConflictHandlerTypeAutomerge is a ConflictHandlerType enum value ConflictHandlerTypeAutomerge = "AUTOMERGE" // ConflictHandlerTypeNone is a ConflictHandlerType enum value ConflictHandlerTypeNone = "NONE" ) // ConflictHandlerType_Values returns all elements of the ConflictHandlerType enum func ConflictHandlerType_Values() []string { return []string{ ConflictHandlerTypeOptimisticConcurrency, ConflictHandlerTypeLambda, ConflictHandlerTypeAutomerge, ConflictHandlerTypeNone, } } const ( // DataSourceTypeAwsLambda is a DataSourceType enum value DataSourceTypeAwsLambda = "AWS_LAMBDA" // DataSourceTypeAmazonDynamodb is a DataSourceType enum value DataSourceTypeAmazonDynamodb = "AMAZON_DYNAMODB" // DataSourceTypeAmazonElasticsearch is a DataSourceType enum value DataSourceTypeAmazonElasticsearch = "AMAZON_ELASTICSEARCH" // DataSourceTypeNone is a DataSourceType enum value DataSourceTypeNone = "NONE" // DataSourceTypeHttp is a DataSourceType enum value DataSourceTypeHttp = "HTTP" // DataSourceTypeRelationalDatabase is a DataSourceType enum value DataSourceTypeRelationalDatabase = "RELATIONAL_DATABASE" // DataSourceTypeAmazonOpensearchService is a DataSourceType enum value DataSourceTypeAmazonOpensearchService = "AMAZON_OPENSEARCH_SERVICE" // DataSourceTypeAmazonEventbridge is a DataSourceType enum value DataSourceTypeAmazonEventbridge = "AMAZON_EVENTBRIDGE" ) // DataSourceType_Values returns all elements of the DataSourceType enum func DataSourceType_Values() []string { return []string{ DataSourceTypeAwsLambda, DataSourceTypeAmazonDynamodb, DataSourceTypeAmazonElasticsearch, DataSourceTypeNone, DataSourceTypeHttp, DataSourceTypeRelationalDatabase, DataSourceTypeAmazonOpensearchService, DataSourceTypeAmazonEventbridge, } } const ( // DefaultActionAllow is a DefaultAction enum value DefaultActionAllow = "ALLOW" // DefaultActionDeny is a DefaultAction enum value DefaultActionDeny = "DENY" ) // DefaultAction_Values returns all elements of the DefaultAction enum func DefaultAction_Values() []string { return []string{ DefaultActionAllow, DefaultActionDeny, } } 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" ) // FieldLogLevel_Values returns all elements of the FieldLogLevel enum func FieldLogLevel_Values() []string { return []string{ FieldLogLevelNone, FieldLogLevelError, FieldLogLevelAll, } } const ( // GraphQLApiTypeGraphql is a GraphQLApiType enum value GraphQLApiTypeGraphql = "GRAPHQL" // GraphQLApiTypeMerged is a GraphQLApiType enum value GraphQLApiTypeMerged = "MERGED" ) // GraphQLApiType_Values returns all elements of the GraphQLApiType enum func GraphQLApiType_Values() []string { return []string{ GraphQLApiTypeGraphql, GraphQLApiTypeMerged, } } const ( // GraphQLApiVisibilityGlobal is a GraphQLApiVisibility enum value GraphQLApiVisibilityGlobal = "GLOBAL" // GraphQLApiVisibilityPrivate is a GraphQLApiVisibility enum value GraphQLApiVisibilityPrivate = "PRIVATE" ) // GraphQLApiVisibility_Values returns all elements of the GraphQLApiVisibility enum func GraphQLApiVisibility_Values() []string { return []string{ GraphQLApiVisibilityGlobal, GraphQLApiVisibilityPrivate, } } const ( // MergeTypeManualMerge is a MergeType enum value MergeTypeManualMerge = "MANUAL_MERGE" // MergeTypeAutoMerge is a MergeType enum value MergeTypeAutoMerge = "AUTO_MERGE" ) // MergeType_Values returns all elements of the MergeType enum func MergeType_Values() []string { return []string{ MergeTypeManualMerge, MergeTypeAutoMerge, } } const ( // OutputTypeSdl is a OutputType enum value OutputTypeSdl = "SDL" // OutputTypeJson is a OutputType enum value OutputTypeJson = "JSON" ) // OutputType_Values returns all elements of the OutputType enum func OutputType_Values() []string { return []string{ OutputTypeSdl, OutputTypeJson, } } const ( // OwnershipCurrentAccount is a Ownership enum value OwnershipCurrentAccount = "CURRENT_ACCOUNT" // OwnershipOtherAccounts is a Ownership enum value OwnershipOtherAccounts = "OTHER_ACCOUNTS" ) // Ownership_Values returns all elements of the Ownership enum func Ownership_Values() []string { return []string{ OwnershipCurrentAccount, OwnershipOtherAccounts, } } const ( // RelationalDatabaseSourceTypeRdsHttpEndpoint is a RelationalDatabaseSourceType enum value RelationalDatabaseSourceTypeRdsHttpEndpoint = "RDS_HTTP_ENDPOINT" ) // RelationalDatabaseSourceType_Values returns all elements of the RelationalDatabaseSourceType enum func RelationalDatabaseSourceType_Values() []string { return []string{ RelationalDatabaseSourceTypeRdsHttpEndpoint, } } const ( // ResolverKindUnit is a ResolverKind enum value ResolverKindUnit = "UNIT" // ResolverKindPipeline is a ResolverKind enum value ResolverKindPipeline = "PIPELINE" ) // ResolverKind_Values returns all elements of the ResolverKind enum func ResolverKind_Values() []string { return []string{ ResolverKindUnit, ResolverKindPipeline, } } const ( // RuntimeNameAppsyncJs is a RuntimeName enum value RuntimeNameAppsyncJs = "APPSYNC_JS" ) // RuntimeName_Values returns all elements of the RuntimeName enum func RuntimeName_Values() []string { return []string{ RuntimeNameAppsyncJs, } } const ( // SchemaStatusProcessing is a SchemaStatus enum value SchemaStatusProcessing = "PROCESSING" // SchemaStatusActive is a SchemaStatus enum value SchemaStatusActive = "ACTIVE" // SchemaStatusDeleting is a SchemaStatus enum value SchemaStatusDeleting = "DELETING" // SchemaStatusFailed is a SchemaStatus enum value SchemaStatusFailed = "FAILED" // SchemaStatusSuccess is a SchemaStatus enum value SchemaStatusSuccess = "SUCCESS" // SchemaStatusNotApplicable is a SchemaStatus enum value SchemaStatusNotApplicable = "NOT_APPLICABLE" ) // SchemaStatus_Values returns all elements of the SchemaStatus enum func SchemaStatus_Values() []string { return []string{ SchemaStatusProcessing, SchemaStatusActive, SchemaStatusDeleting, SchemaStatusFailed, SchemaStatusSuccess, SchemaStatusNotApplicable, } } const ( // SourceApiAssociationStatusMergeScheduled is a SourceApiAssociationStatus enum value SourceApiAssociationStatusMergeScheduled = "MERGE_SCHEDULED" // SourceApiAssociationStatusMergeFailed is a SourceApiAssociationStatus enum value SourceApiAssociationStatusMergeFailed = "MERGE_FAILED" // SourceApiAssociationStatusMergeSuccess is a SourceApiAssociationStatus enum value SourceApiAssociationStatusMergeSuccess = "MERGE_SUCCESS" // SourceApiAssociationStatusMergeInProgress is a SourceApiAssociationStatus enum value SourceApiAssociationStatusMergeInProgress = "MERGE_IN_PROGRESS" // SourceApiAssociationStatusAutoMergeScheduleFailed is a SourceApiAssociationStatus enum value SourceApiAssociationStatusAutoMergeScheduleFailed = "AUTO_MERGE_SCHEDULE_FAILED" // SourceApiAssociationStatusDeletionScheduled is a SourceApiAssociationStatus enum value SourceApiAssociationStatusDeletionScheduled = "DELETION_SCHEDULED" // SourceApiAssociationStatusDeletionInProgress is a SourceApiAssociationStatus enum value SourceApiAssociationStatusDeletionInProgress = "DELETION_IN_PROGRESS" // SourceApiAssociationStatusDeletionFailed is a SourceApiAssociationStatus enum value SourceApiAssociationStatusDeletionFailed = "DELETION_FAILED" ) // SourceApiAssociationStatus_Values returns all elements of the SourceApiAssociationStatus enum func SourceApiAssociationStatus_Values() []string { return []string{ SourceApiAssociationStatusMergeScheduled, SourceApiAssociationStatusMergeFailed, SourceApiAssociationStatusMergeSuccess, SourceApiAssociationStatusMergeInProgress, SourceApiAssociationStatusAutoMergeScheduleFailed, SourceApiAssociationStatusDeletionScheduled, SourceApiAssociationStatusDeletionInProgress, SourceApiAssociationStatusDeletionFailed, } } const ( // TypeDefinitionFormatSdl is a TypeDefinitionFormat enum value TypeDefinitionFormatSdl = "SDL" // TypeDefinitionFormatJson is a TypeDefinitionFormat enum value TypeDefinitionFormatJson = "JSON" ) // TypeDefinitionFormat_Values returns all elements of the TypeDefinitionFormat enum func TypeDefinitionFormat_Values() []string { return []string{ TypeDefinitionFormatSdl, TypeDefinitionFormatJson, } }