repo_name stringlengths 1 52 | repo_creator stringclasses 6
values | programming_language stringclasses 4
values | code stringlengths 0 9.68M | num_lines int64 1 234k |
|---|---|---|---|---|
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists all the runs meeting the filter criteria, where a ruleset is evaluated
// against a data source.
func (c *Client) ListDataQualityRulesetEvaluationRuns(ctx context.Context, params *ListDataQualityRulesetEvaluationRunsInput, optFns ...func(*Options)) (*ListDataQualityRulesetEvaluationRunsOutput, error) {
if params == nil {
params = &ListDataQualityRulesetEvaluationRunsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListDataQualityRulesetEvaluationRuns", params, optFns, c.addOperationListDataQualityRulesetEvaluationRunsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListDataQualityRulesetEvaluationRunsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListDataQualityRulesetEvaluationRunsInput struct {
// The filter criteria.
Filter *types.DataQualityRulesetEvaluationRunFilter
// The maximum number of results to return.
MaxResults *int32
// A paginated token to offset the results.
NextToken *string
noSmithyDocumentSerde
}
type ListDataQualityRulesetEvaluationRunsOutput struct {
// A pagination token, if more results are available.
NextToken *string
// A list of DataQualityRulesetEvaluationRunDescription objects representing data
// quality ruleset runs.
Runs []types.DataQualityRulesetEvaluationRunDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListDataQualityRulesetEvaluationRunsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListDataQualityRulesetEvaluationRuns{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListDataQualityRulesetEvaluationRuns{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListDataQualityRulesetEvaluationRunsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDataQualityRulesetEvaluationRuns(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListDataQualityRulesetEvaluationRunsAPIClient is a client that implements the
// ListDataQualityRulesetEvaluationRuns operation.
type ListDataQualityRulesetEvaluationRunsAPIClient interface {
ListDataQualityRulesetEvaluationRuns(context.Context, *ListDataQualityRulesetEvaluationRunsInput, ...func(*Options)) (*ListDataQualityRulesetEvaluationRunsOutput, error)
}
var _ ListDataQualityRulesetEvaluationRunsAPIClient = (*Client)(nil)
// ListDataQualityRulesetEvaluationRunsPaginatorOptions is the paginator options
// for ListDataQualityRulesetEvaluationRuns
type ListDataQualityRulesetEvaluationRunsPaginatorOptions struct {
// The maximum number of results to return.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListDataQualityRulesetEvaluationRunsPaginator is a paginator for
// ListDataQualityRulesetEvaluationRuns
type ListDataQualityRulesetEvaluationRunsPaginator struct {
options ListDataQualityRulesetEvaluationRunsPaginatorOptions
client ListDataQualityRulesetEvaluationRunsAPIClient
params *ListDataQualityRulesetEvaluationRunsInput
nextToken *string
firstPage bool
}
// NewListDataQualityRulesetEvaluationRunsPaginator returns a new
// ListDataQualityRulesetEvaluationRunsPaginator
func NewListDataQualityRulesetEvaluationRunsPaginator(client ListDataQualityRulesetEvaluationRunsAPIClient, params *ListDataQualityRulesetEvaluationRunsInput, optFns ...func(*ListDataQualityRulesetEvaluationRunsPaginatorOptions)) *ListDataQualityRulesetEvaluationRunsPaginator {
if params == nil {
params = &ListDataQualityRulesetEvaluationRunsInput{}
}
options := ListDataQualityRulesetEvaluationRunsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListDataQualityRulesetEvaluationRunsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListDataQualityRulesetEvaluationRunsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListDataQualityRulesetEvaluationRuns page.
func (p *ListDataQualityRulesetEvaluationRunsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDataQualityRulesetEvaluationRunsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListDataQualityRulesetEvaluationRuns(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListDataQualityRulesetEvaluationRuns(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListDataQualityRulesetEvaluationRuns",
}
}
| 228 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a paginated list of rulesets for the specified list of Glue tables.
func (c *Client) ListDataQualityRulesets(ctx context.Context, params *ListDataQualityRulesetsInput, optFns ...func(*Options)) (*ListDataQualityRulesetsOutput, error) {
if params == nil {
params = &ListDataQualityRulesetsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListDataQualityRulesets", params, optFns, c.addOperationListDataQualityRulesetsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListDataQualityRulesetsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListDataQualityRulesetsInput struct {
// The filter criteria.
Filter *types.DataQualityRulesetFilterCriteria
// The maximum number of results to return.
MaxResults *int32
// A paginated token to offset the results.
NextToken *string
// A list of key-value pair tags.
Tags map[string]string
noSmithyDocumentSerde
}
type ListDataQualityRulesetsOutput struct {
// A pagination token, if more results are available.
NextToken *string
// A paginated list of rulesets for the specified list of Glue tables.
Rulesets []types.DataQualityRulesetListDetails
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListDataQualityRulesetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListDataQualityRulesets{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListDataQualityRulesets{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListDataQualityRulesetsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDataQualityRulesets(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListDataQualityRulesetsAPIClient is a client that implements the
// ListDataQualityRulesets operation.
type ListDataQualityRulesetsAPIClient interface {
ListDataQualityRulesets(context.Context, *ListDataQualityRulesetsInput, ...func(*Options)) (*ListDataQualityRulesetsOutput, error)
}
var _ ListDataQualityRulesetsAPIClient = (*Client)(nil)
// ListDataQualityRulesetsPaginatorOptions is the paginator options for
// ListDataQualityRulesets
type ListDataQualityRulesetsPaginatorOptions struct {
// The maximum number of results to return.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListDataQualityRulesetsPaginator is a paginator for ListDataQualityRulesets
type ListDataQualityRulesetsPaginator struct {
options ListDataQualityRulesetsPaginatorOptions
client ListDataQualityRulesetsAPIClient
params *ListDataQualityRulesetsInput
nextToken *string
firstPage bool
}
// NewListDataQualityRulesetsPaginator returns a new
// ListDataQualityRulesetsPaginator
func NewListDataQualityRulesetsPaginator(client ListDataQualityRulesetsAPIClient, params *ListDataQualityRulesetsInput, optFns ...func(*ListDataQualityRulesetsPaginatorOptions)) *ListDataQualityRulesetsPaginator {
if params == nil {
params = &ListDataQualityRulesetsInput{}
}
options := ListDataQualityRulesetsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListDataQualityRulesetsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListDataQualityRulesetsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListDataQualityRulesets page.
func (p *ListDataQualityRulesetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDataQualityRulesetsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListDataQualityRulesets(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListDataQualityRulesets(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListDataQualityRulesets",
}
}
| 228 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the names of all DevEndpoint resources in this Amazon Web Services
// account, or the resources with the specified tag. This operation allows you to
// see which resources are available in your account, and their names. This
// operation takes the optional Tags field, which you can use as a filter on the
// response so that tagged resources can be retrieved as a group. If you choose to
// use tags filtering, only resources with the tag are retrieved.
func (c *Client) ListDevEndpoints(ctx context.Context, params *ListDevEndpointsInput, optFns ...func(*Options)) (*ListDevEndpointsOutput, error) {
if params == nil {
params = &ListDevEndpointsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListDevEndpoints", params, optFns, c.addOperationListDevEndpointsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListDevEndpointsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListDevEndpointsInput struct {
// The maximum size of a list to return.
MaxResults *int32
// A continuation token, if this is a continuation request.
NextToken *string
// Specifies to return only these tagged resources.
Tags map[string]string
noSmithyDocumentSerde
}
type ListDevEndpointsOutput struct {
// The names of all the DevEndpoint s in the account, or the DevEndpoint s with the
// specified tags.
DevEndpointNames []string
// A continuation token, if the returned list does not contain the last metric
// available.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListDevEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListDevEndpoints{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListDevEndpoints{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListDevEndpoints(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListDevEndpointsAPIClient is a client that implements the ListDevEndpoints
// operation.
type ListDevEndpointsAPIClient interface {
ListDevEndpoints(context.Context, *ListDevEndpointsInput, ...func(*Options)) (*ListDevEndpointsOutput, error)
}
var _ ListDevEndpointsAPIClient = (*Client)(nil)
// ListDevEndpointsPaginatorOptions is the paginator options for ListDevEndpoints
type ListDevEndpointsPaginatorOptions struct {
// The maximum size of a list to return.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListDevEndpointsPaginator is a paginator for ListDevEndpoints
type ListDevEndpointsPaginator struct {
options ListDevEndpointsPaginatorOptions
client ListDevEndpointsAPIClient
params *ListDevEndpointsInput
nextToken *string
firstPage bool
}
// NewListDevEndpointsPaginator returns a new ListDevEndpointsPaginator
func NewListDevEndpointsPaginator(client ListDevEndpointsAPIClient, params *ListDevEndpointsInput, optFns ...func(*ListDevEndpointsPaginatorOptions)) *ListDevEndpointsPaginator {
if params == nil {
params = &ListDevEndpointsInput{}
}
options := ListDevEndpointsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListDevEndpointsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListDevEndpointsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListDevEndpoints page.
func (p *ListDevEndpointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDevEndpointsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListDevEndpoints(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListDevEndpoints(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListDevEndpoints",
}
}
| 226 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the names of all job resources in this Amazon Web Services account,
// or the resources with the specified tag. This operation allows you to see which
// resources are available in your account, and their names. This operation takes
// the optional Tags field, which you can use as a filter on the response so that
// tagged resources can be retrieved as a group. If you choose to use tags
// filtering, only resources with the tag are retrieved.
func (c *Client) ListJobs(ctx context.Context, params *ListJobsInput, optFns ...func(*Options)) (*ListJobsOutput, error) {
if params == nil {
params = &ListJobsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListJobs", params, optFns, c.addOperationListJobsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListJobsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListJobsInput struct {
// The maximum size of a list to return.
MaxResults *int32
// A continuation token, if this is a continuation request.
NextToken *string
// Specifies to return only these tagged resources.
Tags map[string]string
noSmithyDocumentSerde
}
type ListJobsOutput struct {
// The names of all jobs in the account, or the jobs with the specified tags.
JobNames []string
// A continuation token, if the returned list does not contain the last metric
// available.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListJobsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListJobs{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListJobs{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListJobs(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListJobsAPIClient is a client that implements the ListJobs operation.
type ListJobsAPIClient interface {
ListJobs(context.Context, *ListJobsInput, ...func(*Options)) (*ListJobsOutput, error)
}
var _ ListJobsAPIClient = (*Client)(nil)
// ListJobsPaginatorOptions is the paginator options for ListJobs
type ListJobsPaginatorOptions struct {
// The maximum size of a list to return.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListJobsPaginator is a paginator for ListJobs
type ListJobsPaginator struct {
options ListJobsPaginatorOptions
client ListJobsAPIClient
params *ListJobsInput
nextToken *string
firstPage bool
}
// NewListJobsPaginator returns a new ListJobsPaginator
func NewListJobsPaginator(client ListJobsAPIClient, params *ListJobsInput, optFns ...func(*ListJobsPaginatorOptions)) *ListJobsPaginator {
if params == nil {
params = &ListJobsInput{}
}
options := ListJobsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListJobsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListJobsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListJobs page.
func (p *ListJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListJobsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListJobs(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListJobs(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListJobs",
}
}
| 224 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves a sortable, filterable list of existing Glue machine learning
// transforms in this Amazon Web Services account, or the resources with the
// specified tag. This operation takes the optional Tags field, which you can use
// as a filter of the responses so that tagged resources can be retrieved as a
// group. If you choose to use tag filtering, only resources with the tags are
// retrieved.
func (c *Client) ListMLTransforms(ctx context.Context, params *ListMLTransformsInput, optFns ...func(*Options)) (*ListMLTransformsOutput, error) {
if params == nil {
params = &ListMLTransformsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListMLTransforms", params, optFns, c.addOperationListMLTransformsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListMLTransformsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListMLTransformsInput struct {
// A TransformFilterCriteria used to filter the machine learning transforms.
Filter *types.TransformFilterCriteria
// The maximum size of a list to return.
MaxResults *int32
// A continuation token, if this is a continuation request.
NextToken *string
// A TransformSortCriteria used to sort the machine learning transforms.
Sort *types.TransformSortCriteria
// Specifies to return only these tagged resources.
Tags map[string]string
noSmithyDocumentSerde
}
type ListMLTransformsOutput struct {
// The identifiers of all the machine learning transforms in the account, or the
// machine learning transforms with the specified tags.
//
// This member is required.
TransformIds []string
// A continuation token, if the returned list does not contain the last metric
// available.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListMLTransformsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListMLTransforms{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListMLTransforms{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListMLTransformsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListMLTransforms(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListMLTransformsAPIClient is a client that implements the ListMLTransforms
// operation.
type ListMLTransformsAPIClient interface {
ListMLTransforms(context.Context, *ListMLTransformsInput, ...func(*Options)) (*ListMLTransformsOutput, error)
}
var _ ListMLTransformsAPIClient = (*Client)(nil)
// ListMLTransformsPaginatorOptions is the paginator options for ListMLTransforms
type ListMLTransformsPaginatorOptions struct {
// The maximum size of a list to return.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListMLTransformsPaginator is a paginator for ListMLTransforms
type ListMLTransformsPaginator struct {
options ListMLTransformsPaginatorOptions
client ListMLTransformsAPIClient
params *ListMLTransformsInput
nextToken *string
firstPage bool
}
// NewListMLTransformsPaginator returns a new ListMLTransformsPaginator
func NewListMLTransformsPaginator(client ListMLTransformsAPIClient, params *ListMLTransformsInput, optFns ...func(*ListMLTransformsPaginatorOptions)) *ListMLTransformsPaginator {
if params == nil {
params = &ListMLTransformsInput{}
}
options := ListMLTransformsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListMLTransformsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListMLTransformsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListMLTransforms page.
func (p *ListMLTransformsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListMLTransformsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListMLTransforms(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListMLTransforms(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListMLTransforms",
}
}
| 238 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a list of registries that you have created, with minimal registry
// information. Registries in the Deleting status will not be included in the
// results. Empty results will be returned if there are no registries available.
func (c *Client) ListRegistries(ctx context.Context, params *ListRegistriesInput, optFns ...func(*Options)) (*ListRegistriesOutput, error) {
if params == nil {
params = &ListRegistriesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListRegistries", params, optFns, c.addOperationListRegistriesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListRegistriesOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListRegistriesInput struct {
// Maximum number of results required per page. If the value is not supplied, this
// will be defaulted to 25 per page.
MaxResults *int32
// A continuation token, if this is a continuation call.
NextToken *string
noSmithyDocumentSerde
}
type ListRegistriesOutput struct {
// A continuation token for paginating the returned list of tokens, returned if
// the current segment of the list is not the last.
NextToken *string
// An array of RegistryDetailedListItem objects containing minimal details of each
// registry.
Registries []types.RegistryListItem
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListRegistriesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListRegistries{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListRegistries{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRegistries(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListRegistriesAPIClient is a client that implements the ListRegistries
// operation.
type ListRegistriesAPIClient interface {
ListRegistries(context.Context, *ListRegistriesInput, ...func(*Options)) (*ListRegistriesOutput, error)
}
var _ ListRegistriesAPIClient = (*Client)(nil)
// ListRegistriesPaginatorOptions is the paginator options for ListRegistries
type ListRegistriesPaginatorOptions struct {
// Maximum number of results required per page. If the value is not supplied, this
// will be defaulted to 25 per page.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListRegistriesPaginator is a paginator for ListRegistries
type ListRegistriesPaginator struct {
options ListRegistriesPaginatorOptions
client ListRegistriesAPIClient
params *ListRegistriesInput
nextToken *string
firstPage bool
}
// NewListRegistriesPaginator returns a new ListRegistriesPaginator
func NewListRegistriesPaginator(client ListRegistriesAPIClient, params *ListRegistriesInput, optFns ...func(*ListRegistriesPaginatorOptions)) *ListRegistriesPaginator {
if params == nil {
params = &ListRegistriesInput{}
}
options := ListRegistriesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListRegistriesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListRegistriesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListRegistries page.
func (p *ListRegistriesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRegistriesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListRegistries(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListRegistries(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListRegistries",
}
}
| 223 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a list of schemas with minimal details. Schemas in Deleting status will
// not be included in the results. Empty results will be returned if there are no
// schemas available. When the RegistryId is not provided, all the schemas across
// registries will be part of the API response.
func (c *Client) ListSchemas(ctx context.Context, params *ListSchemasInput, optFns ...func(*Options)) (*ListSchemasOutput, error) {
if params == nil {
params = &ListSchemasInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListSchemas", params, optFns, c.addOperationListSchemasMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListSchemasOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListSchemasInput struct {
// Maximum number of results required per page. If the value is not supplied, this
// will be defaulted to 25 per page.
MaxResults *int32
// A continuation token, if this is a continuation call.
NextToken *string
// A wrapper structure that may contain the registry name and Amazon Resource Name
// (ARN).
RegistryId *types.RegistryId
noSmithyDocumentSerde
}
type ListSchemasOutput struct {
// A continuation token for paginating the returned list of tokens, returned if
// the current segment of the list is not the last.
NextToken *string
// An array of SchemaListItem objects containing details of each schema.
Schemas []types.SchemaListItem
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListSchemasMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSchemas{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSchemas{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSchemas(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListSchemasAPIClient is a client that implements the ListSchemas operation.
type ListSchemasAPIClient interface {
ListSchemas(context.Context, *ListSchemasInput, ...func(*Options)) (*ListSchemasOutput, error)
}
var _ ListSchemasAPIClient = (*Client)(nil)
// ListSchemasPaginatorOptions is the paginator options for ListSchemas
type ListSchemasPaginatorOptions struct {
// Maximum number of results required per page. If the value is not supplied, this
// will be defaulted to 25 per page.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListSchemasPaginator is a paginator for ListSchemas
type ListSchemasPaginator struct {
options ListSchemasPaginatorOptions
client ListSchemasAPIClient
params *ListSchemasInput
nextToken *string
firstPage bool
}
// NewListSchemasPaginator returns a new ListSchemasPaginator
func NewListSchemasPaginator(client ListSchemasAPIClient, params *ListSchemasInput, optFns ...func(*ListSchemasPaginatorOptions)) *ListSchemasPaginator {
if params == nil {
params = &ListSchemasInput{}
}
options := ListSchemasPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListSchemasPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListSchemasPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListSchemas page.
func (p *ListSchemasPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSchemasOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListSchemas(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListSchemas(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListSchemas",
}
}
| 226 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a list of schema versions that you have created, with minimal
// information. Schema versions in Deleted status will not be included in the
// results. Empty results will be returned if there are no schema versions
// available.
func (c *Client) ListSchemaVersions(ctx context.Context, params *ListSchemaVersionsInput, optFns ...func(*Options)) (*ListSchemaVersionsOutput, error) {
if params == nil {
params = &ListSchemaVersionsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListSchemaVersions", params, optFns, c.addOperationListSchemaVersionsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListSchemaVersionsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListSchemaVersionsInput struct {
// This is a wrapper structure to contain schema identity fields. The structure
// contains:
// - SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either
// SchemaArn or SchemaName and RegistryName has to be provided.
// - SchemaId$SchemaName: The name of the schema. Either SchemaArn or SchemaName
// and RegistryName has to be provided.
//
// This member is required.
SchemaId *types.SchemaId
// Maximum number of results required per page. If the value is not supplied, this
// will be defaulted to 25 per page.
MaxResults *int32
// A continuation token, if this is a continuation call.
NextToken *string
noSmithyDocumentSerde
}
type ListSchemaVersionsOutput struct {
// A continuation token for paginating the returned list of tokens, returned if
// the current segment of the list is not the last.
NextToken *string
// An array of SchemaVersionList objects containing details of each schema version.
Schemas []types.SchemaVersionListItem
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListSchemaVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSchemaVersions{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSchemaVersions{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListSchemaVersionsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSchemaVersions(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListSchemaVersionsAPIClient is a client that implements the ListSchemaVersions
// operation.
type ListSchemaVersionsAPIClient interface {
ListSchemaVersions(context.Context, *ListSchemaVersionsInput, ...func(*Options)) (*ListSchemaVersionsOutput, error)
}
var _ ListSchemaVersionsAPIClient = (*Client)(nil)
// ListSchemaVersionsPaginatorOptions is the paginator options for
// ListSchemaVersions
type ListSchemaVersionsPaginatorOptions struct {
// Maximum number of results required per page. If the value is not supplied, this
// will be defaulted to 25 per page.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListSchemaVersionsPaginator is a paginator for ListSchemaVersions
type ListSchemaVersionsPaginator struct {
options ListSchemaVersionsPaginatorOptions
client ListSchemaVersionsAPIClient
params *ListSchemaVersionsInput
nextToken *string
firstPage bool
}
// NewListSchemaVersionsPaginator returns a new ListSchemaVersionsPaginator
func NewListSchemaVersionsPaginator(client ListSchemaVersionsAPIClient, params *ListSchemaVersionsInput, optFns ...func(*ListSchemaVersionsPaginatorOptions)) *ListSchemaVersionsPaginator {
if params == nil {
params = &ListSchemaVersionsInput{}
}
options := ListSchemaVersionsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListSchemaVersionsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListSchemaVersionsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListSchemaVersions page.
func (p *ListSchemaVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSchemaVersionsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListSchemaVersions(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListSchemaVersions(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListSchemaVersions",
}
}
| 237 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieve a list of sessions.
func (c *Client) ListSessions(ctx context.Context, params *ListSessionsInput, optFns ...func(*Options)) (*ListSessionsOutput, error) {
if params == nil {
params = &ListSessionsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListSessions", params, optFns, c.addOperationListSessionsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListSessionsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListSessionsInput struct {
// The maximum number of results.
MaxResults *int32
// The token for the next set of results, or null if there are no more result.
NextToken *string
// The origin of the request.
RequestOrigin *string
// Tags belonging to the session.
Tags map[string]string
noSmithyDocumentSerde
}
type ListSessionsOutput struct {
// Returns the ID of the session.
Ids []string
// The token for the next set of results, or null if there are no more result.
NextToken *string
// Returns the session object.
Sessions []types.Session
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListSessionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSessions{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSessions{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSessions(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListSessionsAPIClient is a client that implements the ListSessions operation.
type ListSessionsAPIClient interface {
ListSessions(context.Context, *ListSessionsInput, ...func(*Options)) (*ListSessionsOutput, error)
}
var _ ListSessionsAPIClient = (*Client)(nil)
// ListSessionsPaginatorOptions is the paginator options for ListSessions
type ListSessionsPaginatorOptions struct {
// The maximum number of results.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListSessionsPaginator is a paginator for ListSessions
type ListSessionsPaginator struct {
options ListSessionsPaginatorOptions
client ListSessionsAPIClient
params *ListSessionsInput
nextToken *string
firstPage bool
}
// NewListSessionsPaginator returns a new ListSessionsPaginator
func NewListSessionsPaginator(client ListSessionsAPIClient, params *ListSessionsInput, optFns ...func(*ListSessionsPaginatorOptions)) *ListSessionsPaginator {
if params == nil {
params = &ListSessionsInput{}
}
options := ListSessionsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListSessionsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListSessionsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListSessions page.
func (p *ListSessionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSessionsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListSessions(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListSessions(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListSessions",
}
}
| 225 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists statements for the session.
func (c *Client) ListStatements(ctx context.Context, params *ListStatementsInput, optFns ...func(*Options)) (*ListStatementsOutput, error) {
if params == nil {
params = &ListStatementsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListStatements", params, optFns, c.addOperationListStatementsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListStatementsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListStatementsInput struct {
// The Session ID of the statements.
//
// This member is required.
SessionId *string
// A continuation token, if this is a continuation call.
NextToken *string
// The origin of the request to list statements.
RequestOrigin *string
noSmithyDocumentSerde
}
type ListStatementsOutput struct {
// A continuation token, if not all statements have yet been returned.
NextToken *string
// Returns the list of statements.
Statements []types.Statement
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListStatementsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListStatements{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListStatements{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListStatementsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListStatements(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opListStatements(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListStatements",
}
}
| 134 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Retrieves the names of all trigger resources in this Amazon Web Services
// account, or the resources with the specified tag. This operation allows you to
// see which resources are available in your account, and their names. This
// operation takes the optional Tags field, which you can use as a filter on the
// response so that tagged resources can be retrieved as a group. If you choose to
// use tags filtering, only resources with the tag are retrieved.
func (c *Client) ListTriggers(ctx context.Context, params *ListTriggersInput, optFns ...func(*Options)) (*ListTriggersOutput, error) {
if params == nil {
params = &ListTriggersInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListTriggers", params, optFns, c.addOperationListTriggersMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListTriggersOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListTriggersInput struct {
// The name of the job for which to retrieve triggers. The trigger that can start
// this job is returned. If there is no such trigger, all triggers are returned.
DependentJobName *string
// The maximum size of a list to return.
MaxResults *int32
// A continuation token, if this is a continuation request.
NextToken *string
// Specifies to return only these tagged resources.
Tags map[string]string
noSmithyDocumentSerde
}
type ListTriggersOutput struct {
// A continuation token, if the returned list does not contain the last metric
// available.
NextToken *string
// The names of all triggers in the account, or the triggers with the specified
// tags.
TriggerNames []string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListTriggersMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListTriggers{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListTriggers{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTriggers(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListTriggersAPIClient is a client that implements the ListTriggers operation.
type ListTriggersAPIClient interface {
ListTriggers(context.Context, *ListTriggersInput, ...func(*Options)) (*ListTriggersOutput, error)
}
var _ ListTriggersAPIClient = (*Client)(nil)
// ListTriggersPaginatorOptions is the paginator options for ListTriggers
type ListTriggersPaginatorOptions struct {
// The maximum size of a list to return.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListTriggersPaginator is a paginator for ListTriggers
type ListTriggersPaginator struct {
options ListTriggersPaginatorOptions
client ListTriggersAPIClient
params *ListTriggersInput
nextToken *string
firstPage bool
}
// NewListTriggersPaginator returns a new ListTriggersPaginator
func NewListTriggersPaginator(client ListTriggersAPIClient, params *ListTriggersInput, optFns ...func(*ListTriggersPaginatorOptions)) *ListTriggersPaginator {
if params == nil {
params = &ListTriggersInput{}
}
options := ListTriggersPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListTriggersPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListTriggersPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListTriggers page.
func (p *ListTriggersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTriggersOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListTriggers(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListTriggers(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListTriggers",
}
}
| 229 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists names of workflows created in the account.
func (c *Client) ListWorkflows(ctx context.Context, params *ListWorkflowsInput, optFns ...func(*Options)) (*ListWorkflowsOutput, error) {
if params == nil {
params = &ListWorkflowsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListWorkflows", params, optFns, c.addOperationListWorkflowsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListWorkflowsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListWorkflowsInput struct {
// The maximum size of a list to return.
MaxResults *int32
// A continuation token, if this is a continuation request.
NextToken *string
noSmithyDocumentSerde
}
type ListWorkflowsOutput struct {
// A continuation token, if not all workflow names have been returned.
NextToken *string
// List of names of workflows in the account.
Workflows []string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListWorkflowsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpListWorkflows{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListWorkflows{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListWorkflows(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListWorkflowsAPIClient is a client that implements the ListWorkflows operation.
type ListWorkflowsAPIClient interface {
ListWorkflows(context.Context, *ListWorkflowsInput, ...func(*Options)) (*ListWorkflowsOutput, error)
}
var _ ListWorkflowsAPIClient = (*Client)(nil)
// ListWorkflowsPaginatorOptions is the paginator options for ListWorkflows
type ListWorkflowsPaginatorOptions struct {
// The maximum size of a list to return.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListWorkflowsPaginator is a paginator for ListWorkflows
type ListWorkflowsPaginator struct {
options ListWorkflowsPaginatorOptions
client ListWorkflowsAPIClient
params *ListWorkflowsInput
nextToken *string
firstPage bool
}
// NewListWorkflowsPaginator returns a new ListWorkflowsPaginator
func NewListWorkflowsPaginator(client ListWorkflowsAPIClient, params *ListWorkflowsInput, optFns ...func(*ListWorkflowsPaginatorOptions)) *ListWorkflowsPaginator {
if params == nil {
params = &ListWorkflowsInput{}
}
options := ListWorkflowsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListWorkflowsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListWorkflowsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListWorkflows page.
func (p *ListWorkflowsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListWorkflowsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListWorkflows(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListWorkflows(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ListWorkflows",
}
}
| 215 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Sets the security configuration for a specified catalog. After the
// configuration has been set, the specified encryption is applied to every catalog
// write thereafter.
func (c *Client) PutDataCatalogEncryptionSettings(ctx context.Context, params *PutDataCatalogEncryptionSettingsInput, optFns ...func(*Options)) (*PutDataCatalogEncryptionSettingsOutput, error) {
if params == nil {
params = &PutDataCatalogEncryptionSettingsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutDataCatalogEncryptionSettings", params, optFns, c.addOperationPutDataCatalogEncryptionSettingsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutDataCatalogEncryptionSettingsOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutDataCatalogEncryptionSettingsInput struct {
// The security configuration to set.
//
// This member is required.
DataCatalogEncryptionSettings *types.DataCatalogEncryptionSettings
// The ID of the Data Catalog to set the security configuration for. If none is
// provided, the Amazon Web Services account ID is used by default.
CatalogId *string
noSmithyDocumentSerde
}
type PutDataCatalogEncryptionSettingsOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutDataCatalogEncryptionSettingsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutDataCatalogEncryptionSettings{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutDataCatalogEncryptionSettings{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutDataCatalogEncryptionSettingsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutDataCatalogEncryptionSettings(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutDataCatalogEncryptionSettings(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "PutDataCatalogEncryptionSettings",
}
}
| 127 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Sets the Data Catalog resource policy for access control.
func (c *Client) PutResourcePolicy(ctx context.Context, params *PutResourcePolicyInput, optFns ...func(*Options)) (*PutResourcePolicyOutput, error) {
if params == nil {
params = &PutResourcePolicyInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutResourcePolicy", params, optFns, c.addOperationPutResourcePolicyMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutResourcePolicyOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutResourcePolicyInput struct {
// Contains the policy document to set, in JSON format.
//
// This member is required.
PolicyInJson *string
// If 'TRUE' , indicates that you are using both methods to grant cross-account
// access to Data Catalog resources:
// - By directly updating the resource policy with PutResourePolicy
// - By using the Grant permissions command on the Amazon Web Services
// Management Console.
// Must be set to 'TRUE' if you have already used the Management Console to grant
// cross-account access, otherwise the call fails. Default is 'FALSE'.
EnableHybrid types.EnableHybridValues
// A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used
// to create a new policy. If a value of NONE or a null value is used, the call
// does not depend on the existence of a policy.
PolicyExistsCondition types.ExistCondition
// The hash value returned when the previous policy was set using PutResourcePolicy
// . Its purpose is to prevent concurrent modifications of a policy. Do not use
// this parameter if no previous policy has been set.
PolicyHashCondition *string
// Do not use. For internal use only.
ResourceArn *string
noSmithyDocumentSerde
}
type PutResourcePolicyOutput struct {
// A hash of the policy that has just been set. This must be included in a
// subsequent call that overwrites or updates this policy.
PolicyHash *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutResourcePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutResourcePolicy{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutResourcePolicy{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutResourcePolicyValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutResourcePolicy(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutResourcePolicy(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "PutResourcePolicy",
}
}
| 148 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Puts the metadata key value pair for a specified schema version ID. A maximum
// of 10 key value pairs will be allowed per schema version. They can be added over
// one or more calls.
func (c *Client) PutSchemaVersionMetadata(ctx context.Context, params *PutSchemaVersionMetadataInput, optFns ...func(*Options)) (*PutSchemaVersionMetadataOutput, error) {
if params == nil {
params = &PutSchemaVersionMetadataInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutSchemaVersionMetadata", params, optFns, c.addOperationPutSchemaVersionMetadataMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutSchemaVersionMetadataOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutSchemaVersionMetadataInput struct {
// The metadata key's corresponding value.
//
// This member is required.
MetadataKeyValue *types.MetadataKeyValuePair
// The unique ID for the schema.
SchemaId *types.SchemaId
// The unique version ID of the schema version.
SchemaVersionId *string
// The version number of the schema.
SchemaVersionNumber *types.SchemaVersionNumber
noSmithyDocumentSerde
}
type PutSchemaVersionMetadataOutput struct {
// The latest version of the schema.
LatestVersion bool
// The metadata key.
MetadataKey *string
// The value of the metadata key.
MetadataValue *string
// The name for the registry.
RegistryName *string
// The Amazon Resource Name (ARN) for the schema.
SchemaArn *string
// The name for the schema.
SchemaName *string
// The unique version ID of the schema version.
SchemaVersionId *string
// The version number of the schema.
VersionNumber int64
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutSchemaVersionMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutSchemaVersionMetadata{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutSchemaVersionMetadata{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutSchemaVersionMetadataValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutSchemaVersionMetadata(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutSchemaVersionMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "PutSchemaVersionMetadata",
}
}
| 157 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Puts the specified workflow run properties for the given workflow run. If a
// property already exists for the specified run, then it overrides the value
// otherwise adds the property to existing properties.
func (c *Client) PutWorkflowRunProperties(ctx context.Context, params *PutWorkflowRunPropertiesInput, optFns ...func(*Options)) (*PutWorkflowRunPropertiesOutput, error) {
if params == nil {
params = &PutWorkflowRunPropertiesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "PutWorkflowRunProperties", params, optFns, c.addOperationPutWorkflowRunPropertiesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*PutWorkflowRunPropertiesOutput)
out.ResultMetadata = metadata
return out, nil
}
type PutWorkflowRunPropertiesInput struct {
// Name of the workflow which was run.
//
// This member is required.
Name *string
// The ID of the workflow run for which the run properties should be updated.
//
// This member is required.
RunId *string
// The properties to put for the specified run.
//
// This member is required.
RunProperties map[string]string
noSmithyDocumentSerde
}
type PutWorkflowRunPropertiesOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationPutWorkflowRunPropertiesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpPutWorkflowRunProperties{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpPutWorkflowRunProperties{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpPutWorkflowRunPropertiesValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutWorkflowRunProperties(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opPutWorkflowRunProperties(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "PutWorkflowRunProperties",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Queries for the schema version metadata information.
func (c *Client) QuerySchemaVersionMetadata(ctx context.Context, params *QuerySchemaVersionMetadataInput, optFns ...func(*Options)) (*QuerySchemaVersionMetadataOutput, error) {
if params == nil {
params = &QuerySchemaVersionMetadataInput{}
}
result, metadata, err := c.invokeOperation(ctx, "QuerySchemaVersionMetadata", params, optFns, c.addOperationQuerySchemaVersionMetadataMiddlewares)
if err != nil {
return nil, err
}
out := result.(*QuerySchemaVersionMetadataOutput)
out.ResultMetadata = metadata
return out, nil
}
type QuerySchemaVersionMetadataInput struct {
// Maximum number of results required per page. If the value is not supplied, this
// will be defaulted to 25 per page.
MaxResults int32
// Search key-value pairs for metadata, if they are not provided all the metadata
// information will be fetched.
MetadataList []types.MetadataKeyValuePair
// A continuation token, if this is a continuation call.
NextToken *string
// A wrapper structure that may contain the schema name and Amazon Resource Name
// (ARN).
SchemaId *types.SchemaId
// The unique version ID of the schema version.
SchemaVersionId *string
// The version number of the schema.
SchemaVersionNumber *types.SchemaVersionNumber
noSmithyDocumentSerde
}
type QuerySchemaVersionMetadataOutput struct {
// A map of a metadata key and associated values.
MetadataInfoMap map[string]types.MetadataInfo
// A continuation token for paginating the returned list of tokens, returned if
// the current segment of the list is not the last.
NextToken *string
// The unique version ID of the schema version.
SchemaVersionId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationQuerySchemaVersionMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpQuerySchemaVersionMetadata{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpQuerySchemaVersionMetadata{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opQuerySchemaVersionMetadata(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opQuerySchemaVersionMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "QuerySchemaVersionMetadata",
}
}
| 145 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Adds a new version to the existing schema. Returns an error if new version of
// schema does not meet the compatibility requirements of the schema set. This API
// will not create a new schema set and will return a 404 error if the schema set
// is not already present in the Schema Registry. If this is the first schema
// definition to be registered in the Schema Registry, this API will store the
// schema version and return immediately. Otherwise, this call has the potential to
// run longer than other operations due to compatibility modes. You can call the
// GetSchemaVersion API with the SchemaVersionId to check compatibility modes. If
// the same schema definition is already stored in Schema Registry as a version,
// the schema ID of the existing schema is returned to the caller.
func (c *Client) RegisterSchemaVersion(ctx context.Context, params *RegisterSchemaVersionInput, optFns ...func(*Options)) (*RegisterSchemaVersionOutput, error) {
if params == nil {
params = &RegisterSchemaVersionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RegisterSchemaVersion", params, optFns, c.addOperationRegisterSchemaVersionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RegisterSchemaVersionOutput)
out.ResultMetadata = metadata
return out, nil
}
type RegisterSchemaVersionInput struct {
// The schema definition using the DataFormat setting for the SchemaName .
//
// This member is required.
SchemaDefinition *string
// This is a wrapper structure to contain schema identity fields. The structure
// contains:
// - SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. Either
// SchemaArn or SchemaName and RegistryName has to be provided.
// - SchemaId$SchemaName: The name of the schema. Either SchemaArn or SchemaName
// and RegistryName has to be provided.
//
// This member is required.
SchemaId *types.SchemaId
noSmithyDocumentSerde
}
type RegisterSchemaVersionOutput struct {
// The unique ID that represents the version of this schema.
SchemaVersionId *string
// The status of the schema version.
Status types.SchemaVersionStatus
// The version of this schema (for sync flow only, in case this is the first
// version).
VersionNumber int64
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRegisterSchemaVersionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRegisterSchemaVersion{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRegisterSchemaVersion{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpRegisterSchemaVersionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRegisterSchemaVersion(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opRegisterSchemaVersion(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "RegisterSchemaVersion",
}
}
| 151 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Removes a key value pair from the schema version metadata for the specified
// schema version ID.
func (c *Client) RemoveSchemaVersionMetadata(ctx context.Context, params *RemoveSchemaVersionMetadataInput, optFns ...func(*Options)) (*RemoveSchemaVersionMetadataOutput, error) {
if params == nil {
params = &RemoveSchemaVersionMetadataInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RemoveSchemaVersionMetadata", params, optFns, c.addOperationRemoveSchemaVersionMetadataMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RemoveSchemaVersionMetadataOutput)
out.ResultMetadata = metadata
return out, nil
}
type RemoveSchemaVersionMetadataInput struct {
// The value of the metadata key.
//
// This member is required.
MetadataKeyValue *types.MetadataKeyValuePair
// A wrapper structure that may contain the schema name and Amazon Resource Name
// (ARN).
SchemaId *types.SchemaId
// The unique version ID of the schema version.
SchemaVersionId *string
// The version number of the schema.
SchemaVersionNumber *types.SchemaVersionNumber
noSmithyDocumentSerde
}
type RemoveSchemaVersionMetadataOutput struct {
// The latest version of the schema.
LatestVersion bool
// The metadata key.
MetadataKey *string
// The value of the metadata key.
MetadataValue *string
// The name of the registry.
RegistryName *string
// The Amazon Resource Name (ARN) of the schema.
SchemaArn *string
// The name of the schema.
SchemaName *string
// The version ID for the schema version.
SchemaVersionId *string
// The version number of the schema.
VersionNumber int64
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRemoveSchemaVersionMetadataMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRemoveSchemaVersionMetadata{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRemoveSchemaVersionMetadata{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpRemoveSchemaVersionMetadataValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRemoveSchemaVersionMetadata(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opRemoveSchemaVersionMetadata(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "RemoveSchemaVersionMetadata",
}
}
| 157 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Resets a bookmark entry. For more information about enabling and using job
// bookmarks, see:
// - Tracking processed data using job bookmarks (https://docs.aws.amazon.com/glue/latest/dg/monitor-continuations.html)
// - Job parameters used by Glue (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
// - Job structure (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-jobs-job.html#aws-glue-api-jobs-job-Job)
func (c *Client) ResetJobBookmark(ctx context.Context, params *ResetJobBookmarkInput, optFns ...func(*Options)) (*ResetJobBookmarkOutput, error) {
if params == nil {
params = &ResetJobBookmarkInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ResetJobBookmark", params, optFns, c.addOperationResetJobBookmarkMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ResetJobBookmarkOutput)
out.ResultMetadata = metadata
return out, nil
}
type ResetJobBookmarkInput struct {
// The name of the job in question.
//
// This member is required.
JobName *string
// The unique run identifier associated with this job run.
RunId *string
noSmithyDocumentSerde
}
type ResetJobBookmarkOutput struct {
// The reset bookmark entry.
JobBookmarkEntry *types.JobBookmarkEntry
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationResetJobBookmarkMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpResetJobBookmark{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpResetJobBookmark{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpResetJobBookmarkValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResetJobBookmark(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opResetJobBookmark(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ResetJobBookmark",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Restarts selected nodes of a previous partially completed workflow run and
// resumes the workflow run. The selected nodes and all nodes that are downstream
// from the selected nodes are run.
func (c *Client) ResumeWorkflowRun(ctx context.Context, params *ResumeWorkflowRunInput, optFns ...func(*Options)) (*ResumeWorkflowRunOutput, error) {
if params == nil {
params = &ResumeWorkflowRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ResumeWorkflowRun", params, optFns, c.addOperationResumeWorkflowRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ResumeWorkflowRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type ResumeWorkflowRunInput struct {
// The name of the workflow to resume.
//
// This member is required.
Name *string
// A list of the node IDs for the nodes you want to restart. The nodes that are to
// be restarted must have a run attempt in the original run.
//
// This member is required.
NodeIds []string
// The ID of the workflow run to resume.
//
// This member is required.
RunId *string
noSmithyDocumentSerde
}
type ResumeWorkflowRunOutput struct {
// A list of the node IDs for the nodes that were actually restarted.
NodeIds []string
// The new ID assigned to the resumed workflow run. Each resume of a workflow run
// will have a new run ID.
RunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationResumeWorkflowRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpResumeWorkflowRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpResumeWorkflowRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpResumeWorkflowRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opResumeWorkflowRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opResumeWorkflowRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "ResumeWorkflowRun",
}
}
| 141 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Executes the statement.
func (c *Client) RunStatement(ctx context.Context, params *RunStatementInput, optFns ...func(*Options)) (*RunStatementOutput, error) {
if params == nil {
params = &RunStatementInput{}
}
result, metadata, err := c.invokeOperation(ctx, "RunStatement", params, optFns, c.addOperationRunStatementMiddlewares)
if err != nil {
return nil, err
}
out := result.(*RunStatementOutput)
out.ResultMetadata = metadata
return out, nil
}
type RunStatementInput struct {
// The statement code to be run.
//
// This member is required.
Code *string
// The Session Id of the statement to be run.
//
// This member is required.
SessionId *string
// The origin of the request.
RequestOrigin *string
noSmithyDocumentSerde
}
type RunStatementOutput struct {
// Returns the Id of the statement that was run.
Id int32
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationRunStatementMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpRunStatement{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRunStatement{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpRunStatementValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRunStatement(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opRunStatement(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "RunStatement",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Searches a set of tables based on properties in the table metadata as well as
// on the parent database. You can search against text or filter conditions. You
// can only get tables that you have access to based on the security policies
// defined in Lake Formation. You need at least a read-only access to the table for
// it to be returned. If you do not have access to all the columns in the table,
// these columns will not be searched against when returning the list of tables
// back to you. If you have access to the columns but not the data in the columns,
// those columns and the associated metadata for those columns will be included in
// the search.
func (c *Client) SearchTables(ctx context.Context, params *SearchTablesInput, optFns ...func(*Options)) (*SearchTablesOutput, error) {
if params == nil {
params = &SearchTablesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "SearchTables", params, optFns, c.addOperationSearchTablesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*SearchTablesOutput)
out.ResultMetadata = metadata
return out, nil
}
type SearchTablesInput struct {
// A unique identifier, consisting of account_id .
CatalogId *string
// A list of key-value pairs, and a comparator used to filter the search results.
// Returns all entities matching the predicate. The Comparator member of the
// PropertyPredicate struct is used only for time fields, and can be omitted for
// other field types. Also, when comparing string values, such as when Key=Name , a
// fuzzy match algorithm is used. The Key field (for example, the value of the Name
// field) is split on certain punctuation characters, for example, -, :, #, etc.
// into tokens. Then each token is exact-match compared with the Value member of
// PropertyPredicate . For example, if Key=Name and Value=link , tables named
// customer-link and xx-link-yy are returned, but xxlinkyy is not returned.
Filters []types.PropertyPredicate
// The maximum number of tables to return in a single response.
MaxResults *int32
// A continuation token, included if this is a continuation call.
NextToken *string
// Allows you to specify that you want to search the tables shared with your
// account. The allowable values are FOREIGN or ALL .
// - If set to FOREIGN , will search the tables shared with your account.
// - If set to ALL , will search the tables shared with your account, as well as
// the tables in yor local account.
ResourceShareType types.ResourceShareType
// A string used for a text search. Specifying a value in quotes filters based on
// an exact match to the value.
SearchText *string
// A list of criteria for sorting the results by a field name, in an ascending or
// descending order.
SortCriteria []types.SortCriterion
noSmithyDocumentSerde
}
type SearchTablesOutput struct {
// A continuation token, present if the current list segment is not the last.
NextToken *string
// A list of the requested Table objects. The SearchTables response returns only
// the tables that you have access to.
TableList []types.Table
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationSearchTablesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpSearchTables{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpSearchTables{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchTables(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// SearchTablesAPIClient is a client that implements the SearchTables operation.
type SearchTablesAPIClient interface {
SearchTables(context.Context, *SearchTablesInput, ...func(*Options)) (*SearchTablesOutput, error)
}
var _ SearchTablesAPIClient = (*Client)(nil)
// SearchTablesPaginatorOptions is the paginator options for SearchTables
type SearchTablesPaginatorOptions struct {
// The maximum number of tables to return in a single response.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// SearchTablesPaginator is a paginator for SearchTables
type SearchTablesPaginator struct {
options SearchTablesPaginatorOptions
client SearchTablesAPIClient
params *SearchTablesInput
nextToken *string
firstPage bool
}
// NewSearchTablesPaginator returns a new SearchTablesPaginator
func NewSearchTablesPaginator(client SearchTablesAPIClient, params *SearchTablesInput, optFns ...func(*SearchTablesPaginatorOptions)) *SearchTablesPaginator {
if params == nil {
params = &SearchTablesInput{}
}
options := SearchTablesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &SearchTablesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *SearchTablesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next SearchTables page.
func (p *SearchTablesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchTablesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.SearchTables(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opSearchTables(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "SearchTables",
}
}
| 254 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Starts a new run of the specified blueprint.
func (c *Client) StartBlueprintRun(ctx context.Context, params *StartBlueprintRunInput, optFns ...func(*Options)) (*StartBlueprintRunOutput, error) {
if params == nil {
params = &StartBlueprintRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartBlueprintRun", params, optFns, c.addOperationStartBlueprintRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartBlueprintRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartBlueprintRunInput struct {
// The name of the blueprint.
//
// This member is required.
BlueprintName *string
// Specifies the IAM role used to create the workflow.
//
// This member is required.
RoleArn *string
// Specifies the parameters as a BlueprintParameters object.
Parameters *string
noSmithyDocumentSerde
}
type StartBlueprintRunOutput struct {
// The run ID for this blueprint run.
RunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartBlueprintRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartBlueprintRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartBlueprintRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartBlueprintRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartBlueprintRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartBlueprintRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartBlueprintRun",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Starts a crawl using the specified crawler, regardless of what is scheduled. If
// the crawler is already running, returns a CrawlerRunningException (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-exceptions.html#aws-glue-api-exceptions-CrawlerRunningException)
// .
func (c *Client) StartCrawler(ctx context.Context, params *StartCrawlerInput, optFns ...func(*Options)) (*StartCrawlerOutput, error) {
if params == nil {
params = &StartCrawlerInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartCrawler", params, optFns, c.addOperationStartCrawlerMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartCrawlerOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartCrawlerInput struct {
// Name of the crawler to start.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
type StartCrawlerOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartCrawlerMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartCrawler{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartCrawler{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartCrawlerValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartCrawler(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartCrawler(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartCrawler",
}
}
| 122 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Changes the schedule state of the specified crawler to SCHEDULED , unless the
// crawler is already running or the schedule state is already SCHEDULED .
func (c *Client) StartCrawlerSchedule(ctx context.Context, params *StartCrawlerScheduleInput, optFns ...func(*Options)) (*StartCrawlerScheduleOutput, error) {
if params == nil {
params = &StartCrawlerScheduleInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartCrawlerSchedule", params, optFns, c.addOperationStartCrawlerScheduleMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartCrawlerScheduleOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartCrawlerScheduleInput struct {
// Name of the crawler to schedule.
//
// This member is required.
CrawlerName *string
noSmithyDocumentSerde
}
type StartCrawlerScheduleOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartCrawlerScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartCrawlerSchedule{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartCrawlerSchedule{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartCrawlerScheduleValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartCrawlerSchedule(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartCrawlerSchedule(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartCrawlerSchedule",
}
}
| 121 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Starts a recommendation run that is used to generate rules when you don't know
// what rules to write. Glue Data Quality analyzes the data and comes up with
// recommendations for a potential ruleset. You can then triage the ruleset and
// modify the generated ruleset to your liking.
func (c *Client) StartDataQualityRuleRecommendationRun(ctx context.Context, params *StartDataQualityRuleRecommendationRunInput, optFns ...func(*Options)) (*StartDataQualityRuleRecommendationRunOutput, error) {
if params == nil {
params = &StartDataQualityRuleRecommendationRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartDataQualityRuleRecommendationRun", params, optFns, c.addOperationStartDataQualityRuleRecommendationRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartDataQualityRuleRecommendationRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartDataQualityRuleRecommendationRunInput struct {
// The data source (Glue table) associated with this run.
//
// This member is required.
DataSource *types.DataSource
// An IAM role supplied to encrypt the results of the run.
//
// This member is required.
Role *string
// Used for idempotency and is recommended to be set to a random ID (such as a
// UUID) to avoid creating or starting multiple instances of the same resource.
ClientToken *string
// A name for the ruleset.
CreatedRulesetName *string
// The number of G.1X workers to be used in the run. The default is 5.
NumberOfWorkers *int32
// The timeout for a run in minutes. This is the maximum time that a run can
// consume resources before it is terminated and enters TIMEOUT status. The
// default is 2,880 minutes (48 hours).
Timeout *int32
noSmithyDocumentSerde
}
type StartDataQualityRuleRecommendationRunOutput struct {
// The unique run identifier associated with this run.
RunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartDataQualityRuleRecommendationRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartDataQualityRuleRecommendationRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartDataQualityRuleRecommendationRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartDataQualityRuleRecommendationRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartDataQualityRuleRecommendationRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartDataQualityRuleRecommendationRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartDataQualityRuleRecommendationRun",
}
}
| 148 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Once you have a ruleset definition (either recommended or your own), you call
// this operation to evaluate the ruleset against a data source (Glue table). The
// evaluation computes results which you can retrieve with the GetDataQualityResult
// API.
func (c *Client) StartDataQualityRulesetEvaluationRun(ctx context.Context, params *StartDataQualityRulesetEvaluationRunInput, optFns ...func(*Options)) (*StartDataQualityRulesetEvaluationRunOutput, error) {
if params == nil {
params = &StartDataQualityRulesetEvaluationRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartDataQualityRulesetEvaluationRun", params, optFns, c.addOperationStartDataQualityRulesetEvaluationRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartDataQualityRulesetEvaluationRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartDataQualityRulesetEvaluationRunInput struct {
// The data source (Glue table) associated with this run.
//
// This member is required.
DataSource *types.DataSource
// An IAM role supplied to encrypt the results of the run.
//
// This member is required.
Role *string
// A list of ruleset names.
//
// This member is required.
RulesetNames []string
// A map of reference strings to additional data sources you can specify for an
// evaluation run.
AdditionalDataSources map[string]types.DataSource
// Additional run options you can specify for an evaluation run.
AdditionalRunOptions *types.DataQualityEvaluationRunAdditionalRunOptions
// Used for idempotency and is recommended to be set to a random ID (such as a
// UUID) to avoid creating or starting multiple instances of the same resource.
ClientToken *string
// The number of G.1X workers to be used in the run. The default is 5.
NumberOfWorkers *int32
// The timeout for a run in minutes. This is the maximum time that a run can
// consume resources before it is terminated and enters TIMEOUT status. The
// default is 2,880 minutes (48 hours).
Timeout *int32
noSmithyDocumentSerde
}
type StartDataQualityRulesetEvaluationRunOutput struct {
// The unique run identifier associated with this run.
RunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartDataQualityRulesetEvaluationRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartDataQualityRulesetEvaluationRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartDataQualityRulesetEvaluationRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartDataQualityRulesetEvaluationRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartDataQualityRulesetEvaluationRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartDataQualityRulesetEvaluationRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartDataQualityRulesetEvaluationRun",
}
}
| 157 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Begins an asynchronous task to export all labeled data for a particular
// transform. This task is the only label-related API call that is not part of the
// typical active learning workflow. You typically use StartExportLabelsTaskRun
// when you want to work with all of your existing labels at the same time, such as
// when you want to remove or change labels that were previously submitted as
// truth. This API operation accepts the TransformId whose labels you want to
// export and an Amazon Simple Storage Service (Amazon S3) path to export the
// labels to. The operation returns a TaskRunId . You can check on the status of
// your task run by calling the GetMLTaskRun API.
func (c *Client) StartExportLabelsTaskRun(ctx context.Context, params *StartExportLabelsTaskRunInput, optFns ...func(*Options)) (*StartExportLabelsTaskRunOutput, error) {
if params == nil {
params = &StartExportLabelsTaskRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartExportLabelsTaskRun", params, optFns, c.addOperationStartExportLabelsTaskRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartExportLabelsTaskRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartExportLabelsTaskRunInput struct {
// The Amazon S3 path where you export the labels.
//
// This member is required.
OutputS3Path *string
// The unique identifier of the machine learning transform.
//
// This member is required.
TransformId *string
noSmithyDocumentSerde
}
type StartExportLabelsTaskRunOutput struct {
// The unique identifier for the task run.
TaskRunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartExportLabelsTaskRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartExportLabelsTaskRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartExportLabelsTaskRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartExportLabelsTaskRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartExportLabelsTaskRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartExportLabelsTaskRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartExportLabelsTaskRun",
}
}
| 137 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Starts a job run using a job definition.
func (c *Client) StartJobRun(ctx context.Context, params *StartJobRunInput, optFns ...func(*Options)) (*StartJobRunOutput, error) {
if params == nil {
params = &StartJobRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartJobRun", params, optFns, c.addOperationStartJobRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartJobRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartJobRunInput struct {
// The name of the job definition to use.
//
// This member is required.
JobName *string
// This field is deprecated. Use MaxCapacity instead. The number of Glue data
// processing units (DPUs) to allocate to this JobRun. You can allocate a minimum
// of 2 DPUs; the default is 10. A DPU is a relative measure of processing power
// that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more
// information, see the Glue pricing page (https://aws.amazon.com/glue/pricing/) .
//
// Deprecated: This property is deprecated, use MaxCapacity instead.
AllocatedCapacity int32
// The job arguments associated with this run. For this job run, they replace the
// default arguments set in the job definition itself. You can specify arguments
// here that your own job-execution script consumes, as well as arguments that Glue
// itself consumes. Job arguments may be logged. Do not pass plaintext secrets as
// arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other
// secret management mechanism if you intend to keep them within the Job. For
// information about how to specify and consume your own Job arguments, see the
// Calling Glue APIs in Python (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Spark jobs, see the Special Parameters
// Used by Glue (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Ray jobs, see Using job parameters in
// Ray jobs (https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html)
// in the developer guide.
Arguments map[string]string
// Indicates whether the job is run with a standard or flexible execution class.
// The standard execution-class is ideal for time-sensitive workloads that require
// fast job startup and dedicated resources. The flexible execution class is
// appropriate for time-insensitive jobs whose start and completion times may vary.
// Only jobs with Glue version 3.0 and above and command type glueetl will be
// allowed to set ExecutionClass to FLEX . The flexible execution class is
// available for Spark jobs.
ExecutionClass types.ExecutionClass
// The ID of a previous JobRun to retry.
JobRunId *string
// For Glue version 1.0 or earlier jobs, using the standard worker type, the
// number of Glue data processing units (DPUs) that can be allocated when this job
// runs. A DPU is a relative measure of processing power that consists of 4 vCPUs
// of compute capacity and 16 GB of memory. For more information, see the Glue
// pricing page (https://aws.amazon.com/glue/pricing/) . For Glue version 2.0+
// jobs, you cannot specify a Maximum capacity . Instead, you should specify a
// Worker type and the Number of workers . Do not set MaxCapacity if using
// WorkerType and NumberOfWorkers . The value that can be allocated for MaxCapacity
// depends on whether you are running a Python shell job, an Apache Spark ETL job,
// or an Apache Spark streaming ETL job:
// - When you specify a Python shell job ( JobCommand.Name ="pythonshell"), you
// can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.
// - When you specify an Apache Spark ETL job ( JobCommand.Name ="glueetl") or
// Apache Spark streaming ETL job ( JobCommand.Name ="gluestreaming"), you can
// allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a
// fractional DPU allocation.
MaxCapacity *float64
// Specifies configuration properties of a job run notification.
NotificationProperty *types.NotificationProperty
// The number of workers of a defined workerType that are allocated when a job
// runs.
NumberOfWorkers *int32
// The name of the SecurityConfiguration structure to be used with this job run.
SecurityConfiguration *string
// The JobRun timeout in minutes. This is the maximum time that a job run can
// consume resources before it is terminated and enters TIMEOUT status. This value
// overrides the timeout value set in the parent job. Streaming jobs do not have a
// timeout. The default for non-streaming jobs is 2,880 minutes (48 hours).
Timeout *int32
// The type of predefined worker that is allocated when a job runs. Accepts a
// value of Standard, G.1X, G.2X, or G.025X for Spark jobs. Accepts the value Z.2X
// for Ray jobs.
// - For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory
// and a 50GB disk, and 2 executors per worker.
// - For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// - For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of
// memory, 128 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// - For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for low volume streaming jobs. This worker type is only available
// for Glue version 3.0 streaming jobs.
// - For the Z.2X worker type, each worker maps to 2 DPU (8vCPU, 64 GB of m
// emory, 128 GB disk), and provides up to 8 Ray workers (one per vCPU) based on
// the autoscaler.
WorkerType types.WorkerType
noSmithyDocumentSerde
}
type StartJobRunOutput struct {
// The ID assigned to this job run.
JobRunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartJobRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartJobRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartJobRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartJobRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartJobRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartJobRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartJobRun",
}
}
| 217 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Starts a task to estimate the quality of the transform. When you provide label
// sets as examples of truth, Glue machine learning uses some of those examples to
// learn from them. The rest of the labels are used as a test to estimate quality.
// Returns a unique identifier for the run. You can call GetMLTaskRun to get more
// information about the stats of the EvaluationTaskRun .
func (c *Client) StartMLEvaluationTaskRun(ctx context.Context, params *StartMLEvaluationTaskRunInput, optFns ...func(*Options)) (*StartMLEvaluationTaskRunOutput, error) {
if params == nil {
params = &StartMLEvaluationTaskRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartMLEvaluationTaskRun", params, optFns, c.addOperationStartMLEvaluationTaskRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartMLEvaluationTaskRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartMLEvaluationTaskRunInput struct {
// The unique identifier of the machine learning transform.
//
// This member is required.
TransformId *string
noSmithyDocumentSerde
}
type StartMLEvaluationTaskRunOutput struct {
// The unique identifier associated with this run.
TaskRunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartMLEvaluationTaskRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartMLEvaluationTaskRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartMLEvaluationTaskRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartMLEvaluationTaskRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartMLEvaluationTaskRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartMLEvaluationTaskRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartMLEvaluationTaskRun",
}
}
| 128 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Starts an existing trigger. See Triggering Jobs (https://docs.aws.amazon.com/glue/latest/dg/trigger-job.html)
// for information about how different types of trigger are started.
func (c *Client) StartTrigger(ctx context.Context, params *StartTriggerInput, optFns ...func(*Options)) (*StartTriggerOutput, error) {
if params == nil {
params = &StartTriggerInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartTrigger", params, optFns, c.addOperationStartTriggerMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartTriggerOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartTriggerInput struct {
// The name of the trigger to start.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
type StartTriggerOutput struct {
// The name of the trigger that was started.
Name *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartTriggerMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartTrigger{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartTrigger{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartTriggerValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartTrigger(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartTrigger(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartTrigger",
}
}
| 125 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Starts a new run of the specified workflow.
func (c *Client) StartWorkflowRun(ctx context.Context, params *StartWorkflowRunInput, optFns ...func(*Options)) (*StartWorkflowRunOutput, error) {
if params == nil {
params = &StartWorkflowRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StartWorkflowRun", params, optFns, c.addOperationStartWorkflowRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StartWorkflowRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StartWorkflowRunInput struct {
// The name of the workflow to start.
//
// This member is required.
Name *string
// The workflow run properties for the new workflow run.
RunProperties map[string]string
noSmithyDocumentSerde
}
type StartWorkflowRunOutput struct {
// An Id for the new run.
RunId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStartWorkflowRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStartWorkflowRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStartWorkflowRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStartWorkflowRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStartWorkflowRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStartWorkflowRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StartWorkflowRun",
}
}
| 127 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// If the specified crawler is running, stops the crawl.
func (c *Client) StopCrawler(ctx context.Context, params *StopCrawlerInput, optFns ...func(*Options)) (*StopCrawlerOutput, error) {
if params == nil {
params = &StopCrawlerInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StopCrawler", params, optFns, c.addOperationStopCrawlerMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StopCrawlerOutput)
out.ResultMetadata = metadata
return out, nil
}
type StopCrawlerInput struct {
// Name of the crawler to stop.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
type StopCrawlerOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStopCrawlerMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopCrawler{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopCrawler{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStopCrawlerValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopCrawler(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStopCrawler(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StopCrawler",
}
}
| 120 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Sets the schedule state of the specified crawler to NOT_SCHEDULED , but does not
// stop the crawler if it is already running.
func (c *Client) StopCrawlerSchedule(ctx context.Context, params *StopCrawlerScheduleInput, optFns ...func(*Options)) (*StopCrawlerScheduleOutput, error) {
if params == nil {
params = &StopCrawlerScheduleInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StopCrawlerSchedule", params, optFns, c.addOperationStopCrawlerScheduleMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StopCrawlerScheduleOutput)
out.ResultMetadata = metadata
return out, nil
}
type StopCrawlerScheduleInput struct {
// Name of the crawler whose schedule state to set.
//
// This member is required.
CrawlerName *string
noSmithyDocumentSerde
}
type StopCrawlerScheduleOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStopCrawlerScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopCrawlerSchedule{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopCrawlerSchedule{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStopCrawlerScheduleValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopCrawlerSchedule(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStopCrawlerSchedule(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StopCrawlerSchedule",
}
}
| 121 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Stops the session.
func (c *Client) StopSession(ctx context.Context, params *StopSessionInput, optFns ...func(*Options)) (*StopSessionOutput, error) {
if params == nil {
params = &StopSessionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StopSession", params, optFns, c.addOperationStopSessionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StopSessionOutput)
out.ResultMetadata = metadata
return out, nil
}
type StopSessionInput struct {
// The ID of the session to be stopped.
//
// This member is required.
Id *string
// The origin of the request.
RequestOrigin *string
noSmithyDocumentSerde
}
type StopSessionOutput struct {
// Returns the Id of the stopped session.
Id *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStopSessionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopSession{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopSession{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStopSessionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopSession(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStopSession(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StopSession",
}
}
| 127 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Stops a specified trigger.
func (c *Client) StopTrigger(ctx context.Context, params *StopTriggerInput, optFns ...func(*Options)) (*StopTriggerOutput, error) {
if params == nil {
params = &StopTriggerInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StopTrigger", params, optFns, c.addOperationStopTriggerMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StopTriggerOutput)
out.ResultMetadata = metadata
return out, nil
}
type StopTriggerInput struct {
// The name of the trigger to stop.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
type StopTriggerOutput struct {
// The name of the trigger that was stopped.
Name *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStopTriggerMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopTrigger{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopTrigger{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStopTriggerValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopTrigger(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStopTrigger(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StopTrigger",
}
}
| 124 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Stops the execution of the specified workflow run.
func (c *Client) StopWorkflowRun(ctx context.Context, params *StopWorkflowRunInput, optFns ...func(*Options)) (*StopWorkflowRunOutput, error) {
if params == nil {
params = &StopWorkflowRunInput{}
}
result, metadata, err := c.invokeOperation(ctx, "StopWorkflowRun", params, optFns, c.addOperationStopWorkflowRunMiddlewares)
if err != nil {
return nil, err
}
out := result.(*StopWorkflowRunOutput)
out.ResultMetadata = metadata
return out, nil
}
type StopWorkflowRunInput struct {
// The name of the workflow to stop.
//
// This member is required.
Name *string
// The ID of the workflow run to stop.
//
// This member is required.
RunId *string
noSmithyDocumentSerde
}
type StopWorkflowRunOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationStopWorkflowRunMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpStopWorkflowRun{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpStopWorkflowRun{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpStopWorkflowRunValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opStopWorkflowRun(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opStopWorkflowRun(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "StopWorkflowRun",
}
}
| 125 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Adds tags to a resource. A tag is a label you can assign to an Amazon Web
// Services resource. In Glue, you can tag only certain resources. For information
// about what resources you can tag, see Amazon Web Services Tags in Glue (https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html)
// .
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) {
if params == nil {
params = &TagResourceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*TagResourceOutput)
out.ResultMetadata = metadata
return out, nil
}
type TagResourceInput struct {
// The ARN of the Glue resource to which to add the tags. For more information
// about Glue resource ARNs, see the Glue ARN string pattern (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-common.html#aws-glue-api-regex-aws-glue-arn-id)
// .
//
// This member is required.
ResourceArn *string
// Tags to add to this resource.
//
// This member is required.
TagsToAdd map[string]string
noSmithyDocumentSerde
}
type TagResourceOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpTagResource{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpTagResource{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpTagResourceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "TagResource",
}
}
| 130 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Removes tags from a resource.
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) {
if params == nil {
params = &UntagResourceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UntagResourceOutput)
out.ResultMetadata = metadata
return out, nil
}
type UntagResourceInput struct {
// The Amazon Resource Name (ARN) of the resource from which to remove the tags.
//
// This member is required.
ResourceArn *string
// Tags to remove from this resource.
//
// This member is required.
TagsToRemove []string
noSmithyDocumentSerde
}
type UntagResourceOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUntagResource{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUntagResource{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUntagResourceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UntagResource",
}
}
| 125 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates a registered blueprint.
func (c *Client) UpdateBlueprint(ctx context.Context, params *UpdateBlueprintInput, optFns ...func(*Options)) (*UpdateBlueprintOutput, error) {
if params == nil {
params = &UpdateBlueprintInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateBlueprint", params, optFns, c.addOperationUpdateBlueprintMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateBlueprintOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateBlueprintInput struct {
// Specifies a path in Amazon S3 where the blueprint is published.
//
// This member is required.
BlueprintLocation *string
// The name of the blueprint.
//
// This member is required.
Name *string
// A description of the blueprint.
Description *string
noSmithyDocumentSerde
}
type UpdateBlueprintOutput struct {
// Returns the name of the blueprint that was updated.
Name *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateBlueprintMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateBlueprint{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateBlueprint{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateBlueprintValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateBlueprint(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateBlueprint(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateBlueprint",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Modifies an existing classifier (a GrokClassifier , an XMLClassifier , a
// JsonClassifier , or a CsvClassifier , depending on which field is present).
func (c *Client) UpdateClassifier(ctx context.Context, params *UpdateClassifierInput, optFns ...func(*Options)) (*UpdateClassifierOutput, error) {
if params == nil {
params = &UpdateClassifierInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateClassifier", params, optFns, c.addOperationUpdateClassifierMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateClassifierOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateClassifierInput struct {
// A CsvClassifier object with updated fields.
CsvClassifier *types.UpdateCsvClassifierRequest
// A GrokClassifier object with updated fields.
GrokClassifier *types.UpdateGrokClassifierRequest
// A JsonClassifier object with updated fields.
JsonClassifier *types.UpdateJsonClassifierRequest
// An XMLClassifier object with updated fields.
XMLClassifier *types.UpdateXMLClassifierRequest
noSmithyDocumentSerde
}
type UpdateClassifierOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateClassifierMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateClassifier{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateClassifier{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateClassifierValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateClassifier(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateClassifier(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateClassifier",
}
}
| 129 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Creates or updates partition statistics of columns. The Identity and Access
// Management (IAM) permission required for this operation is UpdatePartition .
func (c *Client) UpdateColumnStatisticsForPartition(ctx context.Context, params *UpdateColumnStatisticsForPartitionInput, optFns ...func(*Options)) (*UpdateColumnStatisticsForPartitionOutput, error) {
if params == nil {
params = &UpdateColumnStatisticsForPartitionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateColumnStatisticsForPartition", params, optFns, c.addOperationUpdateColumnStatisticsForPartitionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateColumnStatisticsForPartitionOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateColumnStatisticsForPartitionInput struct {
// A list of the column statistics.
//
// This member is required.
ColumnStatisticsList []types.ColumnStatistics
// The name of the catalog database where the partitions reside.
//
// This member is required.
DatabaseName *string
// A list of partition values identifying the partition.
//
// This member is required.
PartitionValues []string
// The name of the partitions' table.
//
// This member is required.
TableName *string
// The ID of the Data Catalog where the partitions in question reside. If none is
// supplied, the Amazon Web Services account ID is used by default.
CatalogId *string
noSmithyDocumentSerde
}
type UpdateColumnStatisticsForPartitionOutput struct {
// Error occurred during updating column statistics data.
Errors []types.ColumnStatisticsError
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateColumnStatisticsForPartitionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateColumnStatisticsForPartition{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateColumnStatisticsForPartition{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateColumnStatisticsForPartitionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateColumnStatisticsForPartition(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateColumnStatisticsForPartition(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateColumnStatisticsForPartition",
}
}
| 145 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Creates or updates table statistics of columns. The Identity and Access
// Management (IAM) permission required for this operation is UpdateTable .
func (c *Client) UpdateColumnStatisticsForTable(ctx context.Context, params *UpdateColumnStatisticsForTableInput, optFns ...func(*Options)) (*UpdateColumnStatisticsForTableOutput, error) {
if params == nil {
params = &UpdateColumnStatisticsForTableInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateColumnStatisticsForTable", params, optFns, c.addOperationUpdateColumnStatisticsForTableMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateColumnStatisticsForTableOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateColumnStatisticsForTableInput struct {
// A list of the column statistics.
//
// This member is required.
ColumnStatisticsList []types.ColumnStatistics
// The name of the catalog database where the partitions reside.
//
// This member is required.
DatabaseName *string
// The name of the partitions' table.
//
// This member is required.
TableName *string
// The ID of the Data Catalog where the partitions in question reside. If none is
// supplied, the Amazon Web Services account ID is used by default.
CatalogId *string
noSmithyDocumentSerde
}
type UpdateColumnStatisticsForTableOutput struct {
// List of ColumnStatisticsErrors.
Errors []types.ColumnStatisticsError
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateColumnStatisticsForTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateColumnStatisticsForTable{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateColumnStatisticsForTable{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateColumnStatisticsForTableValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateColumnStatisticsForTable(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateColumnStatisticsForTable(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateColumnStatisticsForTable",
}
}
| 140 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates a connection definition in the Data Catalog.
func (c *Client) UpdateConnection(ctx context.Context, params *UpdateConnectionInput, optFns ...func(*Options)) (*UpdateConnectionOutput, error) {
if params == nil {
params = &UpdateConnectionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateConnection", params, optFns, c.addOperationUpdateConnectionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateConnectionOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateConnectionInput struct {
// A ConnectionInput object that redefines the connection in question.
//
// This member is required.
ConnectionInput *types.ConnectionInput
// The name of the connection definition to update.
//
// This member is required.
Name *string
// The ID of the Data Catalog in which the connection resides. If none is
// provided, the Amazon Web Services account ID is used by default.
CatalogId *string
noSmithyDocumentSerde
}
type UpdateConnectionOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateConnection{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateConnection{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateConnectionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateConnection(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateConnection(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateConnection",
}
}
| 130 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates a crawler. If a crawler is running, you must stop it using StopCrawler
// before updating it.
func (c *Client) UpdateCrawler(ctx context.Context, params *UpdateCrawlerInput, optFns ...func(*Options)) (*UpdateCrawlerOutput, error) {
if params == nil {
params = &UpdateCrawlerInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateCrawler", params, optFns, c.addOperationUpdateCrawlerMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateCrawlerOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateCrawlerInput struct {
// Name of the new crawler.
//
// This member is required.
Name *string
// A list of custom classifiers that the user has registered. By default, all
// built-in classifiers are included in a crawl, but these custom classifiers
// always override the default classifiers for a given classification.
Classifiers []string
// Crawler configuration information. This versioned JSON string allows users to
// specify aspects of a crawler's behavior. For more information, see Setting
// crawler configuration options (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html)
// .
Configuration *string
// The name of the SecurityConfiguration structure to be used by this crawler.
CrawlerSecurityConfiguration *string
// The Glue database where results are stored, such as:
// arn:aws:daylight:us-east-1::database/sometable/* .
DatabaseName *string
// A description of the new crawler.
Description *string
// Specifies Lake Formation configuration settings for the crawler.
LakeFormationConfiguration *types.LakeFormationConfiguration
// Specifies data lineage configuration settings for the crawler.
LineageConfiguration *types.LineageConfiguration
// A policy that specifies whether to crawl the entire dataset again, or to crawl
// only folders that were added since the last crawler run.
RecrawlPolicy *types.RecrawlPolicy
// The IAM role or Amazon Resource Name (ARN) of an IAM role that is used by the
// new crawler to access customer resources.
Role *string
// A cron expression used to specify the schedule (see Time-Based Schedules for
// Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html)
// . For example, to run something every day at 12:15 UTC, you would specify:
// cron(15 12 * * ? *) .
Schedule *string
// The policy for the crawler's update and deletion behavior.
SchemaChangePolicy *types.SchemaChangePolicy
// The table prefix used for catalog tables that are created.
TablePrefix *string
// A list of targets to crawl.
Targets *types.CrawlerTargets
noSmithyDocumentSerde
}
type UpdateCrawlerOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateCrawlerMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateCrawler{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateCrawler{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateCrawlerValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCrawler(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateCrawler(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateCrawler",
}
}
| 172 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates the schedule of a crawler using a cron expression.
func (c *Client) UpdateCrawlerSchedule(ctx context.Context, params *UpdateCrawlerScheduleInput, optFns ...func(*Options)) (*UpdateCrawlerScheduleOutput, error) {
if params == nil {
params = &UpdateCrawlerScheduleInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateCrawlerSchedule", params, optFns, c.addOperationUpdateCrawlerScheduleMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateCrawlerScheduleOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateCrawlerScheduleInput struct {
// The name of the crawler whose schedule to update.
//
// This member is required.
CrawlerName *string
// The updated cron expression used to specify the schedule (see Time-Based
// Schedules for Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html)
// . For example, to run something every day at 12:15 UTC, you would specify:
// cron(15 12 * * ? *) .
Schedule *string
noSmithyDocumentSerde
}
type UpdateCrawlerScheduleOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateCrawlerScheduleMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateCrawlerSchedule{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateCrawlerSchedule{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateCrawlerScheduleValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateCrawlerSchedule(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateCrawlerSchedule(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateCrawlerSchedule",
}
}
| 126 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an existing database definition in a Data Catalog.
func (c *Client) UpdateDatabase(ctx context.Context, params *UpdateDatabaseInput, optFns ...func(*Options)) (*UpdateDatabaseOutput, error) {
if params == nil {
params = &UpdateDatabaseInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateDatabase", params, optFns, c.addOperationUpdateDatabaseMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateDatabaseOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateDatabaseInput struct {
// A DatabaseInput object specifying the new definition of the metadata database
// in the catalog.
//
// This member is required.
DatabaseInput *types.DatabaseInput
// The name of the database to update in the catalog. For Hive compatibility, this
// is folded to lowercase.
//
// This member is required.
Name *string
// The ID of the Data Catalog in which the metadata database resides. If none is
// provided, the Amazon Web Services account ID is used by default.
CatalogId *string
noSmithyDocumentSerde
}
type UpdateDatabaseOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateDatabaseMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDatabase{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDatabase{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateDatabaseValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDatabase(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateDatabase(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateDatabase",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates the specified data quality ruleset.
func (c *Client) UpdateDataQualityRuleset(ctx context.Context, params *UpdateDataQualityRulesetInput, optFns ...func(*Options)) (*UpdateDataQualityRulesetOutput, error) {
if params == nil {
params = &UpdateDataQualityRulesetInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateDataQualityRuleset", params, optFns, c.addOperationUpdateDataQualityRulesetMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateDataQualityRulesetOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateDataQualityRulesetInput struct {
// The name of the data quality ruleset.
//
// This member is required.
Name *string
// A description of the ruleset.
Description *string
// A Data Quality Definition Language (DQDL) ruleset. For more information, see
// the Glue developer guide.
Ruleset *string
noSmithyDocumentSerde
}
type UpdateDataQualityRulesetOutput struct {
// A description of the ruleset.
Description *string
// The name of the data quality ruleset.
Name *string
// A Data Quality Definition Language (DQDL) ruleset. For more information, see
// the Glue developer guide.
Ruleset *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateDataQualityRulesetMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDataQualityRuleset{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDataQualityRuleset{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateDataQualityRulesetValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDataQualityRuleset(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateDataQualityRuleset(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateDataQualityRuleset",
}
}
| 138 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates a specified development endpoint.
func (c *Client) UpdateDevEndpoint(ctx context.Context, params *UpdateDevEndpointInput, optFns ...func(*Options)) (*UpdateDevEndpointOutput, error) {
if params == nil {
params = &UpdateDevEndpointInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateDevEndpoint", params, optFns, c.addOperationUpdateDevEndpointMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateDevEndpointOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateDevEndpointInput struct {
// The name of the DevEndpoint to be updated.
//
// This member is required.
EndpointName *string
// The map of arguments to add the map of arguments used to configure the
// DevEndpoint . Valid arguments are:
// - "--enable-glue-datacatalog": ""
// You can specify a version of Python support for development endpoints by using
// the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If
// no arguments are provided, the version defaults to Python 2.
AddArguments map[string]string
// The list of public keys for the DevEndpoint to use.
AddPublicKeys []string
// Custom Python or Java libraries to be loaded in the DevEndpoint .
CustomLibraries *types.DevEndpointCustomLibraries
// The list of argument keys to be deleted from the map of arguments used to
// configure the DevEndpoint .
DeleteArguments []string
// The list of public keys to be deleted from the DevEndpoint .
DeletePublicKeys []string
// The public key for the DevEndpoint to use.
PublicKey *string
// True if the list of custom libraries to be loaded in the development endpoint
// needs to be updated, or False if otherwise.
UpdateEtlLibraries bool
noSmithyDocumentSerde
}
type UpdateDevEndpointOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateDevEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateDevEndpoint{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateDevEndpoint{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateDevEndpointValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateDevEndpoint(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateDevEndpoint(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateDevEndpoint",
}
}
| 149 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an existing job definition. The previous job definition is completely
// overwritten by this information.
func (c *Client) UpdateJob(ctx context.Context, params *UpdateJobInput, optFns ...func(*Options)) (*UpdateJobOutput, error) {
if params == nil {
params = &UpdateJobInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateJob", params, optFns, c.addOperationUpdateJobMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateJobOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateJobInput struct {
// The name of the job definition to update.
//
// This member is required.
JobName *string
// Specifies the values with which to update the job definition. Unspecified
// configuration is removed or reset to default values.
//
// This member is required.
JobUpdate *types.JobUpdate
noSmithyDocumentSerde
}
type UpdateJobOutput struct {
// Returns the name of the updated job definition.
JobName *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateJobMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateJob{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateJob{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateJobValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateJob(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateJob(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateJob",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Synchronizes a job from the source control repository. This operation takes the
// job artifacts that are located in the remote repository and updates the Glue
// internal stores with these artifacts. This API supports optional parameters
// which take in the repository information.
func (c *Client) UpdateJobFromSourceControl(ctx context.Context, params *UpdateJobFromSourceControlInput, optFns ...func(*Options)) (*UpdateJobFromSourceControlOutput, error) {
if params == nil {
params = &UpdateJobFromSourceControlInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateJobFromSourceControl", params, optFns, c.addOperationUpdateJobFromSourceControlMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateJobFromSourceControlOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateJobFromSourceControlInput struct {
// The type of authentication, which can be an authentication token stored in
// Amazon Web Services Secrets Manager, or a personal access token.
AuthStrategy types.SourceControlAuthStrategy
// The value of the authorization token.
AuthToken *string
// An optional branch in the remote repository.
BranchName *string
// A commit ID for a commit in the remote repository.
CommitId *string
// An optional folder in the remote repository.
Folder *string
// The name of the Glue job to be synchronized to or from the remote repository.
JobName *string
// The provider for the remote repository.
Provider types.SourceControlProvider
// The name of the remote repository that contains the job artifacts.
RepositoryName *string
// The owner of the remote repository that contains the job artifacts.
RepositoryOwner *string
noSmithyDocumentSerde
}
type UpdateJobFromSourceControlOutput struct {
// The name of the Glue job.
JobName *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateJobFromSourceControlMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateJobFromSourceControl{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateJobFromSourceControl{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateJobFromSourceControl(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateJobFromSourceControl(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateJobFromSourceControl",
}
}
| 148 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an existing machine learning transform. Call this operation to tune the
// algorithm parameters to achieve better results. After calling this operation,
// you can call the StartMLEvaluationTaskRun operation to assess how well your new
// parameters achieved your goals (such as improving the quality of your machine
// learning transform, or making it more cost-effective).
func (c *Client) UpdateMLTransform(ctx context.Context, params *UpdateMLTransformInput, optFns ...func(*Options)) (*UpdateMLTransformOutput, error) {
if params == nil {
params = &UpdateMLTransformInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateMLTransform", params, optFns, c.addOperationUpdateMLTransformMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateMLTransformOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateMLTransformInput struct {
// A unique identifier that was generated when the transform was created.
//
// This member is required.
TransformId *string
// A description of the transform. The default is an empty string.
Description *string
// This value determines which version of Glue this machine learning transform is
// compatible with. Glue 1.0 is recommended for most customers. If the value is not
// set, the Glue compatibility defaults to Glue 0.9. For more information, see
// Glue Versions (https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions)
// in the developer guide.
GlueVersion *string
// The number of Glue data processing units (DPUs) that are allocated to task runs
// for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A
// DPU is a relative measure of processing power that consists of 4 vCPUs of
// compute capacity and 16 GB of memory. For more information, see the Glue
// pricing page (https://aws.amazon.com/glue/pricing/) . When the WorkerType field
// is set to a value other than Standard , the MaxCapacity field is set
// automatically and becomes read-only.
MaxCapacity *float64
// The maximum number of times to retry a task for this transform after a task run
// fails.
MaxRetries *int32
// The unique name that you gave the transform when you created it.
Name *string
// The number of workers of a defined workerType that are allocated when this task
// runs.
NumberOfWorkers *int32
// The configuration parameters that are specific to the transform type
// (algorithm) used. Conditionally dependent on the transform type.
Parameters *types.TransformParameters
// The name or Amazon Resource Name (ARN) of the IAM role with the required
// permissions.
Role *string
// The timeout for a task run for this transform in minutes. This is the maximum
// time that a task run for this transform can consume resources before it is
// terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).
Timeout *int32
// The type of predefined worker that is allocated when this task runs. Accepts a
// value of Standard, G.1X, or G.2X.
// - For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory
// and a 50GB disk, and 2 executors per worker.
// - For the G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and a
// 64GB disk, and 1 executor per worker.
// - For the G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and a
// 128GB disk, and 1 executor per worker.
WorkerType types.WorkerType
noSmithyDocumentSerde
}
type UpdateMLTransformOutput struct {
// The unique identifier for the transform that was updated.
TransformId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateMLTransformMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateMLTransform{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateMLTransform{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateMLTransformValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMLTransform(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateMLTransform(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateMLTransform",
}
}
| 182 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates a partition.
func (c *Client) UpdatePartition(ctx context.Context, params *UpdatePartitionInput, optFns ...func(*Options)) (*UpdatePartitionOutput, error) {
if params == nil {
params = &UpdatePartitionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdatePartition", params, optFns, c.addOperationUpdatePartitionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdatePartitionOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdatePartitionInput struct {
// The name of the catalog database in which the table in question resides.
//
// This member is required.
DatabaseName *string
// The new partition object to update the partition to. The Values property can't
// be changed. If you want to change the partition key values for a partition,
// delete and recreate the partition.
//
// This member is required.
PartitionInput *types.PartitionInput
// List of partition key values that define the partition to update.
//
// This member is required.
PartitionValueList []string
// The name of the table in which the partition to be updated is located.
//
// This member is required.
TableName *string
// The ID of the Data Catalog where the partition to be updated resides. If none
// is provided, the Amazon Web Services account ID is used by default.
CatalogId *string
noSmithyDocumentSerde
}
type UpdatePartitionOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdatePartitionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdatePartition{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdatePartition{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdatePartitionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePartition(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdatePartition(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdatePartition",
}
}
| 142 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an existing registry which is used to hold a collection of schemas. The
// updated properties relate to the registry, and do not modify any of the schemas
// within the registry.
func (c *Client) UpdateRegistry(ctx context.Context, params *UpdateRegistryInput, optFns ...func(*Options)) (*UpdateRegistryOutput, error) {
if params == nil {
params = &UpdateRegistryInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateRegistry", params, optFns, c.addOperationUpdateRegistryMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateRegistryOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateRegistryInput struct {
// A description of the registry. If description is not provided, this field will
// not be updated.
//
// This member is required.
Description *string
// This is a wrapper structure that may contain the registry name and Amazon
// Resource Name (ARN).
//
// This member is required.
RegistryId *types.RegistryId
noSmithyDocumentSerde
}
type UpdateRegistryOutput struct {
// The Amazon Resource name (ARN) of the updated registry.
RegistryArn *string
// The name of the updated registry.
RegistryName *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateRegistryMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateRegistry{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateRegistry{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateRegistryValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRegistry(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateRegistry(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateRegistry",
}
}
| 137 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates the description, compatibility setting, or version checkpoint for a
// schema set. For updating the compatibility setting, the call will not validate
// compatibility for the entire set of schema versions with the new compatibility
// setting. If the value for Compatibility is provided, the VersionNumber (a
// checkpoint) is also required. The API will validate the checkpoint version
// number for consistency. If the value for the VersionNumber (checkpoint) is
// provided, Compatibility is optional and this can be used to set/reset a
// checkpoint for the schema. This update will happen only if the schema is in the
// AVAILABLE state.
func (c *Client) UpdateSchema(ctx context.Context, params *UpdateSchemaInput, optFns ...func(*Options)) (*UpdateSchemaOutput, error) {
if params == nil {
params = &UpdateSchemaInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateSchema", params, optFns, c.addOperationUpdateSchemaMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateSchemaOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateSchemaInput struct {
// This is a wrapper structure to contain schema identity fields. The structure
// contains:
// - SchemaId$SchemaArn: The Amazon Resource Name (ARN) of the schema. One of
// SchemaArn or SchemaName has to be provided.
// - SchemaId$SchemaName: The name of the schema. One of SchemaArn or SchemaName
// has to be provided.
//
// This member is required.
SchemaId *types.SchemaId
// The new compatibility setting for the schema.
Compatibility types.Compatibility
// The new description for the schema.
Description *string
// Version number required for check pointing. One of VersionNumber or
// Compatibility has to be provided.
SchemaVersionNumber *types.SchemaVersionNumber
noSmithyDocumentSerde
}
type UpdateSchemaOutput struct {
// The name of the registry that contains the schema.
RegistryName *string
// The Amazon Resource Name (ARN) of the schema.
SchemaArn *string
// The name of the schema.
SchemaName *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateSchemaMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateSchema{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateSchema{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateSchemaValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSchema(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateSchema(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateSchema",
}
}
| 154 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Synchronizes a job to the source control repository. This operation takes the
// job artifacts from the Glue internal stores and makes a commit to the remote
// repository that is configured on the job. This API supports optional parameters
// which take in the repository information.
func (c *Client) UpdateSourceControlFromJob(ctx context.Context, params *UpdateSourceControlFromJobInput, optFns ...func(*Options)) (*UpdateSourceControlFromJobOutput, error) {
if params == nil {
params = &UpdateSourceControlFromJobInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateSourceControlFromJob", params, optFns, c.addOperationUpdateSourceControlFromJobMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateSourceControlFromJobOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateSourceControlFromJobInput struct {
// The type of authentication, which can be an authentication token stored in
// Amazon Web Services Secrets Manager, or a personal access token.
AuthStrategy types.SourceControlAuthStrategy
// The value of the authorization token.
AuthToken *string
// An optional branch in the remote repository.
BranchName *string
// A commit ID for a commit in the remote repository.
CommitId *string
// An optional folder in the remote repository.
Folder *string
// The name of the Glue job to be synchronized to or from the remote repository.
JobName *string
// The provider for the remote repository.
Provider types.SourceControlProvider
// The name of the remote repository that contains the job artifacts.
RepositoryName *string
// The owner of the remote repository that contains the job artifacts.
RepositoryOwner *string
noSmithyDocumentSerde
}
type UpdateSourceControlFromJobOutput struct {
// The name of the Glue job.
JobName *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateSourceControlFromJobMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateSourceControlFromJob{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateSourceControlFromJob{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSourceControlFromJob(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateSourceControlFromJob(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateSourceControlFromJob",
}
}
| 148 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates a metadata table in the Data Catalog.
func (c *Client) UpdateTable(ctx context.Context, params *UpdateTableInput, optFns ...func(*Options)) (*UpdateTableOutput, error) {
if params == nil {
params = &UpdateTableInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateTable", params, optFns, c.addOperationUpdateTableMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateTableOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateTableInput struct {
// The name of the catalog database in which the table resides. For Hive
// compatibility, this name is entirely lowercase.
//
// This member is required.
DatabaseName *string
// An updated TableInput object to define the metadata table in the catalog.
//
// This member is required.
TableInput *types.TableInput
// The ID of the Data Catalog where the table resides. If none is provided, the
// Amazon Web Services account ID is used by default.
CatalogId *string
// By default, UpdateTable always creates an archived version of the table before
// updating it. However, if skipArchive is set to true, UpdateTable does not
// create the archived version.
SkipArchive *bool
// The transaction ID at which to update the table contents.
TransactionId *string
// The version ID at which to update the table contents.
VersionId *string
noSmithyDocumentSerde
}
type UpdateTableOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateTableMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateTable{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateTable{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateTableValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTable(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateTable(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateTable",
}
}
| 142 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates a trigger definition.
func (c *Client) UpdateTrigger(ctx context.Context, params *UpdateTriggerInput, optFns ...func(*Options)) (*UpdateTriggerOutput, error) {
if params == nil {
params = &UpdateTriggerInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateTrigger", params, optFns, c.addOperationUpdateTriggerMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateTriggerOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateTriggerInput struct {
// The name of the trigger to update.
//
// This member is required.
Name *string
// The new values with which to update the trigger.
//
// This member is required.
TriggerUpdate *types.TriggerUpdate
noSmithyDocumentSerde
}
type UpdateTriggerOutput struct {
// The resulting trigger definition.
Trigger *types.Trigger
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateTriggerMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateTrigger{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateTrigger{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateTriggerValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateTrigger(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateTrigger(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateTrigger",
}
}
| 130 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an existing function definition in the Data Catalog.
func (c *Client) UpdateUserDefinedFunction(ctx context.Context, params *UpdateUserDefinedFunctionInput, optFns ...func(*Options)) (*UpdateUserDefinedFunctionOutput, error) {
if params == nil {
params = &UpdateUserDefinedFunctionInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateUserDefinedFunction", params, optFns, c.addOperationUpdateUserDefinedFunctionMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateUserDefinedFunctionOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateUserDefinedFunctionInput struct {
// The name of the catalog database where the function to be updated is located.
//
// This member is required.
DatabaseName *string
// A FunctionInput object that redefines the function in the Data Catalog.
//
// This member is required.
FunctionInput *types.UserDefinedFunctionInput
// The name of the function.
//
// This member is required.
FunctionName *string
// The ID of the Data Catalog where the function to be updated is located. If none
// is provided, the Amazon Web Services account ID is used by default.
CatalogId *string
noSmithyDocumentSerde
}
type UpdateUserDefinedFunctionOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateUserDefinedFunctionMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateUserDefinedFunction{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateUserDefinedFunction{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateUserDefinedFunctionValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateUserDefinedFunction(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateUserDefinedFunction(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateUserDefinedFunction",
}
}
| 135 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates an existing workflow.
func (c *Client) UpdateWorkflow(ctx context.Context, params *UpdateWorkflowInput, optFns ...func(*Options)) (*UpdateWorkflowOutput, error) {
if params == nil {
params = &UpdateWorkflowInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateWorkflow", params, optFns, c.addOperationUpdateWorkflowMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateWorkflowOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateWorkflowInput struct {
// Name of the workflow to be updated.
//
// This member is required.
Name *string
// A collection of properties to be used as part of each execution of the workflow.
DefaultRunProperties map[string]string
// The description of the workflow.
Description *string
// You can use this parameter to prevent unwanted multiple updates to data, to
// control costs, or in some cases, to prevent exceeding the maximum number of
// concurrent runs of any of the component jobs. If you leave this parameter blank,
// there is no limit to the number of concurrent workflow runs.
MaxConcurrentRuns *int32
noSmithyDocumentSerde
}
type UpdateWorkflowOutput struct {
// The name of the workflow which was specified in input.
Name *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateWorkflowMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateWorkflow{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateWorkflow{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateWorkflowValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateWorkflow(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateWorkflow(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "glue",
OperationName: "UpdateWorkflow",
}
}
| 136 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
// Package glue provides the API client, operations, and parameter types for AWS
// Glue.
//
// Glue Defines the public endpoint for the Glue service.
package glue
| 8 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"errors"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
internalendpoints "github.com/aws/aws-sdk-go-v2/service/glue/internal/endpoints"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"net/url"
"strings"
)
// EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverOptions = internalendpoints.Options
// EndpointResolver interface for resolving service endpoints.
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
var _ EndpointResolver = &internalendpoints.Resolver{}
// NewDefaultEndpointResolver constructs a new service endpoint resolver
func NewDefaultEndpointResolver() *internalendpoints.Resolver {
return internalendpoints.New()
}
// EndpointResolverFunc is a helper utility that wraps a function so it satisfies
// the EndpointResolver interface. This is useful when you want to add additional
// endpoint resolving logic, or stub out specific endpoints with custom values.
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
return fn(region, options)
}
func resolveDefaultEndpointConfiguration(o *Options) {
if o.EndpointResolver != nil {
return
}
o.EndpointResolver = NewDefaultEndpointResolver()
}
// EndpointResolverFromURL returns an EndpointResolver configured using the
// provided endpoint url. By default, the resolved endpoint resolver uses the
// client region as signing region, and the endpoint source is set to
// EndpointSourceCustom.You can provide functional options to configure endpoint
// values for the resolved endpoint.
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver {
e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom}
for _, fn := range optFns {
fn(&e)
}
return EndpointResolverFunc(
func(region string, options EndpointResolverOptions) (aws.Endpoint, error) {
if len(e.SigningRegion) == 0 {
e.SigningRegion = region
}
return e, nil
},
)
}
type ResolveEndpoint struct {
Resolver EndpointResolver
Options EndpointResolverOptions
}
func (*ResolveEndpoint) ID() string {
return "ResolveEndpoint"
}
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
req, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
}
if m.Resolver == nil {
return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
}
eo := m.Options
eo.Logger = middleware.GetLogger(ctx)
var endpoint aws.Endpoint
endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo)
if err != nil {
return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
}
req.URL, err = url.Parse(endpoint.URL)
if err != nil {
return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err)
}
if len(awsmiddleware.GetSigningName(ctx)) == 0 {
signingName := endpoint.SigningName
if len(signingName) == 0 {
signingName = "glue"
}
ctx = awsmiddleware.SetSigningName(ctx, signingName)
}
ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source)
ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable)
ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion)
ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID)
return next.HandleSerialize(ctx, in)
}
func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error {
return stack.Serialize.Insert(&ResolveEndpoint{
Resolver: o.EndpointResolver,
Options: o.EndpointOptions,
}, "OperationSerializer", middleware.Before)
}
func removeResolveEndpointMiddleware(stack *middleware.Stack) error {
_, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID())
return err
}
type wrappedEndpointResolver struct {
awsResolver aws.EndpointResolverWithOptions
resolver EndpointResolver
}
func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
if w.awsResolver == nil {
goto fallback
}
endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options)
if err == nil {
return endpoint, nil
}
if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) {
return endpoint, err
}
fallback:
if w.resolver == nil {
return endpoint, fmt.Errorf("default endpoint resolver provided was nil")
}
return w.resolver.ResolveEndpoint(region, options)
}
type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error)
func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) {
return a(service, region)
}
var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil)
// withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver.
// If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided
// fallbackResolver for resolution.
//
// fallbackResolver must not be nil
func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver {
var resolver aws.EndpointResolverWithOptions
if awsResolverWithOptions != nil {
resolver = awsResolverWithOptions
} else if awsResolver != nil {
resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint)
}
return &wrappedEndpointResolver{
awsResolver: resolver,
resolver: fallbackResolver,
}
}
func finalizeClientEndpointResolverOptions(options *Options) {
options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage()
if len(options.EndpointOptions.ResolvedRegion) == 0 {
const fipsInfix = "-fips-"
const fipsPrefix = "fips-"
const fipsSuffix = "-fips"
if strings.Contains(options.Region, fipsInfix) ||
strings.Contains(options.Region, fipsPrefix) ||
strings.Contains(options.Region, fipsSuffix) {
options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(
options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "")
options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled
}
}
}
| 201 |
aws-sdk-go-v2 | aws | Go | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
package glue
// goModuleVersion is the tagged release for this module
const goModuleVersion = "1.53.0"
| 7 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
| 4 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package glue
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
smithy "github.com/aws/smithy-go"
"github.com/aws/smithy-go/middleware"
)
type validateOpBatchCreatePartition struct {
}
func (*validateOpBatchCreatePartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchCreatePartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchCreatePartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchCreatePartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchDeleteConnection struct {
}
func (*validateOpBatchDeleteConnection) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchDeleteConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchDeleteConnectionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchDeleteConnectionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchDeletePartition struct {
}
func (*validateOpBatchDeletePartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchDeletePartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchDeletePartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchDeletePartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchDeleteTable struct {
}
func (*validateOpBatchDeleteTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchDeleteTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchDeleteTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchDeleteTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchDeleteTableVersion struct {
}
func (*validateOpBatchDeleteTableVersion) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchDeleteTableVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchDeleteTableVersionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchDeleteTableVersionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetBlueprints struct {
}
func (*validateOpBatchGetBlueprints) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetBlueprints) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetBlueprintsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetBlueprintsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetCrawlers struct {
}
func (*validateOpBatchGetCrawlers) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetCrawlers) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetCrawlersInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetCrawlersInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetCustomEntityTypes struct {
}
func (*validateOpBatchGetCustomEntityTypes) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetCustomEntityTypes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetCustomEntityTypesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetCustomEntityTypesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetDataQualityResult struct {
}
func (*validateOpBatchGetDataQualityResult) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetDataQualityResult) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetDataQualityResultInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetDataQualityResultInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetDevEndpoints struct {
}
func (*validateOpBatchGetDevEndpoints) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetDevEndpoints) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetDevEndpointsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetDevEndpointsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetJobs struct {
}
func (*validateOpBatchGetJobs) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetJobs) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetJobsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetJobsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetPartition struct {
}
func (*validateOpBatchGetPartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetPartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetPartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetPartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetTriggers struct {
}
func (*validateOpBatchGetTriggers) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetTriggers) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetTriggersInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetTriggersInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchGetWorkflows struct {
}
func (*validateOpBatchGetWorkflows) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchGetWorkflows) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchGetWorkflowsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchGetWorkflowsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchStopJobRun struct {
}
func (*validateOpBatchStopJobRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchStopJobRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchStopJobRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchStopJobRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpBatchUpdatePartition struct {
}
func (*validateOpBatchUpdatePartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpBatchUpdatePartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*BatchUpdatePartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpBatchUpdatePartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCancelDataQualityRuleRecommendationRun struct {
}
func (*validateOpCancelDataQualityRuleRecommendationRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCancelDataQualityRuleRecommendationRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CancelDataQualityRuleRecommendationRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCancelDataQualityRuleRecommendationRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCancelDataQualityRulesetEvaluationRun struct {
}
func (*validateOpCancelDataQualityRulesetEvaluationRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCancelDataQualityRulesetEvaluationRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CancelDataQualityRulesetEvaluationRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCancelDataQualityRulesetEvaluationRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCancelMLTaskRun struct {
}
func (*validateOpCancelMLTaskRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCancelMLTaskRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CancelMLTaskRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCancelMLTaskRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCancelStatement struct {
}
func (*validateOpCancelStatement) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCancelStatement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CancelStatementInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCancelStatementInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCheckSchemaVersionValidity struct {
}
func (*validateOpCheckSchemaVersionValidity) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCheckSchemaVersionValidity) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CheckSchemaVersionValidityInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCheckSchemaVersionValidityInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateBlueprint struct {
}
func (*validateOpCreateBlueprint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateBlueprint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateBlueprintInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateBlueprintInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateClassifier struct {
}
func (*validateOpCreateClassifier) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateClassifier) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateClassifierInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateClassifierInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateConnection struct {
}
func (*validateOpCreateConnection) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateConnectionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateConnectionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateCrawler struct {
}
func (*validateOpCreateCrawler) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateCrawler) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateCrawlerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateCrawlerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateCustomEntityType struct {
}
func (*validateOpCreateCustomEntityType) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateCustomEntityType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateCustomEntityTypeInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateCustomEntityTypeInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateDatabase struct {
}
func (*validateOpCreateDatabase) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateDatabase) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateDatabaseInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateDatabaseInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateDataQualityRuleset struct {
}
func (*validateOpCreateDataQualityRuleset) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateDataQualityRuleset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateDataQualityRulesetInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateDataQualityRulesetInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateDevEndpoint struct {
}
func (*validateOpCreateDevEndpoint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateDevEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateDevEndpointInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateDevEndpointInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateJob struct {
}
func (*validateOpCreateJob) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateJobInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateJobInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateMLTransform struct {
}
func (*validateOpCreateMLTransform) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateMLTransform) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateMLTransformInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateMLTransformInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreatePartitionIndex struct {
}
func (*validateOpCreatePartitionIndex) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreatePartitionIndex) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreatePartitionIndexInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreatePartitionIndexInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreatePartition struct {
}
func (*validateOpCreatePartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreatePartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreatePartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreatePartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateRegistry struct {
}
func (*validateOpCreateRegistry) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateRegistry) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateRegistryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateRegistryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateSchema struct {
}
func (*validateOpCreateSchema) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateSchema) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateSchemaInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateSchemaInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateScript struct {
}
func (*validateOpCreateScript) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateScript) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateScriptInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateScriptInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateSecurityConfiguration struct {
}
func (*validateOpCreateSecurityConfiguration) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateSecurityConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateSecurityConfigurationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateSecurityConfigurationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateSession struct {
}
func (*validateOpCreateSession) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateSessionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateSessionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateTable struct {
}
func (*validateOpCreateTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateTrigger struct {
}
func (*validateOpCreateTrigger) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateTrigger) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateTriggerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateTriggerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateUserDefinedFunction struct {
}
func (*validateOpCreateUserDefinedFunction) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateUserDefinedFunction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateUserDefinedFunctionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateUserDefinedFunctionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateWorkflow struct {
}
func (*validateOpCreateWorkflow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateWorkflow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateWorkflowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateWorkflowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteBlueprint struct {
}
func (*validateOpDeleteBlueprint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteBlueprint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteBlueprintInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteBlueprintInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteClassifier struct {
}
func (*validateOpDeleteClassifier) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteClassifier) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteClassifierInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteClassifierInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteColumnStatisticsForPartition struct {
}
func (*validateOpDeleteColumnStatisticsForPartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteColumnStatisticsForPartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteColumnStatisticsForPartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteColumnStatisticsForPartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteColumnStatisticsForTable struct {
}
func (*validateOpDeleteColumnStatisticsForTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteColumnStatisticsForTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteColumnStatisticsForTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteColumnStatisticsForTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteConnection struct {
}
func (*validateOpDeleteConnection) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteConnectionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteConnectionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteCrawler struct {
}
func (*validateOpDeleteCrawler) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteCrawler) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteCrawlerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteCrawlerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteCustomEntityType struct {
}
func (*validateOpDeleteCustomEntityType) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteCustomEntityType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteCustomEntityTypeInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteCustomEntityTypeInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteDatabase struct {
}
func (*validateOpDeleteDatabase) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteDatabase) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteDatabaseInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteDatabaseInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteDataQualityRuleset struct {
}
func (*validateOpDeleteDataQualityRuleset) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteDataQualityRuleset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteDataQualityRulesetInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteDataQualityRulesetInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteDevEndpoint struct {
}
func (*validateOpDeleteDevEndpoint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteDevEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteDevEndpointInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteDevEndpointInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteJob struct {
}
func (*validateOpDeleteJob) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteJobInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteJobInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteMLTransform struct {
}
func (*validateOpDeleteMLTransform) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteMLTransform) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteMLTransformInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteMLTransformInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeletePartitionIndex struct {
}
func (*validateOpDeletePartitionIndex) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeletePartitionIndex) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeletePartitionIndexInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeletePartitionIndexInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeletePartition struct {
}
func (*validateOpDeletePartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeletePartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeletePartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeletePartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteRegistry struct {
}
func (*validateOpDeleteRegistry) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteRegistry) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteRegistryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteRegistryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteSchema struct {
}
func (*validateOpDeleteSchema) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteSchema) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteSchemaInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteSchemaInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteSchemaVersions struct {
}
func (*validateOpDeleteSchemaVersions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteSchemaVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteSchemaVersionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteSchemaVersionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteSecurityConfiguration struct {
}
func (*validateOpDeleteSecurityConfiguration) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteSecurityConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteSecurityConfigurationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteSecurityConfigurationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteSession struct {
}
func (*validateOpDeleteSession) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteSessionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteSessionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteTable struct {
}
func (*validateOpDeleteTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteTableVersion struct {
}
func (*validateOpDeleteTableVersion) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteTableVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteTableVersionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteTableVersionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteTrigger struct {
}
func (*validateOpDeleteTrigger) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteTrigger) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteTriggerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteTriggerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteUserDefinedFunction struct {
}
func (*validateOpDeleteUserDefinedFunction) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteUserDefinedFunction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteUserDefinedFunctionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteUserDefinedFunctionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteWorkflow struct {
}
func (*validateOpDeleteWorkflow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteWorkflow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteWorkflowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteWorkflowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetBlueprint struct {
}
func (*validateOpGetBlueprint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetBlueprint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetBlueprintInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetBlueprintInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetBlueprintRun struct {
}
func (*validateOpGetBlueprintRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetBlueprintRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetBlueprintRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetBlueprintRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetBlueprintRuns struct {
}
func (*validateOpGetBlueprintRuns) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetBlueprintRuns) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetBlueprintRunsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetBlueprintRunsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetClassifier struct {
}
func (*validateOpGetClassifier) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetClassifier) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetClassifierInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetClassifierInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetColumnStatisticsForPartition struct {
}
func (*validateOpGetColumnStatisticsForPartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetColumnStatisticsForPartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetColumnStatisticsForPartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetColumnStatisticsForPartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetColumnStatisticsForTable struct {
}
func (*validateOpGetColumnStatisticsForTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetColumnStatisticsForTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetColumnStatisticsForTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetColumnStatisticsForTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetConnection struct {
}
func (*validateOpGetConnection) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetConnectionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetConnectionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetCrawler struct {
}
func (*validateOpGetCrawler) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetCrawler) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetCrawlerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetCrawlerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetCustomEntityType struct {
}
func (*validateOpGetCustomEntityType) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetCustomEntityType) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetCustomEntityTypeInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetCustomEntityTypeInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDatabase struct {
}
func (*validateOpGetDatabase) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDatabase) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDatabaseInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDatabaseInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDataQualityResult struct {
}
func (*validateOpGetDataQualityResult) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDataQualityResult) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDataQualityResultInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDataQualityResultInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDataQualityRuleRecommendationRun struct {
}
func (*validateOpGetDataQualityRuleRecommendationRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDataQualityRuleRecommendationRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDataQualityRuleRecommendationRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDataQualityRuleRecommendationRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDataQualityRulesetEvaluationRun struct {
}
func (*validateOpGetDataQualityRulesetEvaluationRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDataQualityRulesetEvaluationRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDataQualityRulesetEvaluationRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDataQualityRulesetEvaluationRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDataQualityRuleset struct {
}
func (*validateOpGetDataQualityRuleset) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDataQualityRuleset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDataQualityRulesetInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDataQualityRulesetInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetDevEndpoint struct {
}
func (*validateOpGetDevEndpoint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetDevEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetDevEndpointInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetDevEndpointInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetJobBookmark struct {
}
func (*validateOpGetJobBookmark) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetJobBookmark) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetJobBookmarkInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetJobBookmarkInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetJob struct {
}
func (*validateOpGetJob) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetJobInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetJobInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetJobRun struct {
}
func (*validateOpGetJobRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetJobRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetJobRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetJobRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetJobRuns struct {
}
func (*validateOpGetJobRuns) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetJobRuns) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetJobRunsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetJobRunsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMapping struct {
}
func (*validateOpGetMapping) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMapping) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMappingInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMappingInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMLTaskRun struct {
}
func (*validateOpGetMLTaskRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMLTaskRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMLTaskRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMLTaskRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMLTaskRuns struct {
}
func (*validateOpGetMLTaskRuns) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMLTaskRuns) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMLTaskRunsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMLTaskRunsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMLTransform struct {
}
func (*validateOpGetMLTransform) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMLTransform) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMLTransformInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMLTransformInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetMLTransforms struct {
}
func (*validateOpGetMLTransforms) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetMLTransforms) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetMLTransformsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetMLTransformsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetPartitionIndexes struct {
}
func (*validateOpGetPartitionIndexes) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetPartitionIndexes) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetPartitionIndexesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetPartitionIndexesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetPartition struct {
}
func (*validateOpGetPartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetPartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetPartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetPartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetPartitions struct {
}
func (*validateOpGetPartitions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetPartitions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetPartitionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetPartitionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetPlan struct {
}
func (*validateOpGetPlan) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetPlan) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetPlanInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetPlanInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetRegistry struct {
}
func (*validateOpGetRegistry) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetRegistry) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetRegistryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetRegistryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetSchemaByDefinition struct {
}
func (*validateOpGetSchemaByDefinition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetSchemaByDefinition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetSchemaByDefinitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetSchemaByDefinitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetSchema struct {
}
func (*validateOpGetSchema) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetSchema) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetSchemaInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetSchemaInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetSchemaVersionsDiff struct {
}
func (*validateOpGetSchemaVersionsDiff) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetSchemaVersionsDiff) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetSchemaVersionsDiffInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetSchemaVersionsDiffInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetSecurityConfiguration struct {
}
func (*validateOpGetSecurityConfiguration) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetSecurityConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetSecurityConfigurationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetSecurityConfigurationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetSession struct {
}
func (*validateOpGetSession) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetSessionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetSessionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetStatement struct {
}
func (*validateOpGetStatement) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetStatement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetStatementInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetStatementInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetTable struct {
}
func (*validateOpGetTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetTables struct {
}
func (*validateOpGetTables) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetTables) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetTablesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetTablesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetTableVersion struct {
}
func (*validateOpGetTableVersion) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetTableVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetTableVersionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetTableVersionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetTableVersions struct {
}
func (*validateOpGetTableVersions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetTableVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetTableVersionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetTableVersionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetTags struct {
}
func (*validateOpGetTags) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetTags) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetTagsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetTagsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetTrigger struct {
}
func (*validateOpGetTrigger) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetTrigger) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetTriggerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetTriggerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetUnfilteredPartitionMetadata struct {
}
func (*validateOpGetUnfilteredPartitionMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetUnfilteredPartitionMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetUnfilteredPartitionMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetUnfilteredPartitionMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetUnfilteredPartitionsMetadata struct {
}
func (*validateOpGetUnfilteredPartitionsMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetUnfilteredPartitionsMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetUnfilteredPartitionsMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetUnfilteredPartitionsMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetUnfilteredTableMetadata struct {
}
func (*validateOpGetUnfilteredTableMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetUnfilteredTableMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetUnfilteredTableMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetUnfilteredTableMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetUserDefinedFunction struct {
}
func (*validateOpGetUserDefinedFunction) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetUserDefinedFunction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetUserDefinedFunctionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetUserDefinedFunctionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetUserDefinedFunctions struct {
}
func (*validateOpGetUserDefinedFunctions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetUserDefinedFunctions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetUserDefinedFunctionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetUserDefinedFunctionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetWorkflow struct {
}
func (*validateOpGetWorkflow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetWorkflow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetWorkflowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetWorkflowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetWorkflowRun struct {
}
func (*validateOpGetWorkflowRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetWorkflowRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetWorkflowRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetWorkflowRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetWorkflowRunProperties struct {
}
func (*validateOpGetWorkflowRunProperties) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetWorkflowRunProperties) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetWorkflowRunPropertiesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetWorkflowRunPropertiesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpGetWorkflowRuns struct {
}
func (*validateOpGetWorkflowRuns) ID() string {
return "OperationInputValidation"
}
func (m *validateOpGetWorkflowRuns) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*GetWorkflowRunsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpGetWorkflowRunsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListCrawls struct {
}
func (*validateOpListCrawls) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListCrawls) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListCrawlsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListCrawlsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListDataQualityResults struct {
}
func (*validateOpListDataQualityResults) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListDataQualityResults) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListDataQualityResultsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListDataQualityResultsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListDataQualityRuleRecommendationRuns struct {
}
func (*validateOpListDataQualityRuleRecommendationRuns) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListDataQualityRuleRecommendationRuns) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListDataQualityRuleRecommendationRunsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListDataQualityRuleRecommendationRunsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListDataQualityRulesetEvaluationRuns struct {
}
func (*validateOpListDataQualityRulesetEvaluationRuns) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListDataQualityRulesetEvaluationRuns) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListDataQualityRulesetEvaluationRunsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListDataQualityRulesetEvaluationRunsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListDataQualityRulesets struct {
}
func (*validateOpListDataQualityRulesets) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListDataQualityRulesets) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListDataQualityRulesetsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListDataQualityRulesetsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListMLTransforms struct {
}
func (*validateOpListMLTransforms) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListMLTransforms) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListMLTransformsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListMLTransformsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListSchemaVersions struct {
}
func (*validateOpListSchemaVersions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListSchemaVersions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListSchemaVersionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListSchemaVersionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListStatements struct {
}
func (*validateOpListStatements) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListStatements) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListStatementsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListStatementsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutDataCatalogEncryptionSettings struct {
}
func (*validateOpPutDataCatalogEncryptionSettings) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutDataCatalogEncryptionSettings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutDataCatalogEncryptionSettingsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutDataCatalogEncryptionSettingsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutResourcePolicy struct {
}
func (*validateOpPutResourcePolicy) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutResourcePolicy) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutResourcePolicyInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutResourcePolicyInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutSchemaVersionMetadata struct {
}
func (*validateOpPutSchemaVersionMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutSchemaVersionMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutSchemaVersionMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutSchemaVersionMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpPutWorkflowRunProperties struct {
}
func (*validateOpPutWorkflowRunProperties) ID() string {
return "OperationInputValidation"
}
func (m *validateOpPutWorkflowRunProperties) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*PutWorkflowRunPropertiesInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpPutWorkflowRunPropertiesInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRegisterSchemaVersion struct {
}
func (*validateOpRegisterSchemaVersion) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRegisterSchemaVersion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RegisterSchemaVersionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRegisterSchemaVersionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRemoveSchemaVersionMetadata struct {
}
func (*validateOpRemoveSchemaVersionMetadata) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRemoveSchemaVersionMetadata) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RemoveSchemaVersionMetadataInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRemoveSchemaVersionMetadataInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpResetJobBookmark struct {
}
func (*validateOpResetJobBookmark) ID() string {
return "OperationInputValidation"
}
func (m *validateOpResetJobBookmark) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ResetJobBookmarkInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpResetJobBookmarkInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpResumeWorkflowRun struct {
}
func (*validateOpResumeWorkflowRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpResumeWorkflowRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ResumeWorkflowRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpResumeWorkflowRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpRunStatement struct {
}
func (*validateOpRunStatement) ID() string {
return "OperationInputValidation"
}
func (m *validateOpRunStatement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*RunStatementInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpRunStatementInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartBlueprintRun struct {
}
func (*validateOpStartBlueprintRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartBlueprintRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartBlueprintRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartBlueprintRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartCrawler struct {
}
func (*validateOpStartCrawler) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartCrawler) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartCrawlerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartCrawlerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartCrawlerSchedule struct {
}
func (*validateOpStartCrawlerSchedule) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartCrawlerSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartCrawlerScheduleInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartCrawlerScheduleInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartDataQualityRuleRecommendationRun struct {
}
func (*validateOpStartDataQualityRuleRecommendationRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartDataQualityRuleRecommendationRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartDataQualityRuleRecommendationRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartDataQualityRuleRecommendationRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartDataQualityRulesetEvaluationRun struct {
}
func (*validateOpStartDataQualityRulesetEvaluationRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartDataQualityRulesetEvaluationRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartDataQualityRulesetEvaluationRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartDataQualityRulesetEvaluationRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartExportLabelsTaskRun struct {
}
func (*validateOpStartExportLabelsTaskRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartExportLabelsTaskRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartExportLabelsTaskRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartExportLabelsTaskRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartImportLabelsTaskRun struct {
}
func (*validateOpStartImportLabelsTaskRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartImportLabelsTaskRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartImportLabelsTaskRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartImportLabelsTaskRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartJobRun struct {
}
func (*validateOpStartJobRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartJobRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartJobRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartJobRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartMLEvaluationTaskRun struct {
}
func (*validateOpStartMLEvaluationTaskRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartMLEvaluationTaskRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartMLEvaluationTaskRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartMLEvaluationTaskRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartMLLabelingSetGenerationTaskRun struct {
}
func (*validateOpStartMLLabelingSetGenerationTaskRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartMLLabelingSetGenerationTaskRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartMLLabelingSetGenerationTaskRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartMLLabelingSetGenerationTaskRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartTrigger struct {
}
func (*validateOpStartTrigger) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartTrigger) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartTriggerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartTriggerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStartWorkflowRun struct {
}
func (*validateOpStartWorkflowRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStartWorkflowRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StartWorkflowRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStartWorkflowRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStopCrawler struct {
}
func (*validateOpStopCrawler) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStopCrawler) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StopCrawlerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStopCrawlerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStopCrawlerSchedule struct {
}
func (*validateOpStopCrawlerSchedule) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStopCrawlerSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StopCrawlerScheduleInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStopCrawlerScheduleInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStopSession struct {
}
func (*validateOpStopSession) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStopSession) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StopSessionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStopSessionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStopTrigger struct {
}
func (*validateOpStopTrigger) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStopTrigger) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StopTriggerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStopTriggerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpStopWorkflowRun struct {
}
func (*validateOpStopWorkflowRun) ID() string {
return "OperationInputValidation"
}
func (m *validateOpStopWorkflowRun) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*StopWorkflowRunInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpStopWorkflowRunInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpTagResource struct {
}
func (*validateOpTagResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*TagResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpTagResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUntagResource struct {
}
func (*validateOpUntagResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UntagResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUntagResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateBlueprint struct {
}
func (*validateOpUpdateBlueprint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateBlueprint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateBlueprintInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateBlueprintInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateClassifier struct {
}
func (*validateOpUpdateClassifier) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateClassifier) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateClassifierInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateClassifierInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateColumnStatisticsForPartition struct {
}
func (*validateOpUpdateColumnStatisticsForPartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateColumnStatisticsForPartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateColumnStatisticsForPartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateColumnStatisticsForPartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateColumnStatisticsForTable struct {
}
func (*validateOpUpdateColumnStatisticsForTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateColumnStatisticsForTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateColumnStatisticsForTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateColumnStatisticsForTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateConnection struct {
}
func (*validateOpUpdateConnection) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateConnection) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateConnectionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateConnectionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateCrawler struct {
}
func (*validateOpUpdateCrawler) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateCrawler) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateCrawlerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateCrawlerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateCrawlerSchedule struct {
}
func (*validateOpUpdateCrawlerSchedule) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateCrawlerSchedule) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateCrawlerScheduleInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateCrawlerScheduleInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateDatabase struct {
}
func (*validateOpUpdateDatabase) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateDatabase) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateDatabaseInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateDatabaseInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateDataQualityRuleset struct {
}
func (*validateOpUpdateDataQualityRuleset) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateDataQualityRuleset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateDataQualityRulesetInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateDataQualityRulesetInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateDevEndpoint struct {
}
func (*validateOpUpdateDevEndpoint) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateDevEndpoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateDevEndpointInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateDevEndpointInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateJob struct {
}
func (*validateOpUpdateJob) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateJobInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateJobInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateMLTransform struct {
}
func (*validateOpUpdateMLTransform) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateMLTransform) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateMLTransformInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateMLTransformInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdatePartition struct {
}
func (*validateOpUpdatePartition) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdatePartition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdatePartitionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdatePartitionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateRegistry struct {
}
func (*validateOpUpdateRegistry) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateRegistry) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateRegistryInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateRegistryInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateSchema struct {
}
func (*validateOpUpdateSchema) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateSchema) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateSchemaInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateSchemaInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateTable struct {
}
func (*validateOpUpdateTable) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateTable) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateTableInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateTableInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateTrigger struct {
}
func (*validateOpUpdateTrigger) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateTrigger) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateTriggerInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateTriggerInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateUserDefinedFunction struct {
}
func (*validateOpUpdateUserDefinedFunction) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateUserDefinedFunction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateUserDefinedFunctionInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateUserDefinedFunctionInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateWorkflow struct {
}
func (*validateOpUpdateWorkflow) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateWorkflow) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateWorkflowInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateWorkflowInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
func addOpBatchCreatePartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchCreatePartition{}, middleware.After)
}
func addOpBatchDeleteConnectionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchDeleteConnection{}, middleware.After)
}
func addOpBatchDeletePartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchDeletePartition{}, middleware.After)
}
func addOpBatchDeleteTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchDeleteTable{}, middleware.After)
}
func addOpBatchDeleteTableVersionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchDeleteTableVersion{}, middleware.After)
}
func addOpBatchGetBlueprintsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetBlueprints{}, middleware.After)
}
func addOpBatchGetCrawlersValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetCrawlers{}, middleware.After)
}
func addOpBatchGetCustomEntityTypesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetCustomEntityTypes{}, middleware.After)
}
func addOpBatchGetDataQualityResultValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetDataQualityResult{}, middleware.After)
}
func addOpBatchGetDevEndpointsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetDevEndpoints{}, middleware.After)
}
func addOpBatchGetJobsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetJobs{}, middleware.After)
}
func addOpBatchGetPartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetPartition{}, middleware.After)
}
func addOpBatchGetTriggersValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetTriggers{}, middleware.After)
}
func addOpBatchGetWorkflowsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchGetWorkflows{}, middleware.After)
}
func addOpBatchStopJobRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchStopJobRun{}, middleware.After)
}
func addOpBatchUpdatePartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpBatchUpdatePartition{}, middleware.After)
}
func addOpCancelDataQualityRuleRecommendationRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCancelDataQualityRuleRecommendationRun{}, middleware.After)
}
func addOpCancelDataQualityRulesetEvaluationRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCancelDataQualityRulesetEvaluationRun{}, middleware.After)
}
func addOpCancelMLTaskRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCancelMLTaskRun{}, middleware.After)
}
func addOpCancelStatementValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCancelStatement{}, middleware.After)
}
func addOpCheckSchemaVersionValidityValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCheckSchemaVersionValidity{}, middleware.After)
}
func addOpCreateBlueprintValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateBlueprint{}, middleware.After)
}
func addOpCreateClassifierValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateClassifier{}, middleware.After)
}
func addOpCreateConnectionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateConnection{}, middleware.After)
}
func addOpCreateCrawlerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateCrawler{}, middleware.After)
}
func addOpCreateCustomEntityTypeValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateCustomEntityType{}, middleware.After)
}
func addOpCreateDatabaseValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateDatabase{}, middleware.After)
}
func addOpCreateDataQualityRulesetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateDataQualityRuleset{}, middleware.After)
}
func addOpCreateDevEndpointValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateDevEndpoint{}, middleware.After)
}
func addOpCreateJobValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateJob{}, middleware.After)
}
func addOpCreateMLTransformValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateMLTransform{}, middleware.After)
}
func addOpCreatePartitionIndexValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreatePartitionIndex{}, middleware.After)
}
func addOpCreatePartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreatePartition{}, middleware.After)
}
func addOpCreateRegistryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateRegistry{}, middleware.After)
}
func addOpCreateSchemaValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateSchema{}, middleware.After)
}
func addOpCreateScriptValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateScript{}, middleware.After)
}
func addOpCreateSecurityConfigurationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateSecurityConfiguration{}, middleware.After)
}
func addOpCreateSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateSession{}, middleware.After)
}
func addOpCreateTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateTable{}, middleware.After)
}
func addOpCreateTriggerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateTrigger{}, middleware.After)
}
func addOpCreateUserDefinedFunctionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateUserDefinedFunction{}, middleware.After)
}
func addOpCreateWorkflowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateWorkflow{}, middleware.After)
}
func addOpDeleteBlueprintValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteBlueprint{}, middleware.After)
}
func addOpDeleteClassifierValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteClassifier{}, middleware.After)
}
func addOpDeleteColumnStatisticsForPartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteColumnStatisticsForPartition{}, middleware.After)
}
func addOpDeleteColumnStatisticsForTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteColumnStatisticsForTable{}, middleware.After)
}
func addOpDeleteConnectionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteConnection{}, middleware.After)
}
func addOpDeleteCrawlerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteCrawler{}, middleware.After)
}
func addOpDeleteCustomEntityTypeValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteCustomEntityType{}, middleware.After)
}
func addOpDeleteDatabaseValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteDatabase{}, middleware.After)
}
func addOpDeleteDataQualityRulesetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteDataQualityRuleset{}, middleware.After)
}
func addOpDeleteDevEndpointValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteDevEndpoint{}, middleware.After)
}
func addOpDeleteJobValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteJob{}, middleware.After)
}
func addOpDeleteMLTransformValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteMLTransform{}, middleware.After)
}
func addOpDeletePartitionIndexValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeletePartitionIndex{}, middleware.After)
}
func addOpDeletePartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeletePartition{}, middleware.After)
}
func addOpDeleteRegistryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteRegistry{}, middleware.After)
}
func addOpDeleteSchemaValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteSchema{}, middleware.After)
}
func addOpDeleteSchemaVersionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteSchemaVersions{}, middleware.After)
}
func addOpDeleteSecurityConfigurationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteSecurityConfiguration{}, middleware.After)
}
func addOpDeleteSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteSession{}, middleware.After)
}
func addOpDeleteTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteTable{}, middleware.After)
}
func addOpDeleteTableVersionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteTableVersion{}, middleware.After)
}
func addOpDeleteTriggerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteTrigger{}, middleware.After)
}
func addOpDeleteUserDefinedFunctionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteUserDefinedFunction{}, middleware.After)
}
func addOpDeleteWorkflowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteWorkflow{}, middleware.After)
}
func addOpGetBlueprintValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetBlueprint{}, middleware.After)
}
func addOpGetBlueprintRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetBlueprintRun{}, middleware.After)
}
func addOpGetBlueprintRunsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetBlueprintRuns{}, middleware.After)
}
func addOpGetClassifierValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetClassifier{}, middleware.After)
}
func addOpGetColumnStatisticsForPartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetColumnStatisticsForPartition{}, middleware.After)
}
func addOpGetColumnStatisticsForTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetColumnStatisticsForTable{}, middleware.After)
}
func addOpGetConnectionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetConnection{}, middleware.After)
}
func addOpGetCrawlerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetCrawler{}, middleware.After)
}
func addOpGetCustomEntityTypeValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetCustomEntityType{}, middleware.After)
}
func addOpGetDatabaseValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDatabase{}, middleware.After)
}
func addOpGetDataQualityResultValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDataQualityResult{}, middleware.After)
}
func addOpGetDataQualityRuleRecommendationRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDataQualityRuleRecommendationRun{}, middleware.After)
}
func addOpGetDataQualityRulesetEvaluationRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDataQualityRulesetEvaluationRun{}, middleware.After)
}
func addOpGetDataQualityRulesetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDataQualityRuleset{}, middleware.After)
}
func addOpGetDevEndpointValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetDevEndpoint{}, middleware.After)
}
func addOpGetJobBookmarkValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetJobBookmark{}, middleware.After)
}
func addOpGetJobValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetJob{}, middleware.After)
}
func addOpGetJobRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetJobRun{}, middleware.After)
}
func addOpGetJobRunsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetJobRuns{}, middleware.After)
}
func addOpGetMappingValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMapping{}, middleware.After)
}
func addOpGetMLTaskRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMLTaskRun{}, middleware.After)
}
func addOpGetMLTaskRunsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMLTaskRuns{}, middleware.After)
}
func addOpGetMLTransformValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMLTransform{}, middleware.After)
}
func addOpGetMLTransformsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetMLTransforms{}, middleware.After)
}
func addOpGetPartitionIndexesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetPartitionIndexes{}, middleware.After)
}
func addOpGetPartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetPartition{}, middleware.After)
}
func addOpGetPartitionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetPartitions{}, middleware.After)
}
func addOpGetPlanValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetPlan{}, middleware.After)
}
func addOpGetRegistryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetRegistry{}, middleware.After)
}
func addOpGetSchemaByDefinitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetSchemaByDefinition{}, middleware.After)
}
func addOpGetSchemaValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetSchema{}, middleware.After)
}
func addOpGetSchemaVersionsDiffValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetSchemaVersionsDiff{}, middleware.After)
}
func addOpGetSecurityConfigurationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetSecurityConfiguration{}, middleware.After)
}
func addOpGetSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetSession{}, middleware.After)
}
func addOpGetStatementValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetStatement{}, middleware.After)
}
func addOpGetTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetTable{}, middleware.After)
}
func addOpGetTablesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetTables{}, middleware.After)
}
func addOpGetTableVersionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetTableVersion{}, middleware.After)
}
func addOpGetTableVersionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetTableVersions{}, middleware.After)
}
func addOpGetTagsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetTags{}, middleware.After)
}
func addOpGetTriggerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetTrigger{}, middleware.After)
}
func addOpGetUnfilteredPartitionMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetUnfilteredPartitionMetadata{}, middleware.After)
}
func addOpGetUnfilteredPartitionsMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetUnfilteredPartitionsMetadata{}, middleware.After)
}
func addOpGetUnfilteredTableMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetUnfilteredTableMetadata{}, middleware.After)
}
func addOpGetUserDefinedFunctionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetUserDefinedFunction{}, middleware.After)
}
func addOpGetUserDefinedFunctionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetUserDefinedFunctions{}, middleware.After)
}
func addOpGetWorkflowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetWorkflow{}, middleware.After)
}
func addOpGetWorkflowRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetWorkflowRun{}, middleware.After)
}
func addOpGetWorkflowRunPropertiesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetWorkflowRunProperties{}, middleware.After)
}
func addOpGetWorkflowRunsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpGetWorkflowRuns{}, middleware.After)
}
func addOpListCrawlsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListCrawls{}, middleware.After)
}
func addOpListDataQualityResultsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListDataQualityResults{}, middleware.After)
}
func addOpListDataQualityRuleRecommendationRunsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListDataQualityRuleRecommendationRuns{}, middleware.After)
}
func addOpListDataQualityRulesetEvaluationRunsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListDataQualityRulesetEvaluationRuns{}, middleware.After)
}
func addOpListDataQualityRulesetsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListDataQualityRulesets{}, middleware.After)
}
func addOpListMLTransformsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListMLTransforms{}, middleware.After)
}
func addOpListSchemaVersionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListSchemaVersions{}, middleware.After)
}
func addOpListStatementsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListStatements{}, middleware.After)
}
func addOpPutDataCatalogEncryptionSettingsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutDataCatalogEncryptionSettings{}, middleware.After)
}
func addOpPutResourcePolicyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutResourcePolicy{}, middleware.After)
}
func addOpPutSchemaVersionMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutSchemaVersionMetadata{}, middleware.After)
}
func addOpPutWorkflowRunPropertiesValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpPutWorkflowRunProperties{}, middleware.After)
}
func addOpRegisterSchemaVersionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRegisterSchemaVersion{}, middleware.After)
}
func addOpRemoveSchemaVersionMetadataValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRemoveSchemaVersionMetadata{}, middleware.After)
}
func addOpResetJobBookmarkValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpResetJobBookmark{}, middleware.After)
}
func addOpResumeWorkflowRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpResumeWorkflowRun{}, middleware.After)
}
func addOpRunStatementValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpRunStatement{}, middleware.After)
}
func addOpStartBlueprintRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartBlueprintRun{}, middleware.After)
}
func addOpStartCrawlerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartCrawler{}, middleware.After)
}
func addOpStartCrawlerScheduleValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartCrawlerSchedule{}, middleware.After)
}
func addOpStartDataQualityRuleRecommendationRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartDataQualityRuleRecommendationRun{}, middleware.After)
}
func addOpStartDataQualityRulesetEvaluationRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartDataQualityRulesetEvaluationRun{}, middleware.After)
}
func addOpStartExportLabelsTaskRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartExportLabelsTaskRun{}, middleware.After)
}
func addOpStartImportLabelsTaskRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartImportLabelsTaskRun{}, middleware.After)
}
func addOpStartJobRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartJobRun{}, middleware.After)
}
func addOpStartMLEvaluationTaskRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartMLEvaluationTaskRun{}, middleware.After)
}
func addOpStartMLLabelingSetGenerationTaskRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartMLLabelingSetGenerationTaskRun{}, middleware.After)
}
func addOpStartTriggerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartTrigger{}, middleware.After)
}
func addOpStartWorkflowRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStartWorkflowRun{}, middleware.After)
}
func addOpStopCrawlerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStopCrawler{}, middleware.After)
}
func addOpStopCrawlerScheduleValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStopCrawlerSchedule{}, middleware.After)
}
func addOpStopSessionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStopSession{}, middleware.After)
}
func addOpStopTriggerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStopTrigger{}, middleware.After)
}
func addOpStopWorkflowRunValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpStopWorkflowRun{}, middleware.After)
}
func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpTagResource{}, middleware.After)
}
func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After)
}
func addOpUpdateBlueprintValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateBlueprint{}, middleware.After)
}
func addOpUpdateClassifierValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateClassifier{}, middleware.After)
}
func addOpUpdateColumnStatisticsForPartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateColumnStatisticsForPartition{}, middleware.After)
}
func addOpUpdateColumnStatisticsForTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateColumnStatisticsForTable{}, middleware.After)
}
func addOpUpdateConnectionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateConnection{}, middleware.After)
}
func addOpUpdateCrawlerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateCrawler{}, middleware.After)
}
func addOpUpdateCrawlerScheduleValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateCrawlerSchedule{}, middleware.After)
}
func addOpUpdateDatabaseValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateDatabase{}, middleware.After)
}
func addOpUpdateDataQualityRulesetValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateDataQualityRuleset{}, middleware.After)
}
func addOpUpdateDevEndpointValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateDevEndpoint{}, middleware.After)
}
func addOpUpdateJobValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateJob{}, middleware.After)
}
func addOpUpdateMLTransformValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateMLTransform{}, middleware.After)
}
func addOpUpdatePartitionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdatePartition{}, middleware.After)
}
func addOpUpdateRegistryValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateRegistry{}, middleware.After)
}
func addOpUpdateSchemaValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateSchema{}, middleware.After)
}
func addOpUpdateTableValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateTable{}, middleware.After)
}
func addOpUpdateTriggerValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateTrigger{}, middleware.After)
}
func addOpUpdateUserDefinedFunctionValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateUserDefinedFunction{}, middleware.After)
}
func addOpUpdateWorkflowValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateWorkflow{}, middleware.After)
}
func validateAggregate(v *types.Aggregate) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Aggregate"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Groups == nil {
invalidParams.Add(smithy.NewErrParamRequired("Groups"))
}
if v.Aggs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Aggs"))
} else if v.Aggs != nil {
if err := validateAggregateOperations(v.Aggs); err != nil {
invalidParams.AddNested("Aggs", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAggregateOperation(v *types.AggregateOperation) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AggregateOperation"}
if v.Column == nil {
invalidParams.Add(smithy.NewErrParamRequired("Column"))
}
if len(v.AggFunc) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("AggFunc"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAggregateOperations(v []types.AggregateOperation) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AggregateOperations"}
for i := range v {
if err := validateAggregateOperation(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateApplyMapping(v *types.ApplyMapping) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ApplyMapping"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Mapping == nil {
invalidParams.Add(smithy.NewErrParamRequired("Mapping"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateAthenaConnectorSource(v *types.AthenaConnectorSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AthenaConnectorSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.ConnectionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionName"))
}
if v.ConnectorName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectorName"))
}
if v.ConnectionType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionType"))
}
if v.SchemaName == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaName"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBasicCatalogTarget(v *types.BasicCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BasicCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBatchDeletePartitionValueList(v []types.PartitionValueList) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchDeletePartitionValueList"}
for i := range v {
if err := validatePartitionValueList(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBatchGetPartitionValueList(v []types.PartitionValueList) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetPartitionValueList"}
for i := range v {
if err := validatePartitionValueList(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBatchUpdatePartitionRequestEntry(v *types.BatchUpdatePartitionRequestEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchUpdatePartitionRequestEntry"}
if v.PartitionValueList == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValueList"))
}
if v.PartitionInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionInput"))
} else if v.PartitionInput != nil {
if err := validatePartitionInput(v.PartitionInput); err != nil {
invalidParams.AddNested("PartitionInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBatchUpdatePartitionRequestEntryList(v []types.BatchUpdatePartitionRequestEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchUpdatePartitionRequestEntryList"}
for i := range v {
if err := validateBatchUpdatePartitionRequestEntry(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBinaryColumnStatisticsData(v *types.BinaryColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BinaryColumnStatisticsData"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateBooleanColumnStatisticsData(v *types.BooleanColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BooleanColumnStatisticsData"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogDeltaSource(v *types.CatalogDeltaSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogDeltaSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogEntries(v []types.CatalogEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogEntries"}
for i := range v {
if err := validateCatalogEntry(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogEntry(v *types.CatalogEntry) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogEntry"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogHudiSource(v *types.CatalogHudiSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogHudiSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogKafkaSource(v *types.CatalogKafkaSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogKafkaSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogKinesisSource(v *types.CatalogKinesisSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogKinesisSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogSource(v *types.CatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogTarget(v *types.CatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogTarget"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.Tables == nil {
invalidParams.Add(smithy.NewErrParamRequired("Tables"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCatalogTargetList(v []types.CatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CatalogTargetList"}
for i := range v {
if err := validateCatalogTarget(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCodeGenConfigurationNode(v *types.CodeGenConfigurationNode) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CodeGenConfigurationNode"}
if v.AthenaConnectorSource != nil {
if err := validateAthenaConnectorSource(v.AthenaConnectorSource); err != nil {
invalidParams.AddNested("AthenaConnectorSource", err.(smithy.InvalidParamsError))
}
}
if v.JDBCConnectorSource != nil {
if err := validateJDBCConnectorSource(v.JDBCConnectorSource); err != nil {
invalidParams.AddNested("JDBCConnectorSource", err.(smithy.InvalidParamsError))
}
}
if v.SparkConnectorSource != nil {
if err := validateSparkConnectorSource(v.SparkConnectorSource); err != nil {
invalidParams.AddNested("SparkConnectorSource", err.(smithy.InvalidParamsError))
}
}
if v.CatalogSource != nil {
if err := validateCatalogSource(v.CatalogSource); err != nil {
invalidParams.AddNested("CatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.RedshiftSource != nil {
if err := validateRedshiftSource(v.RedshiftSource); err != nil {
invalidParams.AddNested("RedshiftSource", err.(smithy.InvalidParamsError))
}
}
if v.S3CatalogSource != nil {
if err := validateS3CatalogSource(v.S3CatalogSource); err != nil {
invalidParams.AddNested("S3CatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.S3CsvSource != nil {
if err := validateS3CsvSource(v.S3CsvSource); err != nil {
invalidParams.AddNested("S3CsvSource", err.(smithy.InvalidParamsError))
}
}
if v.S3JsonSource != nil {
if err := validateS3JsonSource(v.S3JsonSource); err != nil {
invalidParams.AddNested("S3JsonSource", err.(smithy.InvalidParamsError))
}
}
if v.S3ParquetSource != nil {
if err := validateS3ParquetSource(v.S3ParquetSource); err != nil {
invalidParams.AddNested("S3ParquetSource", err.(smithy.InvalidParamsError))
}
}
if v.RelationalCatalogSource != nil {
if err := validateRelationalCatalogSource(v.RelationalCatalogSource); err != nil {
invalidParams.AddNested("RelationalCatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.DynamoDBCatalogSource != nil {
if err := validateDynamoDBCatalogSource(v.DynamoDBCatalogSource); err != nil {
invalidParams.AddNested("DynamoDBCatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.JDBCConnectorTarget != nil {
if err := validateJDBCConnectorTarget(v.JDBCConnectorTarget); err != nil {
invalidParams.AddNested("JDBCConnectorTarget", err.(smithy.InvalidParamsError))
}
}
if v.SparkConnectorTarget != nil {
if err := validateSparkConnectorTarget(v.SparkConnectorTarget); err != nil {
invalidParams.AddNested("SparkConnectorTarget", err.(smithy.InvalidParamsError))
}
}
if v.CatalogTarget != nil {
if err := validateBasicCatalogTarget(v.CatalogTarget); err != nil {
invalidParams.AddNested("CatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.RedshiftTarget != nil {
if err := validateRedshiftTarget(v.RedshiftTarget); err != nil {
invalidParams.AddNested("RedshiftTarget", err.(smithy.InvalidParamsError))
}
}
if v.S3CatalogTarget != nil {
if err := validateS3CatalogTarget(v.S3CatalogTarget); err != nil {
invalidParams.AddNested("S3CatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.S3GlueParquetTarget != nil {
if err := validateS3GlueParquetTarget(v.S3GlueParquetTarget); err != nil {
invalidParams.AddNested("S3GlueParquetTarget", err.(smithy.InvalidParamsError))
}
}
if v.S3DirectTarget != nil {
if err := validateS3DirectTarget(v.S3DirectTarget); err != nil {
invalidParams.AddNested("S3DirectTarget", err.(smithy.InvalidParamsError))
}
}
if v.ApplyMapping != nil {
if err := validateApplyMapping(v.ApplyMapping); err != nil {
invalidParams.AddNested("ApplyMapping", err.(smithy.InvalidParamsError))
}
}
if v.SelectFields != nil {
if err := validateSelectFields(v.SelectFields); err != nil {
invalidParams.AddNested("SelectFields", err.(smithy.InvalidParamsError))
}
}
if v.DropFields != nil {
if err := validateDropFields(v.DropFields); err != nil {
invalidParams.AddNested("DropFields", err.(smithy.InvalidParamsError))
}
}
if v.RenameField != nil {
if err := validateRenameField(v.RenameField); err != nil {
invalidParams.AddNested("RenameField", err.(smithy.InvalidParamsError))
}
}
if v.Spigot != nil {
if err := validateSpigot(v.Spigot); err != nil {
invalidParams.AddNested("Spigot", err.(smithy.InvalidParamsError))
}
}
if v.Join != nil {
if err := validateJoin(v.Join); err != nil {
invalidParams.AddNested("Join", err.(smithy.InvalidParamsError))
}
}
if v.SplitFields != nil {
if err := validateSplitFields(v.SplitFields); err != nil {
invalidParams.AddNested("SplitFields", err.(smithy.InvalidParamsError))
}
}
if v.SelectFromCollection != nil {
if err := validateSelectFromCollection(v.SelectFromCollection); err != nil {
invalidParams.AddNested("SelectFromCollection", err.(smithy.InvalidParamsError))
}
}
if v.FillMissingValues != nil {
if err := validateFillMissingValues(v.FillMissingValues); err != nil {
invalidParams.AddNested("FillMissingValues", err.(smithy.InvalidParamsError))
}
}
if v.Filter != nil {
if err := validateFilter(v.Filter); err != nil {
invalidParams.AddNested("Filter", err.(smithy.InvalidParamsError))
}
}
if v.CustomCode != nil {
if err := validateCustomCode(v.CustomCode); err != nil {
invalidParams.AddNested("CustomCode", err.(smithy.InvalidParamsError))
}
}
if v.SparkSQL != nil {
if err := validateSparkSQL(v.SparkSQL); err != nil {
invalidParams.AddNested("SparkSQL", err.(smithy.InvalidParamsError))
}
}
if v.DirectKinesisSource != nil {
if err := validateDirectKinesisSource(v.DirectKinesisSource); err != nil {
invalidParams.AddNested("DirectKinesisSource", err.(smithy.InvalidParamsError))
}
}
if v.DirectKafkaSource != nil {
if err := validateDirectKafkaSource(v.DirectKafkaSource); err != nil {
invalidParams.AddNested("DirectKafkaSource", err.(smithy.InvalidParamsError))
}
}
if v.CatalogKinesisSource != nil {
if err := validateCatalogKinesisSource(v.CatalogKinesisSource); err != nil {
invalidParams.AddNested("CatalogKinesisSource", err.(smithy.InvalidParamsError))
}
}
if v.CatalogKafkaSource != nil {
if err := validateCatalogKafkaSource(v.CatalogKafkaSource); err != nil {
invalidParams.AddNested("CatalogKafkaSource", err.(smithy.InvalidParamsError))
}
}
if v.DropNullFields != nil {
if err := validateDropNullFields(v.DropNullFields); err != nil {
invalidParams.AddNested("DropNullFields", err.(smithy.InvalidParamsError))
}
}
if v.Merge != nil {
if err := validateMerge(v.Merge); err != nil {
invalidParams.AddNested("Merge", err.(smithy.InvalidParamsError))
}
}
if v.Union != nil {
if err := validateUnion(v.Union); err != nil {
invalidParams.AddNested("Union", err.(smithy.InvalidParamsError))
}
}
if v.PIIDetection != nil {
if err := validatePIIDetection(v.PIIDetection); err != nil {
invalidParams.AddNested("PIIDetection", err.(smithy.InvalidParamsError))
}
}
if v.Aggregate != nil {
if err := validateAggregate(v.Aggregate); err != nil {
invalidParams.AddNested("Aggregate", err.(smithy.InvalidParamsError))
}
}
if v.DropDuplicates != nil {
if err := validateDropDuplicates(v.DropDuplicates); err != nil {
invalidParams.AddNested("DropDuplicates", err.(smithy.InvalidParamsError))
}
}
if v.GovernedCatalogTarget != nil {
if err := validateGovernedCatalogTarget(v.GovernedCatalogTarget); err != nil {
invalidParams.AddNested("GovernedCatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.GovernedCatalogSource != nil {
if err := validateGovernedCatalogSource(v.GovernedCatalogSource); err != nil {
invalidParams.AddNested("GovernedCatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.MicrosoftSQLServerCatalogSource != nil {
if err := validateMicrosoftSQLServerCatalogSource(v.MicrosoftSQLServerCatalogSource); err != nil {
invalidParams.AddNested("MicrosoftSQLServerCatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.MySQLCatalogSource != nil {
if err := validateMySQLCatalogSource(v.MySQLCatalogSource); err != nil {
invalidParams.AddNested("MySQLCatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.OracleSQLCatalogSource != nil {
if err := validateOracleSQLCatalogSource(v.OracleSQLCatalogSource); err != nil {
invalidParams.AddNested("OracleSQLCatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.PostgreSQLCatalogSource != nil {
if err := validatePostgreSQLCatalogSource(v.PostgreSQLCatalogSource); err != nil {
invalidParams.AddNested("PostgreSQLCatalogSource", err.(smithy.InvalidParamsError))
}
}
if v.MicrosoftSQLServerCatalogTarget != nil {
if err := validateMicrosoftSQLServerCatalogTarget(v.MicrosoftSQLServerCatalogTarget); err != nil {
invalidParams.AddNested("MicrosoftSQLServerCatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.MySQLCatalogTarget != nil {
if err := validateMySQLCatalogTarget(v.MySQLCatalogTarget); err != nil {
invalidParams.AddNested("MySQLCatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.OracleSQLCatalogTarget != nil {
if err := validateOracleSQLCatalogTarget(v.OracleSQLCatalogTarget); err != nil {
invalidParams.AddNested("OracleSQLCatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.PostgreSQLCatalogTarget != nil {
if err := validatePostgreSQLCatalogTarget(v.PostgreSQLCatalogTarget); err != nil {
invalidParams.AddNested("PostgreSQLCatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.DynamicTransform != nil {
if err := validateDynamicTransform(v.DynamicTransform); err != nil {
invalidParams.AddNested("DynamicTransform", err.(smithy.InvalidParamsError))
}
}
if v.EvaluateDataQuality != nil {
if err := validateEvaluateDataQuality(v.EvaluateDataQuality); err != nil {
invalidParams.AddNested("EvaluateDataQuality", err.(smithy.InvalidParamsError))
}
}
if v.S3CatalogHudiSource != nil {
if err := validateS3CatalogHudiSource(v.S3CatalogHudiSource); err != nil {
invalidParams.AddNested("S3CatalogHudiSource", err.(smithy.InvalidParamsError))
}
}
if v.CatalogHudiSource != nil {
if err := validateCatalogHudiSource(v.CatalogHudiSource); err != nil {
invalidParams.AddNested("CatalogHudiSource", err.(smithy.InvalidParamsError))
}
}
if v.S3HudiSource != nil {
if err := validateS3HudiSource(v.S3HudiSource); err != nil {
invalidParams.AddNested("S3HudiSource", err.(smithy.InvalidParamsError))
}
}
if v.S3HudiCatalogTarget != nil {
if err := validateS3HudiCatalogTarget(v.S3HudiCatalogTarget); err != nil {
invalidParams.AddNested("S3HudiCatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.S3HudiDirectTarget != nil {
if err := validateS3HudiDirectTarget(v.S3HudiDirectTarget); err != nil {
invalidParams.AddNested("S3HudiDirectTarget", err.(smithy.InvalidParamsError))
}
}
if v.DirectJDBCSource != nil {
if err := validateDirectJDBCSource(v.DirectJDBCSource); err != nil {
invalidParams.AddNested("DirectJDBCSource", err.(smithy.InvalidParamsError))
}
}
if v.S3CatalogDeltaSource != nil {
if err := validateS3CatalogDeltaSource(v.S3CatalogDeltaSource); err != nil {
invalidParams.AddNested("S3CatalogDeltaSource", err.(smithy.InvalidParamsError))
}
}
if v.CatalogDeltaSource != nil {
if err := validateCatalogDeltaSource(v.CatalogDeltaSource); err != nil {
invalidParams.AddNested("CatalogDeltaSource", err.(smithy.InvalidParamsError))
}
}
if v.S3DeltaSource != nil {
if err := validateS3DeltaSource(v.S3DeltaSource); err != nil {
invalidParams.AddNested("S3DeltaSource", err.(smithy.InvalidParamsError))
}
}
if v.S3DeltaCatalogTarget != nil {
if err := validateS3DeltaCatalogTarget(v.S3DeltaCatalogTarget); err != nil {
invalidParams.AddNested("S3DeltaCatalogTarget", err.(smithy.InvalidParamsError))
}
}
if v.S3DeltaDirectTarget != nil {
if err := validateS3DeltaDirectTarget(v.S3DeltaDirectTarget); err != nil {
invalidParams.AddNested("S3DeltaDirectTarget", err.(smithy.InvalidParamsError))
}
}
if v.EvaluateDataQualityMultiFrame != nil {
if err := validateEvaluateDataQualityMultiFrame(v.EvaluateDataQualityMultiFrame); err != nil {
invalidParams.AddNested("EvaluateDataQualityMultiFrame", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCodeGenConfigurationNodes(v map[string]types.CodeGenConfigurationNode) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CodeGenConfigurationNodes"}
for key := range v {
value := v[key]
if err := validateCodeGenConfigurationNode(&value); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCodeGenEdge(v *types.CodeGenEdge) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CodeGenEdge"}
if v.Source == nil {
invalidParams.Add(smithy.NewErrParamRequired("Source"))
}
if v.Target == nil {
invalidParams.Add(smithy.NewErrParamRequired("Target"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCodeGenNode(v *types.CodeGenNode) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CodeGenNode"}
if v.Id == nil {
invalidParams.Add(smithy.NewErrParamRequired("Id"))
}
if v.NodeType == nil {
invalidParams.Add(smithy.NewErrParamRequired("NodeType"))
}
if v.Args == nil {
invalidParams.Add(smithy.NewErrParamRequired("Args"))
} else if v.Args != nil {
if err := validateCodeGenNodeArgs(v.Args); err != nil {
invalidParams.AddNested("Args", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCodeGenNodeArg(v *types.CodeGenNodeArg) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CodeGenNodeArg"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCodeGenNodeArgs(v []types.CodeGenNodeArg) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CodeGenNodeArgs"}
for i := range v {
if err := validateCodeGenNodeArg(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateColumn(v *types.Column) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Column"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateColumnList(v []types.Column) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ColumnList"}
for i := range v {
if err := validateColumn(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateColumnStatistics(v *types.ColumnStatistics) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ColumnStatistics"}
if v.ColumnName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnName"))
}
if v.ColumnType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnType"))
}
if v.AnalyzedTime == nil {
invalidParams.Add(smithy.NewErrParamRequired("AnalyzedTime"))
}
if v.StatisticsData == nil {
invalidParams.Add(smithy.NewErrParamRequired("StatisticsData"))
} else if v.StatisticsData != nil {
if err := validateColumnStatisticsData(v.StatisticsData); err != nil {
invalidParams.AddNested("StatisticsData", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateColumnStatisticsData(v *types.ColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ColumnStatisticsData"}
if len(v.Type) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Type"))
}
if v.BooleanColumnStatisticsData != nil {
if err := validateBooleanColumnStatisticsData(v.BooleanColumnStatisticsData); err != nil {
invalidParams.AddNested("BooleanColumnStatisticsData", err.(smithy.InvalidParamsError))
}
}
if v.DateColumnStatisticsData != nil {
if err := validateDateColumnStatisticsData(v.DateColumnStatisticsData); err != nil {
invalidParams.AddNested("DateColumnStatisticsData", err.(smithy.InvalidParamsError))
}
}
if v.DecimalColumnStatisticsData != nil {
if err := validateDecimalColumnStatisticsData(v.DecimalColumnStatisticsData); err != nil {
invalidParams.AddNested("DecimalColumnStatisticsData", err.(smithy.InvalidParamsError))
}
}
if v.DoubleColumnStatisticsData != nil {
if err := validateDoubleColumnStatisticsData(v.DoubleColumnStatisticsData); err != nil {
invalidParams.AddNested("DoubleColumnStatisticsData", err.(smithy.InvalidParamsError))
}
}
if v.LongColumnStatisticsData != nil {
if err := validateLongColumnStatisticsData(v.LongColumnStatisticsData); err != nil {
invalidParams.AddNested("LongColumnStatisticsData", err.(smithy.InvalidParamsError))
}
}
if v.StringColumnStatisticsData != nil {
if err := validateStringColumnStatisticsData(v.StringColumnStatisticsData); err != nil {
invalidParams.AddNested("StringColumnStatisticsData", err.(smithy.InvalidParamsError))
}
}
if v.BinaryColumnStatisticsData != nil {
if err := validateBinaryColumnStatisticsData(v.BinaryColumnStatisticsData); err != nil {
invalidParams.AddNested("BinaryColumnStatisticsData", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateConnectionInput(v *types.ConnectionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ConnectionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if len(v.ConnectionType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionType"))
}
if v.ConnectionProperties == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionProperties"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateConnectionPasswordEncryption(v *types.ConnectionPasswordEncryption) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ConnectionPasswordEncryption"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCrawlerTargets(v *types.CrawlerTargets) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CrawlerTargets"}
if v.CatalogTargets != nil {
if err := validateCatalogTargetList(v.CatalogTargets); err != nil {
invalidParams.AddNested("CatalogTargets", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCreateCsvClassifierRequest(v *types.CreateCsvClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateCsvClassifierRequest"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCreateGrokClassifierRequest(v *types.CreateGrokClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateGrokClassifierRequest"}
if v.Classification == nil {
invalidParams.Add(smithy.NewErrParamRequired("Classification"))
}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.GrokPattern == nil {
invalidParams.Add(smithy.NewErrParamRequired("GrokPattern"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCreateJsonClassifierRequest(v *types.CreateJsonClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateJsonClassifierRequest"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.JsonPath == nil {
invalidParams.Add(smithy.NewErrParamRequired("JsonPath"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCreateXMLClassifierRequest(v *types.CreateXMLClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateXMLClassifierRequest"}
if v.Classification == nil {
invalidParams.Add(smithy.NewErrParamRequired("Classification"))
}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateCustomCode(v *types.CustomCode) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CustomCode"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Code == nil {
invalidParams.Add(smithy.NewErrParamRequired("Code"))
}
if v.ClassName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ClassName"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDagEdges(v []types.CodeGenEdge) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DagEdges"}
for i := range v {
if err := validateCodeGenEdge(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDagNodes(v []types.CodeGenNode) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DagNodes"}
for i := range v {
if err := validateCodeGenNode(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDatabaseInput(v *types.DatabaseInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DatabaseInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataCatalogEncryptionSettings(v *types.DataCatalogEncryptionSettings) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataCatalogEncryptionSettings"}
if v.EncryptionAtRest != nil {
if err := validateEncryptionAtRest(v.EncryptionAtRest); err != nil {
invalidParams.AddNested("EncryptionAtRest", err.(smithy.InvalidParamsError))
}
}
if v.ConnectionPasswordEncryption != nil {
if err := validateConnectionPasswordEncryption(v.ConnectionPasswordEncryption); err != nil {
invalidParams.AddNested("ConnectionPasswordEncryption", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataQualityResultFilterCriteria(v *types.DataQualityResultFilterCriteria) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataQualityResultFilterCriteria"}
if v.DataSource != nil {
if err := validateDataSource(v.DataSource); err != nil {
invalidParams.AddNested("DataSource", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataQualityRuleRecommendationRunFilter(v *types.DataQualityRuleRecommendationRunFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataQualityRuleRecommendationRunFilter"}
if v.DataSource == nil {
invalidParams.Add(smithy.NewErrParamRequired("DataSource"))
} else if v.DataSource != nil {
if err := validateDataSource(v.DataSource); err != nil {
invalidParams.AddNested("DataSource", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataQualityRulesetEvaluationRunFilter(v *types.DataQualityRulesetEvaluationRunFilter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataQualityRulesetEvaluationRunFilter"}
if v.DataSource == nil {
invalidParams.Add(smithy.NewErrParamRequired("DataSource"))
} else if v.DataSource != nil {
if err := validateDataSource(v.DataSource); err != nil {
invalidParams.AddNested("DataSource", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataQualityRulesetFilterCriteria(v *types.DataQualityRulesetFilterCriteria) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataQualityRulesetFilterCriteria"}
if v.TargetTable != nil {
if err := validateDataQualityTargetTable(v.TargetTable); err != nil {
invalidParams.AddNested("TargetTable", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataQualityTargetTable(v *types.DataQualityTargetTable) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataQualityTargetTable"}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataSource(v *types.DataSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataSource"}
if v.GlueTable == nil {
invalidParams.Add(smithy.NewErrParamRequired("GlueTable"))
} else if v.GlueTable != nil {
if err := validateGlueTable(v.GlueTable); err != nil {
invalidParams.AddNested("GlueTable", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDataSourceMap(v map[string]types.DataSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DataSourceMap"}
for key := range v {
value := v[key]
if err := validateDataSource(&value); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%q]", key), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDatatype(v *types.Datatype) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Datatype"}
if v.Id == nil {
invalidParams.Add(smithy.NewErrParamRequired("Id"))
}
if v.Label == nil {
invalidParams.Add(smithy.NewErrParamRequired("Label"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDateColumnStatisticsData(v *types.DateColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DateColumnStatisticsData"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDecimalColumnStatisticsData(v *types.DecimalColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DecimalColumnStatisticsData"}
if v.MinimumValue != nil {
if err := validateDecimalNumber(v.MinimumValue); err != nil {
invalidParams.AddNested("MinimumValue", err.(smithy.InvalidParamsError))
}
}
if v.MaximumValue != nil {
if err := validateDecimalNumber(v.MaximumValue); err != nil {
invalidParams.AddNested("MaximumValue", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDecimalNumber(v *types.DecimalNumber) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DecimalNumber"}
if v.UnscaledValue == nil {
invalidParams.Add(smithy.NewErrParamRequired("UnscaledValue"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDirectJDBCSource(v *types.DirectJDBCSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DirectJDBCSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.ConnectionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionName"))
}
if len(v.ConnectionType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDirectKafkaSource(v *types.DirectKafkaSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DirectKafkaSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDirectKinesisSource(v *types.DirectKinesisSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DirectKinesisSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDoubleColumnStatisticsData(v *types.DoubleColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DoubleColumnStatisticsData"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDropDuplicates(v *types.DropDuplicates) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DropDuplicates"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDropFields(v *types.DropFields) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DropFields"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDropNullFields(v *types.DropNullFields) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DropNullFields"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.NullTextList != nil {
if err := validateNullValueFields(v.NullTextList); err != nil {
invalidParams.AddNested("NullTextList", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDynamicTransform(v *types.DynamicTransform) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DynamicTransform"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.TransformName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformName"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Parameters != nil {
if err := validateTransformConfigParameterList(v.Parameters); err != nil {
invalidParams.AddNested("Parameters", err.(smithy.InvalidParamsError))
}
}
if v.FunctionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("FunctionName"))
}
if v.Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("Path"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateDynamoDBCatalogSource(v *types.DynamoDBCatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DynamoDBCatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateEncryptionAtRest(v *types.EncryptionAtRest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "EncryptionAtRest"}
if len(v.CatalogEncryptionMode) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("CatalogEncryptionMode"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateEvaluateDataQuality(v *types.EvaluateDataQuality) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "EvaluateDataQuality"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Ruleset == nil {
invalidParams.Add(smithy.NewErrParamRequired("Ruleset"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateEvaluateDataQualityMultiFrame(v *types.EvaluateDataQualityMultiFrame) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "EvaluateDataQualityMultiFrame"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Ruleset == nil {
invalidParams.Add(smithy.NewErrParamRequired("Ruleset"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateEventBatchingCondition(v *types.EventBatchingCondition) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "EventBatchingCondition"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateFillMissingValues(v *types.FillMissingValues) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "FillMissingValues"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.ImputedPath == nil {
invalidParams.Add(smithy.NewErrParamRequired("ImputedPath"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateFilter(v *types.Filter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Filter"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if len(v.LogicalOperator) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("LogicalOperator"))
}
if v.Filters == nil {
invalidParams.Add(smithy.NewErrParamRequired("Filters"))
} else if v.Filters != nil {
if err := validateFilterExpressions(v.Filters); err != nil {
invalidParams.AddNested("Filters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateFilterExpression(v *types.FilterExpression) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "FilterExpression"}
if len(v.Operation) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Operation"))
}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
} else if v.Values != nil {
if err := validateFilterValues(v.Values); err != nil {
invalidParams.AddNested("Values", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateFilterExpressions(v []types.FilterExpression) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "FilterExpressions"}
for i := range v {
if err := validateFilterExpression(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateFilterValue(v *types.FilterValue) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "FilterValue"}
if len(v.Type) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Type"))
}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateFilterValues(v []types.FilterValue) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "FilterValues"}
for i := range v {
if err := validateFilterValue(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGlueSchema(v *types.GlueSchema) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GlueSchema"}
if v.Columns != nil {
if err := validateGlueStudioSchemaColumnList(v.Columns); err != nil {
invalidParams.AddNested("Columns", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGlueSchemas(v []types.GlueSchema) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GlueSchemas"}
for i := range v {
if err := validateGlueSchema(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGlueStudioSchemaColumn(v *types.GlueStudioSchemaColumn) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GlueStudioSchemaColumn"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGlueStudioSchemaColumnList(v []types.GlueStudioSchemaColumn) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GlueStudioSchemaColumnList"}
for i := range v {
if err := validateGlueStudioSchemaColumn(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGlueTable(v *types.GlueTable) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GlueTable"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGlueTables(v []types.GlueTable) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GlueTables"}
for i := range v {
if err := validateGlueTable(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGovernedCatalogSource(v *types.GovernedCatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GovernedCatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateGovernedCatalogTarget(v *types.GovernedCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GovernedCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateJDBCConnectorSource(v *types.JDBCConnectorSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "JDBCConnectorSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.ConnectionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionName"))
}
if v.ConnectorName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectorName"))
}
if v.ConnectionType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionType"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateJDBCConnectorTarget(v *types.JDBCConnectorTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "JDBCConnectorTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.ConnectionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionName"))
}
if v.ConnectionTable == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionTable"))
}
if v.ConnectorName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectorName"))
}
if v.ConnectionType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionType"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateJobUpdate(v *types.JobUpdate) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "JobUpdate"}
if v.CodeGenConfigurationNodes != nil {
if err := validateCodeGenConfigurationNodes(v.CodeGenConfigurationNodes); err != nil {
invalidParams.AddNested("CodeGenConfigurationNodes", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateJoin(v *types.Join) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Join"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if len(v.JoinType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("JoinType"))
}
if v.Columns == nil {
invalidParams.Add(smithy.NewErrParamRequired("Columns"))
} else if v.Columns != nil {
if err := validateJoinColumns(v.Columns); err != nil {
invalidParams.AddNested("Columns", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateJoinColumn(v *types.JoinColumn) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "JoinColumn"}
if v.From == nil {
invalidParams.Add(smithy.NewErrParamRequired("From"))
}
if v.Keys == nil {
invalidParams.Add(smithy.NewErrParamRequired("Keys"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateJoinColumns(v []types.JoinColumn) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "JoinColumns"}
for i := range v {
if err := validateJoinColumn(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateLocation(v *types.Location) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Location"}
if v.Jdbc != nil {
if err := validateCodeGenNodeArgs(v.Jdbc); err != nil {
invalidParams.AddNested("Jdbc", err.(smithy.InvalidParamsError))
}
}
if v.S3 != nil {
if err := validateCodeGenNodeArgs(v.S3); err != nil {
invalidParams.AddNested("S3", err.(smithy.InvalidParamsError))
}
}
if v.DynamoDB != nil {
if err := validateCodeGenNodeArgs(v.DynamoDB); err != nil {
invalidParams.AddNested("DynamoDB", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateLongColumnStatisticsData(v *types.LongColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "LongColumnStatisticsData"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateMerge(v *types.Merge) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Merge"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Source == nil {
invalidParams.Add(smithy.NewErrParamRequired("Source"))
}
if v.PrimaryKeys == nil {
invalidParams.Add(smithy.NewErrParamRequired("PrimaryKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateMicrosoftSQLServerCatalogSource(v *types.MicrosoftSQLServerCatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "MicrosoftSQLServerCatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateMicrosoftSQLServerCatalogTarget(v *types.MicrosoftSQLServerCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "MicrosoftSQLServerCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateMLUserDataEncryption(v *types.MLUserDataEncryption) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "MLUserDataEncryption"}
if len(v.MlUserDataEncryptionMode) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("MlUserDataEncryptionMode"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateMySQLCatalogSource(v *types.MySQLCatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "MySQLCatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateMySQLCatalogTarget(v *types.MySQLCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "MySQLCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateNullValueField(v *types.NullValueField) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "NullValueField"}
if v.Value == nil {
invalidParams.Add(smithy.NewErrParamRequired("Value"))
}
if v.Datatype == nil {
invalidParams.Add(smithy.NewErrParamRequired("Datatype"))
} else if v.Datatype != nil {
if err := validateDatatype(v.Datatype); err != nil {
invalidParams.AddNested("Datatype", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateNullValueFields(v []types.NullValueField) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "NullValueFields"}
for i := range v {
if err := validateNullValueField(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOracleSQLCatalogSource(v *types.OracleSQLCatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OracleSQLCatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOracleSQLCatalogTarget(v *types.OracleSQLCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OracleSQLCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOrder(v *types.Order) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Order"}
if v.Column == nil {
invalidParams.Add(smithy.NewErrParamRequired("Column"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOrderList(v []types.Order) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "OrderList"}
for i := range v {
if err := validateOrder(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePartitionIndex(v *types.PartitionIndex) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PartitionIndex"}
if v.Keys == nil {
invalidParams.Add(smithy.NewErrParamRequired("Keys"))
}
if v.IndexName == nil {
invalidParams.Add(smithy.NewErrParamRequired("IndexName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePartitionIndexList(v []types.PartitionIndex) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PartitionIndexList"}
for i := range v {
if err := validatePartitionIndex(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePartitionInput(v *types.PartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PartitionInput"}
if v.StorageDescriptor != nil {
if err := validateStorageDescriptor(v.StorageDescriptor); err != nil {
invalidParams.AddNested("StorageDescriptor", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePartitionInputList(v []types.PartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PartitionInputList"}
for i := range v {
if err := validatePartitionInput(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePartitionValueList(v *types.PartitionValueList) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PartitionValueList"}
if v.Values == nil {
invalidParams.Add(smithy.NewErrParamRequired("Values"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePIIDetection(v *types.PIIDetection) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PIIDetection"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if len(v.PiiType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("PiiType"))
}
if v.EntityTypesToDetect == nil {
invalidParams.Add(smithy.NewErrParamRequired("EntityTypesToDetect"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePostgreSQLCatalogSource(v *types.PostgreSQLCatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PostgreSQLCatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validatePostgreSQLCatalogTarget(v *types.PostgreSQLCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PostgreSQLCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRedshiftSource(v *types.RedshiftSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RedshiftSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRedshiftTarget(v *types.RedshiftTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RedshiftTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRelationalCatalogSource(v *types.RelationalCatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RelationalCatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateRenameField(v *types.RenameField) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RenameField"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.SourcePath == nil {
invalidParams.Add(smithy.NewErrParamRequired("SourcePath"))
}
if v.TargetPath == nil {
invalidParams.Add(smithy.NewErrParamRequired("TargetPath"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3CatalogDeltaSource(v *types.S3CatalogDeltaSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3CatalogDeltaSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3CatalogHudiSource(v *types.S3CatalogHudiSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3CatalogHudiSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3CatalogSource(v *types.S3CatalogSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3CatalogSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3CatalogTarget(v *types.S3CatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3CatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3CsvSource(v *types.S3CsvSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3CsvSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if len(v.Separator) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Separator"))
}
if len(v.QuoteChar) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("QuoteChar"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3DeltaCatalogTarget(v *types.S3DeltaCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3DeltaCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3DeltaDirectTarget(v *types.S3DeltaDirectTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3DeltaDirectTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("Path"))
}
if len(v.Compression) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Compression"))
}
if len(v.Format) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Format"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3DeltaSource(v *types.S3DeltaSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3DeltaSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3DirectTarget(v *types.S3DirectTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3DirectTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("Path"))
}
if len(v.Format) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Format"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3GlueParquetTarget(v *types.S3GlueParquetTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3GlueParquetTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("Path"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3HudiCatalogTarget(v *types.S3HudiCatalogTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3HudiCatalogTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Table == nil {
invalidParams.Add(smithy.NewErrParamRequired("Table"))
}
if v.Database == nil {
invalidParams.Add(smithy.NewErrParamRequired("Database"))
}
if v.AdditionalOptions == nil {
invalidParams.Add(smithy.NewErrParamRequired("AdditionalOptions"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3HudiDirectTarget(v *types.S3HudiDirectTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3HudiDirectTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("Path"))
}
if len(v.Compression) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Compression"))
}
if len(v.Format) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Format"))
}
if v.AdditionalOptions == nil {
invalidParams.Add(smithy.NewErrParamRequired("AdditionalOptions"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3HudiSource(v *types.S3HudiSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3HudiSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3JsonSource(v *types.S3JsonSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3JsonSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateS3ParquetSource(v *types.S3ParquetSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "S3ParquetSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSegment(v *types.Segment) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Segment"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSelectFields(v *types.SelectFields) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SelectFields"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSelectFromCollection(v *types.SelectFromCollection) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SelectFromCollection"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSparkConnectorSource(v *types.SparkConnectorSource) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SparkConnectorSource"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.ConnectionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionName"))
}
if v.ConnectorName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectorName"))
}
if v.ConnectionType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionType"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSparkConnectorTarget(v *types.SparkConnectorTarget) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SparkConnectorTarget"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.ConnectionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionName"))
}
if v.ConnectorName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectorName"))
}
if v.ConnectionType == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionType"))
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSparkSQL(v *types.SparkSQL) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SparkSQL"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.SqlQuery == nil {
invalidParams.Add(smithy.NewErrParamRequired("SqlQuery"))
}
if v.SqlAliases == nil {
invalidParams.Add(smithy.NewErrParamRequired("SqlAliases"))
} else if v.SqlAliases != nil {
if err := validateSqlAliases(v.SqlAliases); err != nil {
invalidParams.AddNested("SqlAliases", err.(smithy.InvalidParamsError))
}
}
if v.OutputSchemas != nil {
if err := validateGlueSchemas(v.OutputSchemas); err != nil {
invalidParams.AddNested("OutputSchemas", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSpigot(v *types.Spigot) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Spigot"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("Path"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSplitFields(v *types.SplitFields) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SplitFields"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if v.Paths == nil {
invalidParams.Add(smithy.NewErrParamRequired("Paths"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSqlAlias(v *types.SqlAlias) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SqlAlias"}
if v.From == nil {
invalidParams.Add(smithy.NewErrParamRequired("From"))
}
if v.Alias == nil {
invalidParams.Add(smithy.NewErrParamRequired("Alias"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSqlAliases(v []types.SqlAlias) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SqlAliases"}
for i := range v {
if err := validateSqlAlias(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateStorageDescriptor(v *types.StorageDescriptor) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StorageDescriptor"}
if v.Columns != nil {
if err := validateColumnList(v.Columns); err != nil {
invalidParams.AddNested("Columns", err.(smithy.InvalidParamsError))
}
}
if v.SortColumns != nil {
if err := validateOrderList(v.SortColumns); err != nil {
invalidParams.AddNested("SortColumns", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateStringColumnStatisticsData(v *types.StringColumnStatisticsData) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StringColumnStatisticsData"}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTableInput(v *types.TableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TableInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.StorageDescriptor != nil {
if err := validateStorageDescriptor(v.StorageDescriptor); err != nil {
invalidParams.AddNested("StorageDescriptor", err.(smithy.InvalidParamsError))
}
}
if v.PartitionKeys != nil {
if err := validateColumnList(v.PartitionKeys); err != nil {
invalidParams.AddNested("PartitionKeys", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTaskRunSortCriteria(v *types.TaskRunSortCriteria) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TaskRunSortCriteria"}
if len(v.Column) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Column"))
}
if len(v.SortDirection) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("SortDirection"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTransformConfigParameter(v *types.TransformConfigParameter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TransformConfigParameter"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if len(v.Type) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Type"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTransformConfigParameterList(v []types.TransformConfigParameter) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TransformConfigParameterList"}
for i := range v {
if err := validateTransformConfigParameter(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTransformEncryption(v *types.TransformEncryption) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TransformEncryption"}
if v.MlUserDataEncryption != nil {
if err := validateMLUserDataEncryption(v.MlUserDataEncryption); err != nil {
invalidParams.AddNested("MlUserDataEncryption", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTransformParameters(v *types.TransformParameters) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TransformParameters"}
if len(v.TransformType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("TransformType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTransformSortCriteria(v *types.TransformSortCriteria) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TransformSortCriteria"}
if len(v.Column) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Column"))
}
if len(v.SortDirection) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("SortDirection"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateTriggerUpdate(v *types.TriggerUpdate) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TriggerUpdate"}
if v.EventBatchingCondition != nil {
if err := validateEventBatchingCondition(v.EventBatchingCondition); err != nil {
invalidParams.AddNested("EventBatchingCondition", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUnion(v *types.Union) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "Union"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Inputs == nil {
invalidParams.Add(smithy.NewErrParamRequired("Inputs"))
}
if len(v.UnionType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("UnionType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUpdateColumnStatisticsList(v []types.ColumnStatistics) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateColumnStatisticsList"}
for i := range v {
if err := validateColumnStatistics(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUpdateCsvClassifierRequest(v *types.UpdateCsvClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateCsvClassifierRequest"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUpdateGrokClassifierRequest(v *types.UpdateGrokClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateGrokClassifierRequest"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUpdateJsonClassifierRequest(v *types.UpdateJsonClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateJsonClassifierRequest"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUpdateXMLClassifierRequest(v *types.UpdateXMLClassifierRequest) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateXMLClassifierRequest"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchCreatePartitionInput(v *BatchCreatePartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchCreatePartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionInputList == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionInputList"))
} else if v.PartitionInputList != nil {
if err := validatePartitionInputList(v.PartitionInputList); err != nil {
invalidParams.AddNested("PartitionInputList", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchDeleteConnectionInput(v *BatchDeleteConnectionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchDeleteConnectionInput"}
if v.ConnectionNameList == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionNameList"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchDeletePartitionInput(v *BatchDeletePartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchDeletePartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionsToDelete == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionsToDelete"))
} else if v.PartitionsToDelete != nil {
if err := validateBatchDeletePartitionValueList(v.PartitionsToDelete); err != nil {
invalidParams.AddNested("PartitionsToDelete", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchDeleteTableInput(v *BatchDeleteTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchDeleteTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TablesToDelete == nil {
invalidParams.Add(smithy.NewErrParamRequired("TablesToDelete"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchDeleteTableVersionInput(v *BatchDeleteTableVersionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchDeleteTableVersionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.VersionIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("VersionIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetBlueprintsInput(v *BatchGetBlueprintsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetBlueprintsInput"}
if v.Names == nil {
invalidParams.Add(smithy.NewErrParamRequired("Names"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetCrawlersInput(v *BatchGetCrawlersInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetCrawlersInput"}
if v.CrawlerNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("CrawlerNames"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetCustomEntityTypesInput(v *BatchGetCustomEntityTypesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetCustomEntityTypesInput"}
if v.Names == nil {
invalidParams.Add(smithy.NewErrParamRequired("Names"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetDataQualityResultInput(v *BatchGetDataQualityResultInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetDataQualityResultInput"}
if v.ResultIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResultIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetDevEndpointsInput(v *BatchGetDevEndpointsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetDevEndpointsInput"}
if v.DevEndpointNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("DevEndpointNames"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetJobsInput(v *BatchGetJobsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetJobsInput"}
if v.JobNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobNames"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetPartitionInput(v *BatchGetPartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetPartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionsToGet == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionsToGet"))
} else if v.PartitionsToGet != nil {
if err := validateBatchGetPartitionValueList(v.PartitionsToGet); err != nil {
invalidParams.AddNested("PartitionsToGet", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetTriggersInput(v *BatchGetTriggersInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetTriggersInput"}
if v.TriggerNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("TriggerNames"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchGetWorkflowsInput(v *BatchGetWorkflowsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchGetWorkflowsInput"}
if v.Names == nil {
invalidParams.Add(smithy.NewErrParamRequired("Names"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchStopJobRunInput(v *BatchStopJobRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchStopJobRunInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if v.JobRunIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobRunIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpBatchUpdatePartitionInput(v *BatchUpdatePartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "BatchUpdatePartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.Entries == nil {
invalidParams.Add(smithy.NewErrParamRequired("Entries"))
} else if v.Entries != nil {
if err := validateBatchUpdatePartitionRequestEntryList(v.Entries); err != nil {
invalidParams.AddNested("Entries", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCancelDataQualityRuleRecommendationRunInput(v *CancelDataQualityRuleRecommendationRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CancelDataQualityRuleRecommendationRunInput"}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCancelDataQualityRulesetEvaluationRunInput(v *CancelDataQualityRulesetEvaluationRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CancelDataQualityRulesetEvaluationRunInput"}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCancelMLTaskRunInput(v *CancelMLTaskRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CancelMLTaskRunInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if v.TaskRunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TaskRunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCancelStatementInput(v *CancelStatementInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CancelStatementInput"}
if v.SessionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SessionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCheckSchemaVersionValidityInput(v *CheckSchemaVersionValidityInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CheckSchemaVersionValidityInput"}
if len(v.DataFormat) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("DataFormat"))
}
if v.SchemaDefinition == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaDefinition"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateBlueprintInput(v *CreateBlueprintInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateBlueprintInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.BlueprintLocation == nil {
invalidParams.Add(smithy.NewErrParamRequired("BlueprintLocation"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateClassifierInput(v *CreateClassifierInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateClassifierInput"}
if v.GrokClassifier != nil {
if err := validateCreateGrokClassifierRequest(v.GrokClassifier); err != nil {
invalidParams.AddNested("GrokClassifier", err.(smithy.InvalidParamsError))
}
}
if v.XMLClassifier != nil {
if err := validateCreateXMLClassifierRequest(v.XMLClassifier); err != nil {
invalidParams.AddNested("XMLClassifier", err.(smithy.InvalidParamsError))
}
}
if v.JsonClassifier != nil {
if err := validateCreateJsonClassifierRequest(v.JsonClassifier); err != nil {
invalidParams.AddNested("JsonClassifier", err.(smithy.InvalidParamsError))
}
}
if v.CsvClassifier != nil {
if err := validateCreateCsvClassifierRequest(v.CsvClassifier); err != nil {
invalidParams.AddNested("CsvClassifier", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateConnectionInput(v *CreateConnectionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateConnectionInput"}
if v.ConnectionInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionInput"))
} else if v.ConnectionInput != nil {
if err := validateConnectionInput(v.ConnectionInput); err != nil {
invalidParams.AddNested("ConnectionInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateCrawlerInput(v *CreateCrawlerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateCrawlerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Role == nil {
invalidParams.Add(smithy.NewErrParamRequired("Role"))
}
if v.Targets == nil {
invalidParams.Add(smithy.NewErrParamRequired("Targets"))
} else if v.Targets != nil {
if err := validateCrawlerTargets(v.Targets); err != nil {
invalidParams.AddNested("Targets", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateCustomEntityTypeInput(v *CreateCustomEntityTypeInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateCustomEntityTypeInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.RegexString == nil {
invalidParams.Add(smithy.NewErrParamRequired("RegexString"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateDatabaseInput(v *CreateDatabaseInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateDatabaseInput"}
if v.DatabaseInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseInput"))
} else if v.DatabaseInput != nil {
if err := validateDatabaseInput(v.DatabaseInput); err != nil {
invalidParams.AddNested("DatabaseInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateDataQualityRulesetInput(v *CreateDataQualityRulesetInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateDataQualityRulesetInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Ruleset == nil {
invalidParams.Add(smithy.NewErrParamRequired("Ruleset"))
}
if v.TargetTable != nil {
if err := validateDataQualityTargetTable(v.TargetTable); err != nil {
invalidParams.AddNested("TargetTable", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateDevEndpointInput(v *CreateDevEndpointInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateDevEndpointInput"}
if v.EndpointName == nil {
invalidParams.Add(smithy.NewErrParamRequired("EndpointName"))
}
if v.RoleArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("RoleArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateJobInput(v *CreateJobInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateJobInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Role == nil {
invalidParams.Add(smithy.NewErrParamRequired("Role"))
}
if v.Command == nil {
invalidParams.Add(smithy.NewErrParamRequired("Command"))
}
if v.CodeGenConfigurationNodes != nil {
if err := validateCodeGenConfigurationNodes(v.CodeGenConfigurationNodes); err != nil {
invalidParams.AddNested("CodeGenConfigurationNodes", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateMLTransformInput(v *CreateMLTransformInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateMLTransformInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.InputRecordTables == nil {
invalidParams.Add(smithy.NewErrParamRequired("InputRecordTables"))
} else if v.InputRecordTables != nil {
if err := validateGlueTables(v.InputRecordTables); err != nil {
invalidParams.AddNested("InputRecordTables", err.(smithy.InvalidParamsError))
}
}
if v.Parameters == nil {
invalidParams.Add(smithy.NewErrParamRequired("Parameters"))
} else if v.Parameters != nil {
if err := validateTransformParameters(v.Parameters); err != nil {
invalidParams.AddNested("Parameters", err.(smithy.InvalidParamsError))
}
}
if v.Role == nil {
invalidParams.Add(smithy.NewErrParamRequired("Role"))
}
if v.TransformEncryption != nil {
if err := validateTransformEncryption(v.TransformEncryption); err != nil {
invalidParams.AddNested("TransformEncryption", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreatePartitionIndexInput(v *CreatePartitionIndexInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreatePartitionIndexInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionIndex == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionIndex"))
} else if v.PartitionIndex != nil {
if err := validatePartitionIndex(v.PartitionIndex); err != nil {
invalidParams.AddNested("PartitionIndex", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreatePartitionInput(v *CreatePartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreatePartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionInput"))
} else if v.PartitionInput != nil {
if err := validatePartitionInput(v.PartitionInput); err != nil {
invalidParams.AddNested("PartitionInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateRegistryInput(v *CreateRegistryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateRegistryInput"}
if v.RegistryName == nil {
invalidParams.Add(smithy.NewErrParamRequired("RegistryName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateSchemaInput(v *CreateSchemaInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateSchemaInput"}
if v.SchemaName == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaName"))
}
if len(v.DataFormat) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("DataFormat"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateScriptInput(v *CreateScriptInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateScriptInput"}
if v.DagNodes != nil {
if err := validateDagNodes(v.DagNodes); err != nil {
invalidParams.AddNested("DagNodes", err.(smithy.InvalidParamsError))
}
}
if v.DagEdges != nil {
if err := validateDagEdges(v.DagEdges); err != nil {
invalidParams.AddNested("DagEdges", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateSecurityConfigurationInput(v *CreateSecurityConfigurationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateSecurityConfigurationInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.EncryptionConfiguration == nil {
invalidParams.Add(smithy.NewErrParamRequired("EncryptionConfiguration"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateSessionInput(v *CreateSessionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateSessionInput"}
if v.Id == nil {
invalidParams.Add(smithy.NewErrParamRequired("Id"))
}
if v.Role == nil {
invalidParams.Add(smithy.NewErrParamRequired("Role"))
}
if v.Command == nil {
invalidParams.Add(smithy.NewErrParamRequired("Command"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateTableInput(v *CreateTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableInput"))
} else if v.TableInput != nil {
if err := validateTableInput(v.TableInput); err != nil {
invalidParams.AddNested("TableInput", err.(smithy.InvalidParamsError))
}
}
if v.PartitionIndexes != nil {
if err := validatePartitionIndexList(v.PartitionIndexes); err != nil {
invalidParams.AddNested("PartitionIndexes", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateTriggerInput(v *CreateTriggerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateTriggerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if len(v.Type) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Type"))
}
if v.Actions == nil {
invalidParams.Add(smithy.NewErrParamRequired("Actions"))
}
if v.EventBatchingCondition != nil {
if err := validateEventBatchingCondition(v.EventBatchingCondition); err != nil {
invalidParams.AddNested("EventBatchingCondition", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateUserDefinedFunctionInput(v *CreateUserDefinedFunctionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateUserDefinedFunctionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.FunctionInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("FunctionInput"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateWorkflowInput(v *CreateWorkflowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateWorkflowInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteBlueprintInput(v *DeleteBlueprintInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteBlueprintInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteClassifierInput(v *DeleteClassifierInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteClassifierInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteColumnStatisticsForPartitionInput(v *DeleteColumnStatisticsForPartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteColumnStatisticsForPartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionValues == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValues"))
}
if v.ColumnName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteColumnStatisticsForTableInput(v *DeleteColumnStatisticsForTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteColumnStatisticsForTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.ColumnName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteConnectionInput(v *DeleteConnectionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteConnectionInput"}
if v.ConnectionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteCrawlerInput(v *DeleteCrawlerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteCrawlerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteCustomEntityTypeInput(v *DeleteCustomEntityTypeInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteCustomEntityTypeInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteDatabaseInput(v *DeleteDatabaseInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteDatabaseInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteDataQualityRulesetInput(v *DeleteDataQualityRulesetInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteDataQualityRulesetInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteDevEndpointInput(v *DeleteDevEndpointInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteDevEndpointInput"}
if v.EndpointName == nil {
invalidParams.Add(smithy.NewErrParamRequired("EndpointName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteJobInput(v *DeleteJobInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteJobInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteMLTransformInput(v *DeleteMLTransformInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteMLTransformInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeletePartitionIndexInput(v *DeletePartitionIndexInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeletePartitionIndexInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.IndexName == nil {
invalidParams.Add(smithy.NewErrParamRequired("IndexName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeletePartitionInput(v *DeletePartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeletePartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionValues == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValues"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteRegistryInput(v *DeleteRegistryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteRegistryInput"}
if v.RegistryId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RegistryId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteSchemaInput(v *DeleteSchemaInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteSchemaInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteSchemaVersionsInput(v *DeleteSchemaVersionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteSchemaVersionsInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if v.Versions == nil {
invalidParams.Add(smithy.NewErrParamRequired("Versions"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteSecurityConfigurationInput(v *DeleteSecurityConfigurationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteSecurityConfigurationInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteSessionInput(v *DeleteSessionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteSessionInput"}
if v.Id == nil {
invalidParams.Add(smithy.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteTableInput(v *DeleteTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteTableVersionInput(v *DeleteTableVersionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteTableVersionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.VersionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("VersionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteTriggerInput(v *DeleteTriggerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteTriggerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteUserDefinedFunctionInput(v *DeleteUserDefinedFunctionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteUserDefinedFunctionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.FunctionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("FunctionName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteWorkflowInput(v *DeleteWorkflowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteWorkflowInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetBlueprintInput(v *GetBlueprintInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetBlueprintInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetBlueprintRunInput(v *GetBlueprintRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetBlueprintRunInput"}
if v.BlueprintName == nil {
invalidParams.Add(smithy.NewErrParamRequired("BlueprintName"))
}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetBlueprintRunsInput(v *GetBlueprintRunsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetBlueprintRunsInput"}
if v.BlueprintName == nil {
invalidParams.Add(smithy.NewErrParamRequired("BlueprintName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetClassifierInput(v *GetClassifierInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetClassifierInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetColumnStatisticsForPartitionInput(v *GetColumnStatisticsForPartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetColumnStatisticsForPartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionValues == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValues"))
}
if v.ColumnNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnNames"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetColumnStatisticsForTableInput(v *GetColumnStatisticsForTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetColumnStatisticsForTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.ColumnNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnNames"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetConnectionInput(v *GetConnectionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetConnectionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetCrawlerInput(v *GetCrawlerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetCrawlerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetCustomEntityTypeInput(v *GetCustomEntityTypeInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetCustomEntityTypeInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDatabaseInput(v *GetDatabaseInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDatabaseInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDataQualityResultInput(v *GetDataQualityResultInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDataQualityResultInput"}
if v.ResultId == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResultId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDataQualityRuleRecommendationRunInput(v *GetDataQualityRuleRecommendationRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDataQualityRuleRecommendationRunInput"}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDataQualityRulesetEvaluationRunInput(v *GetDataQualityRulesetEvaluationRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDataQualityRulesetEvaluationRunInput"}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDataQualityRulesetInput(v *GetDataQualityRulesetInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDataQualityRulesetInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetDevEndpointInput(v *GetDevEndpointInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetDevEndpointInput"}
if v.EndpointName == nil {
invalidParams.Add(smithy.NewErrParamRequired("EndpointName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetJobBookmarkInput(v *GetJobBookmarkInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetJobBookmarkInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetJobInput(v *GetJobInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetJobInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetJobRunInput(v *GetJobRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetJobRunInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetJobRunsInput(v *GetJobRunsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetJobRunsInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMappingInput(v *GetMappingInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMappingInput"}
if v.Source == nil {
invalidParams.Add(smithy.NewErrParamRequired("Source"))
} else if v.Source != nil {
if err := validateCatalogEntry(v.Source); err != nil {
invalidParams.AddNested("Source", err.(smithy.InvalidParamsError))
}
}
if v.Sinks != nil {
if err := validateCatalogEntries(v.Sinks); err != nil {
invalidParams.AddNested("Sinks", err.(smithy.InvalidParamsError))
}
}
if v.Location != nil {
if err := validateLocation(v.Location); err != nil {
invalidParams.AddNested("Location", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMLTaskRunInput(v *GetMLTaskRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMLTaskRunInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if v.TaskRunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TaskRunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMLTaskRunsInput(v *GetMLTaskRunsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMLTaskRunsInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if v.Sort != nil {
if err := validateTaskRunSortCriteria(v.Sort); err != nil {
invalidParams.AddNested("Sort", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMLTransformInput(v *GetMLTransformInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMLTransformInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetMLTransformsInput(v *GetMLTransformsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetMLTransformsInput"}
if v.Sort != nil {
if err := validateTransformSortCriteria(v.Sort); err != nil {
invalidParams.AddNested("Sort", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetPartitionIndexesInput(v *GetPartitionIndexesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetPartitionIndexesInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetPartitionInput(v *GetPartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetPartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionValues == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValues"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetPartitionsInput(v *GetPartitionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetPartitionsInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.Segment != nil {
if err := validateSegment(v.Segment); err != nil {
invalidParams.AddNested("Segment", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetPlanInput(v *GetPlanInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetPlanInput"}
if v.Mapping == nil {
invalidParams.Add(smithy.NewErrParamRequired("Mapping"))
}
if v.Source == nil {
invalidParams.Add(smithy.NewErrParamRequired("Source"))
} else if v.Source != nil {
if err := validateCatalogEntry(v.Source); err != nil {
invalidParams.AddNested("Source", err.(smithy.InvalidParamsError))
}
}
if v.Sinks != nil {
if err := validateCatalogEntries(v.Sinks); err != nil {
invalidParams.AddNested("Sinks", err.(smithy.InvalidParamsError))
}
}
if v.Location != nil {
if err := validateLocation(v.Location); err != nil {
invalidParams.AddNested("Location", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetRegistryInput(v *GetRegistryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetRegistryInput"}
if v.RegistryId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RegistryId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetSchemaByDefinitionInput(v *GetSchemaByDefinitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetSchemaByDefinitionInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if v.SchemaDefinition == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaDefinition"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetSchemaInput(v *GetSchemaInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetSchemaInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetSchemaVersionsDiffInput(v *GetSchemaVersionsDiffInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetSchemaVersionsDiffInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if v.FirstSchemaVersionNumber == nil {
invalidParams.Add(smithy.NewErrParamRequired("FirstSchemaVersionNumber"))
}
if v.SecondSchemaVersionNumber == nil {
invalidParams.Add(smithy.NewErrParamRequired("SecondSchemaVersionNumber"))
}
if len(v.SchemaDiffType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("SchemaDiffType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetSecurityConfigurationInput(v *GetSecurityConfigurationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetSecurityConfigurationInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetSessionInput(v *GetSessionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetSessionInput"}
if v.Id == nil {
invalidParams.Add(smithy.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetStatementInput(v *GetStatementInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetStatementInput"}
if v.SessionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SessionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetTableInput(v *GetTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetTablesInput(v *GetTablesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetTablesInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetTableVersionInput(v *GetTableVersionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetTableVersionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetTableVersionsInput(v *GetTableVersionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetTableVersionsInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetTagsInput(v *GetTagsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetTagsInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetTriggerInput(v *GetTriggerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetTriggerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetUnfilteredPartitionMetadataInput(v *GetUnfilteredPartitionMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetUnfilteredPartitionMetadataInput"}
if v.CatalogId == nil {
invalidParams.Add(smithy.NewErrParamRequired("CatalogId"))
}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionValues == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValues"))
}
if v.SupportedPermissionTypes == nil {
invalidParams.Add(smithy.NewErrParamRequired("SupportedPermissionTypes"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetUnfilteredPartitionsMetadataInput(v *GetUnfilteredPartitionsMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetUnfilteredPartitionsMetadataInput"}
if v.CatalogId == nil {
invalidParams.Add(smithy.NewErrParamRequired("CatalogId"))
}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.SupportedPermissionTypes == nil {
invalidParams.Add(smithy.NewErrParamRequired("SupportedPermissionTypes"))
}
if v.Segment != nil {
if err := validateSegment(v.Segment); err != nil {
invalidParams.AddNested("Segment", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetUnfilteredTableMetadataInput(v *GetUnfilteredTableMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetUnfilteredTableMetadataInput"}
if v.CatalogId == nil {
invalidParams.Add(smithy.NewErrParamRequired("CatalogId"))
}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.SupportedPermissionTypes == nil {
invalidParams.Add(smithy.NewErrParamRequired("SupportedPermissionTypes"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetUserDefinedFunctionInput(v *GetUserDefinedFunctionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetUserDefinedFunctionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.FunctionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("FunctionName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetUserDefinedFunctionsInput(v *GetUserDefinedFunctionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetUserDefinedFunctionsInput"}
if v.Pattern == nil {
invalidParams.Add(smithy.NewErrParamRequired("Pattern"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetWorkflowInput(v *GetWorkflowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetWorkflowInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetWorkflowRunInput(v *GetWorkflowRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetWorkflowRunInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetWorkflowRunPropertiesInput(v *GetWorkflowRunPropertiesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetWorkflowRunPropertiesInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpGetWorkflowRunsInput(v *GetWorkflowRunsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "GetWorkflowRunsInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListCrawlsInput(v *ListCrawlsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListCrawlsInput"}
if v.CrawlerName == nil {
invalidParams.Add(smithy.NewErrParamRequired("CrawlerName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListDataQualityResultsInput(v *ListDataQualityResultsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListDataQualityResultsInput"}
if v.Filter != nil {
if err := validateDataQualityResultFilterCriteria(v.Filter); err != nil {
invalidParams.AddNested("Filter", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListDataQualityRuleRecommendationRunsInput(v *ListDataQualityRuleRecommendationRunsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListDataQualityRuleRecommendationRunsInput"}
if v.Filter != nil {
if err := validateDataQualityRuleRecommendationRunFilter(v.Filter); err != nil {
invalidParams.AddNested("Filter", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListDataQualityRulesetEvaluationRunsInput(v *ListDataQualityRulesetEvaluationRunsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListDataQualityRulesetEvaluationRunsInput"}
if v.Filter != nil {
if err := validateDataQualityRulesetEvaluationRunFilter(v.Filter); err != nil {
invalidParams.AddNested("Filter", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListDataQualityRulesetsInput(v *ListDataQualityRulesetsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListDataQualityRulesetsInput"}
if v.Filter != nil {
if err := validateDataQualityRulesetFilterCriteria(v.Filter); err != nil {
invalidParams.AddNested("Filter", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListMLTransformsInput(v *ListMLTransformsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListMLTransformsInput"}
if v.Sort != nil {
if err := validateTransformSortCriteria(v.Sort); err != nil {
invalidParams.AddNested("Sort", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListSchemaVersionsInput(v *ListSchemaVersionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListSchemaVersionsInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListStatementsInput(v *ListStatementsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListStatementsInput"}
if v.SessionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SessionId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutDataCatalogEncryptionSettingsInput(v *PutDataCatalogEncryptionSettingsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutDataCatalogEncryptionSettingsInput"}
if v.DataCatalogEncryptionSettings == nil {
invalidParams.Add(smithy.NewErrParamRequired("DataCatalogEncryptionSettings"))
} else if v.DataCatalogEncryptionSettings != nil {
if err := validateDataCatalogEncryptionSettings(v.DataCatalogEncryptionSettings); err != nil {
invalidParams.AddNested("DataCatalogEncryptionSettings", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutResourcePolicyInput(v *PutResourcePolicyInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutResourcePolicyInput"}
if v.PolicyInJson == nil {
invalidParams.Add(smithy.NewErrParamRequired("PolicyInJson"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutSchemaVersionMetadataInput(v *PutSchemaVersionMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutSchemaVersionMetadataInput"}
if v.MetadataKeyValue == nil {
invalidParams.Add(smithy.NewErrParamRequired("MetadataKeyValue"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpPutWorkflowRunPropertiesInput(v *PutWorkflowRunPropertiesInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "PutWorkflowRunPropertiesInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if v.RunProperties == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunProperties"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRegisterSchemaVersionInput(v *RegisterSchemaVersionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RegisterSchemaVersionInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if v.SchemaDefinition == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaDefinition"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRemoveSchemaVersionMetadataInput(v *RemoveSchemaVersionMetadataInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RemoveSchemaVersionMetadataInput"}
if v.MetadataKeyValue == nil {
invalidParams.Add(smithy.NewErrParamRequired("MetadataKeyValue"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpResetJobBookmarkInput(v *ResetJobBookmarkInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResetJobBookmarkInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpResumeWorkflowRunInput(v *ResumeWorkflowRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ResumeWorkflowRunInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if v.NodeIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("NodeIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpRunStatementInput(v *RunStatementInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "RunStatementInput"}
if v.SessionId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SessionId"))
}
if v.Code == nil {
invalidParams.Add(smithy.NewErrParamRequired("Code"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartBlueprintRunInput(v *StartBlueprintRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartBlueprintRunInput"}
if v.BlueprintName == nil {
invalidParams.Add(smithy.NewErrParamRequired("BlueprintName"))
}
if v.RoleArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("RoleArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartCrawlerInput(v *StartCrawlerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartCrawlerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartCrawlerScheduleInput(v *StartCrawlerScheduleInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartCrawlerScheduleInput"}
if v.CrawlerName == nil {
invalidParams.Add(smithy.NewErrParamRequired("CrawlerName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartDataQualityRuleRecommendationRunInput(v *StartDataQualityRuleRecommendationRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartDataQualityRuleRecommendationRunInput"}
if v.DataSource == nil {
invalidParams.Add(smithy.NewErrParamRequired("DataSource"))
} else if v.DataSource != nil {
if err := validateDataSource(v.DataSource); err != nil {
invalidParams.AddNested("DataSource", err.(smithy.InvalidParamsError))
}
}
if v.Role == nil {
invalidParams.Add(smithy.NewErrParamRequired("Role"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartDataQualityRulesetEvaluationRunInput(v *StartDataQualityRulesetEvaluationRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartDataQualityRulesetEvaluationRunInput"}
if v.DataSource == nil {
invalidParams.Add(smithy.NewErrParamRequired("DataSource"))
} else if v.DataSource != nil {
if err := validateDataSource(v.DataSource); err != nil {
invalidParams.AddNested("DataSource", err.(smithy.InvalidParamsError))
}
}
if v.Role == nil {
invalidParams.Add(smithy.NewErrParamRequired("Role"))
}
if v.RulesetNames == nil {
invalidParams.Add(smithy.NewErrParamRequired("RulesetNames"))
}
if v.AdditionalDataSources != nil {
if err := validateDataSourceMap(v.AdditionalDataSources); err != nil {
invalidParams.AddNested("AdditionalDataSources", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartExportLabelsTaskRunInput(v *StartExportLabelsTaskRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartExportLabelsTaskRunInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if v.OutputS3Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("OutputS3Path"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartImportLabelsTaskRunInput(v *StartImportLabelsTaskRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartImportLabelsTaskRunInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if v.InputS3Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("InputS3Path"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartJobRunInput(v *StartJobRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartJobRunInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartMLEvaluationTaskRunInput(v *StartMLEvaluationTaskRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartMLEvaluationTaskRunInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartMLLabelingSetGenerationTaskRunInput(v *StartMLLabelingSetGenerationTaskRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartMLLabelingSetGenerationTaskRunInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if v.OutputS3Path == nil {
invalidParams.Add(smithy.NewErrParamRequired("OutputS3Path"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartTriggerInput(v *StartTriggerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartTriggerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStartWorkflowRunInput(v *StartWorkflowRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StartWorkflowRunInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStopCrawlerInput(v *StopCrawlerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StopCrawlerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStopCrawlerScheduleInput(v *StopCrawlerScheduleInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StopCrawlerScheduleInput"}
if v.CrawlerName == nil {
invalidParams.Add(smithy.NewErrParamRequired("CrawlerName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStopSessionInput(v *StopSessionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StopSessionInput"}
if v.Id == nil {
invalidParams.Add(smithy.NewErrParamRequired("Id"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStopTriggerInput(v *StopTriggerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StopTriggerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpStopWorkflowRunInput(v *StopWorkflowRunInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "StopWorkflowRunInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.RunId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RunId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpTagResourceInput(v *TagResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if v.TagsToAdd == nil {
invalidParams.Add(smithy.NewErrParamRequired("TagsToAdd"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUntagResourceInput(v *UntagResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if v.TagsToRemove == nil {
invalidParams.Add(smithy.NewErrParamRequired("TagsToRemove"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateBlueprintInput(v *UpdateBlueprintInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateBlueprintInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.BlueprintLocation == nil {
invalidParams.Add(smithy.NewErrParamRequired("BlueprintLocation"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateClassifierInput(v *UpdateClassifierInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateClassifierInput"}
if v.GrokClassifier != nil {
if err := validateUpdateGrokClassifierRequest(v.GrokClassifier); err != nil {
invalidParams.AddNested("GrokClassifier", err.(smithy.InvalidParamsError))
}
}
if v.XMLClassifier != nil {
if err := validateUpdateXMLClassifierRequest(v.XMLClassifier); err != nil {
invalidParams.AddNested("XMLClassifier", err.(smithy.InvalidParamsError))
}
}
if v.JsonClassifier != nil {
if err := validateUpdateJsonClassifierRequest(v.JsonClassifier); err != nil {
invalidParams.AddNested("JsonClassifier", err.(smithy.InvalidParamsError))
}
}
if v.CsvClassifier != nil {
if err := validateUpdateCsvClassifierRequest(v.CsvClassifier); err != nil {
invalidParams.AddNested("CsvClassifier", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateColumnStatisticsForPartitionInput(v *UpdateColumnStatisticsForPartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateColumnStatisticsForPartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionValues == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValues"))
}
if v.ColumnStatisticsList == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnStatisticsList"))
} else if v.ColumnStatisticsList != nil {
if err := validateUpdateColumnStatisticsList(v.ColumnStatisticsList); err != nil {
invalidParams.AddNested("ColumnStatisticsList", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateColumnStatisticsForTableInput(v *UpdateColumnStatisticsForTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateColumnStatisticsForTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.ColumnStatisticsList == nil {
invalidParams.Add(smithy.NewErrParamRequired("ColumnStatisticsList"))
} else if v.ColumnStatisticsList != nil {
if err := validateUpdateColumnStatisticsList(v.ColumnStatisticsList); err != nil {
invalidParams.AddNested("ColumnStatisticsList", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateConnectionInput(v *UpdateConnectionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateConnectionInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.ConnectionInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("ConnectionInput"))
} else if v.ConnectionInput != nil {
if err := validateConnectionInput(v.ConnectionInput); err != nil {
invalidParams.AddNested("ConnectionInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateCrawlerInput(v *UpdateCrawlerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateCrawlerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.Targets != nil {
if err := validateCrawlerTargets(v.Targets); err != nil {
invalidParams.AddNested("Targets", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateCrawlerScheduleInput(v *UpdateCrawlerScheduleInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateCrawlerScheduleInput"}
if v.CrawlerName == nil {
invalidParams.Add(smithy.NewErrParamRequired("CrawlerName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateDatabaseInput(v *UpdateDatabaseInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateDatabaseInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.DatabaseInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseInput"))
} else if v.DatabaseInput != nil {
if err := validateDatabaseInput(v.DatabaseInput); err != nil {
invalidParams.AddNested("DatabaseInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateDataQualityRulesetInput(v *UpdateDataQualityRulesetInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateDataQualityRulesetInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateDevEndpointInput(v *UpdateDevEndpointInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateDevEndpointInput"}
if v.EndpointName == nil {
invalidParams.Add(smithy.NewErrParamRequired("EndpointName"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateJobInput(v *UpdateJobInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateJobInput"}
if v.JobName == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobName"))
}
if v.JobUpdate == nil {
invalidParams.Add(smithy.NewErrParamRequired("JobUpdate"))
} else if v.JobUpdate != nil {
if err := validateJobUpdate(v.JobUpdate); err != nil {
invalidParams.AddNested("JobUpdate", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateMLTransformInput(v *UpdateMLTransformInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateMLTransformInput"}
if v.TransformId == nil {
invalidParams.Add(smithy.NewErrParamRequired("TransformId"))
}
if v.Parameters != nil {
if err := validateTransformParameters(v.Parameters); err != nil {
invalidParams.AddNested("Parameters", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdatePartitionInput(v *UpdatePartitionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdatePartitionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableName == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableName"))
}
if v.PartitionValueList == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionValueList"))
}
if v.PartitionInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("PartitionInput"))
} else if v.PartitionInput != nil {
if err := validatePartitionInput(v.PartitionInput); err != nil {
invalidParams.AddNested("PartitionInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateRegistryInput(v *UpdateRegistryInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateRegistryInput"}
if v.RegistryId == nil {
invalidParams.Add(smithy.NewErrParamRequired("RegistryId"))
}
if v.Description == nil {
invalidParams.Add(smithy.NewErrParamRequired("Description"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateSchemaInput(v *UpdateSchemaInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateSchemaInput"}
if v.SchemaId == nil {
invalidParams.Add(smithy.NewErrParamRequired("SchemaId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateTableInput(v *UpdateTableInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateTableInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.TableInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("TableInput"))
} else if v.TableInput != nil {
if err := validateTableInput(v.TableInput); err != nil {
invalidParams.AddNested("TableInput", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateTriggerInput(v *UpdateTriggerInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateTriggerInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if v.TriggerUpdate == nil {
invalidParams.Add(smithy.NewErrParamRequired("TriggerUpdate"))
} else if v.TriggerUpdate != nil {
if err := validateTriggerUpdate(v.TriggerUpdate); err != nil {
invalidParams.AddNested("TriggerUpdate", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateUserDefinedFunctionInput(v *UpdateUserDefinedFunctionInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateUserDefinedFunctionInput"}
if v.DatabaseName == nil {
invalidParams.Add(smithy.NewErrParamRequired("DatabaseName"))
}
if v.FunctionName == nil {
invalidParams.Add(smithy.NewErrParamRequired("FunctionName"))
}
if v.FunctionInput == nil {
invalidParams.Add(smithy.NewErrParamRequired("FunctionInput"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateWorkflowInput(v *UpdateWorkflowInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateWorkflowInput"}
if v.Name == nil {
invalidParams.Add(smithy.NewErrParamRequired("Name"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
| 10,704 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package endpoints
import (
"github.com/aws/aws-sdk-go-v2/aws"
endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2"
"github.com/aws/smithy-go/logging"
"regexp"
)
// Options is the endpoint resolver configuration options
type Options struct {
// Logger is a logging implementation that log events should be sent to.
Logger logging.Logger
// LogDeprecated indicates that deprecated endpoints should be logged to the
// provided logger.
LogDeprecated bool
// ResolvedRegion is used to override the region to be resolved, rather then the
// using the value passed to the ResolveEndpoint method. This value is used by the
// SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative
// name. You must not set this value directly in your application.
ResolvedRegion string
// DisableHTTPS informs the resolver to return an endpoint that does not use the
// HTTPS scheme.
DisableHTTPS bool
// UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint.
UseDualStackEndpoint aws.DualStackEndpointState
// UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint.
UseFIPSEndpoint aws.FIPSEndpointState
}
func (o Options) GetResolvedRegion() string {
return o.ResolvedRegion
}
func (o Options) GetDisableHTTPS() bool {
return o.DisableHTTPS
}
func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState {
return o.UseDualStackEndpoint
}
func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState {
return o.UseFIPSEndpoint
}
func transformToSharedOptions(options Options) endpoints.Options {
return endpoints.Options{
Logger: options.Logger,
LogDeprecated: options.LogDeprecated,
ResolvedRegion: options.ResolvedRegion,
DisableHTTPS: options.DisableHTTPS,
UseDualStackEndpoint: options.UseDualStackEndpoint,
UseFIPSEndpoint: options.UseFIPSEndpoint,
}
}
// Resolver Glue endpoint resolver
type Resolver struct {
partitions endpoints.Partitions
}
// ResolveEndpoint resolves the service endpoint for the given region and options
func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) {
if len(region) == 0 {
return endpoint, &aws.MissingRegionError{}
}
opt := transformToSharedOptions(options)
return r.partitions.ResolveEndpoint(region, opt)
}
// New returns a new Resolver
func New() *Resolver {
return &Resolver{
partitions: defaultPartitions,
}
}
var partitionRegexp = struct {
Aws *regexp.Regexp
AwsCn *regexp.Regexp
AwsIso *regexp.Regexp
AwsIsoB *regexp.Regexp
AwsIsoE *regexp.Regexp
AwsIsoF *regexp.Regexp
AwsUsGov *regexp.Regexp
}{
Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"),
AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"),
AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"),
AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"),
AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"),
AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"),
AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"),
}
var defaultPartitions = endpoints.Partitions{
{
ID: "aws",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "glue.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "glue-fips.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "glue.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.Aws,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "af-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-northeast-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-northeast-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-northeast-3",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-southeast-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-southeast-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ap-southeast-3",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "ca-central-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-central-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-central-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-north-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-south-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-west-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-west-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "eu-west-3",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "fips-us-east-1",
}: endpoints.Endpoint{
Hostname: "glue-fips.us-east-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-east-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-east-2",
}: endpoints.Endpoint{
Hostname: "glue-fips.us-east-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-east-2",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-west-1",
}: endpoints.Endpoint{
Hostname: "glue-fips.us-west-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-west-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-west-2",
}: endpoints.Endpoint{
Hostname: "glue-fips.us-west-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-west-2",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "me-central-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "me-south-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "sa-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-east-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.us-east-1.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-east-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-east-2",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.us-east-2.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-west-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-west-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.us-west-1.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-west-2",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-west-2",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.us-west-2.amazonaws.com",
},
},
},
{
ID: "aws-cn",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "glue.{region}.api.amazonwebservices.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.{region}.amazonaws.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "glue-fips.{region}.api.amazonwebservices.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "glue.{region}.amazonaws.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsCn,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "cn-north-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "cn-northwest-1",
}: endpoints.Endpoint{},
},
},
{
ID: "aws-iso",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.{region}.c2s.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "glue.{region}.c2s.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIso,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "us-iso-east-1",
}: endpoints.Endpoint{},
},
},
{
ID: "aws-iso-b",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.{region}.sc2s.sgov.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "glue.{region}.sc2s.sgov.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoB,
IsRegionalized: true,
},
{
ID: "aws-iso-e",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.{region}.cloud.adc-e.uk",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "glue.{region}.cloud.adc-e.uk",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoE,
IsRegionalized: true,
},
{
ID: "aws-iso-f",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.{region}.csp.hci.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "glue.{region}.csp.hci.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoF,
IsRegionalized: true,
},
{
ID: "aws-us-gov",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "glue.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "glue-fips.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "glue.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsUsGov,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "fips-us-gov-east-1",
}: endpoints.Endpoint{
Hostname: "glue-fips.us-gov-east-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-gov-east-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "fips-us-gov-west-1",
}: endpoints.Endpoint{
Hostname: "glue-fips.us-gov-west-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-gov-west-1",
},
Deprecated: aws.TrueTernary,
},
endpoints.EndpointKey{
Region: "us-gov-east-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-gov-east-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.us-gov-east-1.amazonaws.com",
},
endpoints.EndpointKey{
Region: "us-gov-west-1",
}: endpoints.Endpoint{},
endpoints.EndpointKey{
Region: "us-gov-west-1",
Variant: endpoints.FIPSVariant,
}: {
Hostname: "glue-fips.us-gov-west-1.amazonaws.com",
},
},
},
}
| 485 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package endpoints
import (
"testing"
)
func TestRegexCompile(t *testing.T) {
_ = defaultPartitions
}
| 12 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package types
type AdditionalOptionKeys string
// Enum values for AdditionalOptionKeys
const (
AdditionalOptionKeysCacheOption AdditionalOptionKeys = "performanceTuning.caching"
)
// Values returns all known values for AdditionalOptionKeys. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (AdditionalOptionKeys) Values() []AdditionalOptionKeys {
return []AdditionalOptionKeys{
"performanceTuning.caching",
}
}
type AggFunction string
// Enum values for AggFunction
const (
AggFunctionAvg AggFunction = "avg"
AggFunctionCountDistinct AggFunction = "countDistinct"
AggFunctionCount AggFunction = "count"
AggFunctionFirst AggFunction = "first"
AggFunctionLast AggFunction = "last"
AggFunctionKurtosis AggFunction = "kurtosis"
AggFunctionMax AggFunction = "max"
AggFunctionMin AggFunction = "min"
AggFunctionSkewness AggFunction = "skewness"
AggFunctionStddevSamp AggFunction = "stddev_samp"
AggFunctionStddevPop AggFunction = "stddev_pop"
AggFunctionSum AggFunction = "sum"
AggFunctionSumDistinct AggFunction = "sumDistinct"
AggFunctionVarSamp AggFunction = "var_samp"
AggFunctionVarPop AggFunction = "var_pop"
)
// Values returns all known values for AggFunction. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (AggFunction) Values() []AggFunction {
return []AggFunction{
"avg",
"countDistinct",
"count",
"first",
"last",
"kurtosis",
"max",
"min",
"skewness",
"stddev_samp",
"stddev_pop",
"sum",
"sumDistinct",
"var_samp",
"var_pop",
}
}
type BackfillErrorCode string
// Enum values for BackfillErrorCode
const (
BackfillErrorCodeEncryptedPartitionError BackfillErrorCode = "ENCRYPTED_PARTITION_ERROR"
BackfillErrorCodeInternalError BackfillErrorCode = "INTERNAL_ERROR"
BackfillErrorCodeInvalidPartitionTypeDataError BackfillErrorCode = "INVALID_PARTITION_TYPE_DATA_ERROR"
BackfillErrorCodeMissingPartitionValueError BackfillErrorCode = "MISSING_PARTITION_VALUE_ERROR"
BackfillErrorCodeUnsupportedPartitionCharacterError BackfillErrorCode = "UNSUPPORTED_PARTITION_CHARACTER_ERROR"
)
// Values returns all known values for BackfillErrorCode. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (BackfillErrorCode) Values() []BackfillErrorCode {
return []BackfillErrorCode{
"ENCRYPTED_PARTITION_ERROR",
"INTERNAL_ERROR",
"INVALID_PARTITION_TYPE_DATA_ERROR",
"MISSING_PARTITION_VALUE_ERROR",
"UNSUPPORTED_PARTITION_CHARACTER_ERROR",
}
}
type BlueprintRunState string
// Enum values for BlueprintRunState
const (
BlueprintRunStateRunning BlueprintRunState = "RUNNING"
BlueprintRunStateSucceeded BlueprintRunState = "SUCCEEDED"
BlueprintRunStateFailed BlueprintRunState = "FAILED"
BlueprintRunStateRollingBack BlueprintRunState = "ROLLING_BACK"
)
// Values returns all known values for BlueprintRunState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (BlueprintRunState) Values() []BlueprintRunState {
return []BlueprintRunState{
"RUNNING",
"SUCCEEDED",
"FAILED",
"ROLLING_BACK",
}
}
type BlueprintStatus string
// Enum values for BlueprintStatus
const (
BlueprintStatusCreating BlueprintStatus = "CREATING"
BlueprintStatusActive BlueprintStatus = "ACTIVE"
BlueprintStatusUpdating BlueprintStatus = "UPDATING"
BlueprintStatusFailed BlueprintStatus = "FAILED"
)
// Values returns all known values for BlueprintStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (BlueprintStatus) Values() []BlueprintStatus {
return []BlueprintStatus{
"CREATING",
"ACTIVE",
"UPDATING",
"FAILED",
}
}
type CatalogEncryptionMode string
// Enum values for CatalogEncryptionMode
const (
CatalogEncryptionModeDisabled CatalogEncryptionMode = "DISABLED"
CatalogEncryptionModeSsekms CatalogEncryptionMode = "SSE-KMS"
)
// Values returns all known values for CatalogEncryptionMode. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CatalogEncryptionMode) Values() []CatalogEncryptionMode {
return []CatalogEncryptionMode{
"DISABLED",
"SSE-KMS",
}
}
type CloudWatchEncryptionMode string
// Enum values for CloudWatchEncryptionMode
const (
CloudWatchEncryptionModeDisabled CloudWatchEncryptionMode = "DISABLED"
CloudWatchEncryptionModeSsekms CloudWatchEncryptionMode = "SSE-KMS"
)
// Values returns all known values for CloudWatchEncryptionMode. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (CloudWatchEncryptionMode) Values() []CloudWatchEncryptionMode {
return []CloudWatchEncryptionMode{
"DISABLED",
"SSE-KMS",
}
}
type ColumnStatisticsType string
// Enum values for ColumnStatisticsType
const (
ColumnStatisticsTypeBoolean ColumnStatisticsType = "BOOLEAN"
ColumnStatisticsTypeDate ColumnStatisticsType = "DATE"
ColumnStatisticsTypeDecimal ColumnStatisticsType = "DECIMAL"
ColumnStatisticsTypeDouble ColumnStatisticsType = "DOUBLE"
ColumnStatisticsTypeLong ColumnStatisticsType = "LONG"
ColumnStatisticsTypeString ColumnStatisticsType = "STRING"
ColumnStatisticsTypeBinary ColumnStatisticsType = "BINARY"
)
// Values returns all known values for ColumnStatisticsType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ColumnStatisticsType) Values() []ColumnStatisticsType {
return []ColumnStatisticsType{
"BOOLEAN",
"DATE",
"DECIMAL",
"DOUBLE",
"LONG",
"STRING",
"BINARY",
}
}
type Comparator string
// Enum values for Comparator
const (
ComparatorEquals Comparator = "EQUALS"
ComparatorGreaterThan Comparator = "GREATER_THAN"
ComparatorLessThan Comparator = "LESS_THAN"
ComparatorGreaterThanEquals Comparator = "GREATER_THAN_EQUALS"
ComparatorLessThanEquals Comparator = "LESS_THAN_EQUALS"
)
// Values returns all known values for Comparator. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (Comparator) Values() []Comparator {
return []Comparator{
"EQUALS",
"GREATER_THAN",
"LESS_THAN",
"GREATER_THAN_EQUALS",
"LESS_THAN_EQUALS",
}
}
type Compatibility string
// Enum values for Compatibility
const (
CompatibilityNone Compatibility = "NONE"
CompatibilityDisabled Compatibility = "DISABLED"
CompatibilityBackward Compatibility = "BACKWARD"
CompatibilityBackwardAll Compatibility = "BACKWARD_ALL"
CompatibilityForward Compatibility = "FORWARD"
CompatibilityForwardAll Compatibility = "FORWARD_ALL"
CompatibilityFull Compatibility = "FULL"
CompatibilityFullAll Compatibility = "FULL_ALL"
)
// Values returns all known values for Compatibility. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (Compatibility) Values() []Compatibility {
return []Compatibility{
"NONE",
"DISABLED",
"BACKWARD",
"BACKWARD_ALL",
"FORWARD",
"FORWARD_ALL",
"FULL",
"FULL_ALL",
}
}
type CompressionType string
// Enum values for CompressionType
const (
CompressionTypeGzip CompressionType = "gzip"
CompressionTypeBzip2 CompressionType = "bzip2"
)
// Values returns all known values for CompressionType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CompressionType) Values() []CompressionType {
return []CompressionType{
"gzip",
"bzip2",
}
}
type ConnectionPropertyKey string
// Enum values for ConnectionPropertyKey
const (
ConnectionPropertyKeyHost ConnectionPropertyKey = "HOST"
ConnectionPropertyKeyPort ConnectionPropertyKey = "PORT"
ConnectionPropertyKeyUserName ConnectionPropertyKey = "USERNAME"
ConnectionPropertyKeyPassword ConnectionPropertyKey = "PASSWORD"
ConnectionPropertyKeyEncryptedPassword ConnectionPropertyKey = "ENCRYPTED_PASSWORD"
ConnectionPropertyKeyJdbcDriverJarUri ConnectionPropertyKey = "JDBC_DRIVER_JAR_URI"
ConnectionPropertyKeyJdbcDriverClassName ConnectionPropertyKey = "JDBC_DRIVER_CLASS_NAME"
ConnectionPropertyKeyJdbcEngine ConnectionPropertyKey = "JDBC_ENGINE"
ConnectionPropertyKeyJdbcEngineVersion ConnectionPropertyKey = "JDBC_ENGINE_VERSION"
ConnectionPropertyKeyConfigFiles ConnectionPropertyKey = "CONFIG_FILES"
ConnectionPropertyKeyInstanceId ConnectionPropertyKey = "INSTANCE_ID"
ConnectionPropertyKeyJdbcConnectionUrl ConnectionPropertyKey = "JDBC_CONNECTION_URL"
ConnectionPropertyKeyJdbcEnforceSsl ConnectionPropertyKey = "JDBC_ENFORCE_SSL"
ConnectionPropertyKeyCustomJdbcCert ConnectionPropertyKey = "CUSTOM_JDBC_CERT"
ConnectionPropertyKeySkipCustomJdbcCertValidation ConnectionPropertyKey = "SKIP_CUSTOM_JDBC_CERT_VALIDATION"
ConnectionPropertyKeyCustomJdbcCertString ConnectionPropertyKey = "CUSTOM_JDBC_CERT_STRING"
ConnectionPropertyKeyConnectionUrl ConnectionPropertyKey = "CONNECTION_URL"
ConnectionPropertyKeyKafkaBootstrapServers ConnectionPropertyKey = "KAFKA_BOOTSTRAP_SERVERS"
ConnectionPropertyKeyKafkaSslEnabled ConnectionPropertyKey = "KAFKA_SSL_ENABLED"
ConnectionPropertyKeyKafkaCustomCert ConnectionPropertyKey = "KAFKA_CUSTOM_CERT"
ConnectionPropertyKeyKafkaSkipCustomCertValidation ConnectionPropertyKey = "KAFKA_SKIP_CUSTOM_CERT_VALIDATION"
ConnectionPropertyKeyKafkaClientKeystore ConnectionPropertyKey = "KAFKA_CLIENT_KEYSTORE"
ConnectionPropertyKeyKafkaClientKeystorePassword ConnectionPropertyKey = "KAFKA_CLIENT_KEYSTORE_PASSWORD"
ConnectionPropertyKeyKafkaClientKeyPassword ConnectionPropertyKey = "KAFKA_CLIENT_KEY_PASSWORD"
ConnectionPropertyKeyEncryptedKafkaClientKeystorePassword ConnectionPropertyKey = "ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD"
ConnectionPropertyKeyEncryptedKafkaClientKeyPassword ConnectionPropertyKey = "ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD"
ConnectionPropertyKeySecretId ConnectionPropertyKey = "SECRET_ID"
ConnectionPropertyKeyConnectorUrl ConnectionPropertyKey = "CONNECTOR_URL"
ConnectionPropertyKeyConnectorType ConnectionPropertyKey = "CONNECTOR_TYPE"
ConnectionPropertyKeyConnectorClassName ConnectionPropertyKey = "CONNECTOR_CLASS_NAME"
)
// Values returns all known values for ConnectionPropertyKey. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ConnectionPropertyKey) Values() []ConnectionPropertyKey {
return []ConnectionPropertyKey{
"HOST",
"PORT",
"USERNAME",
"PASSWORD",
"ENCRYPTED_PASSWORD",
"JDBC_DRIVER_JAR_URI",
"JDBC_DRIVER_CLASS_NAME",
"JDBC_ENGINE",
"JDBC_ENGINE_VERSION",
"CONFIG_FILES",
"INSTANCE_ID",
"JDBC_CONNECTION_URL",
"JDBC_ENFORCE_SSL",
"CUSTOM_JDBC_CERT",
"SKIP_CUSTOM_JDBC_CERT_VALIDATION",
"CUSTOM_JDBC_CERT_STRING",
"CONNECTION_URL",
"KAFKA_BOOTSTRAP_SERVERS",
"KAFKA_SSL_ENABLED",
"KAFKA_CUSTOM_CERT",
"KAFKA_SKIP_CUSTOM_CERT_VALIDATION",
"KAFKA_CLIENT_KEYSTORE",
"KAFKA_CLIENT_KEYSTORE_PASSWORD",
"KAFKA_CLIENT_KEY_PASSWORD",
"ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD",
"ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD",
"SECRET_ID",
"CONNECTOR_URL",
"CONNECTOR_TYPE",
"CONNECTOR_CLASS_NAME",
}
}
type ConnectionType string
// Enum values for ConnectionType
const (
ConnectionTypeJdbc ConnectionType = "JDBC"
ConnectionTypeSftp ConnectionType = "SFTP"
ConnectionTypeMongodb ConnectionType = "MONGODB"
ConnectionTypeKafka ConnectionType = "KAFKA"
ConnectionTypeNetwork ConnectionType = "NETWORK"
ConnectionTypeMarketplace ConnectionType = "MARKETPLACE"
ConnectionTypeCustom ConnectionType = "CUSTOM"
)
// Values returns all known values for ConnectionType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ConnectionType) Values() []ConnectionType {
return []ConnectionType{
"JDBC",
"SFTP",
"MONGODB",
"KAFKA",
"NETWORK",
"MARKETPLACE",
"CUSTOM",
}
}
type CrawlerHistoryState string
// Enum values for CrawlerHistoryState
const (
CrawlerHistoryStateRunning CrawlerHistoryState = "RUNNING"
CrawlerHistoryStateCompleted CrawlerHistoryState = "COMPLETED"
CrawlerHistoryStateFailed CrawlerHistoryState = "FAILED"
CrawlerHistoryStateStopped CrawlerHistoryState = "STOPPED"
)
// Values returns all known values for CrawlerHistoryState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CrawlerHistoryState) Values() []CrawlerHistoryState {
return []CrawlerHistoryState{
"RUNNING",
"COMPLETED",
"FAILED",
"STOPPED",
}
}
type CrawlerLineageSettings string
// Enum values for CrawlerLineageSettings
const (
CrawlerLineageSettingsEnable CrawlerLineageSettings = "ENABLE"
CrawlerLineageSettingsDisable CrawlerLineageSettings = "DISABLE"
)
// Values returns all known values for CrawlerLineageSettings. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CrawlerLineageSettings) Values() []CrawlerLineageSettings {
return []CrawlerLineageSettings{
"ENABLE",
"DISABLE",
}
}
type CrawlerState string
// Enum values for CrawlerState
const (
CrawlerStateReady CrawlerState = "READY"
CrawlerStateRunning CrawlerState = "RUNNING"
CrawlerStateStopping CrawlerState = "STOPPING"
)
// Values returns all known values for CrawlerState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CrawlerState) Values() []CrawlerState {
return []CrawlerState{
"READY",
"RUNNING",
"STOPPING",
}
}
type CrawlState string
// Enum values for CrawlState
const (
CrawlStateRunning CrawlState = "RUNNING"
CrawlStateCancelling CrawlState = "CANCELLING"
CrawlStateCancelled CrawlState = "CANCELLED"
CrawlStateSucceeded CrawlState = "SUCCEEDED"
CrawlStateFailed CrawlState = "FAILED"
CrawlStateError CrawlState = "ERROR"
)
// Values returns all known values for CrawlState. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (CrawlState) Values() []CrawlState {
return []CrawlState{
"RUNNING",
"CANCELLING",
"CANCELLED",
"SUCCEEDED",
"FAILED",
"ERROR",
}
}
type CsvHeaderOption string
// Enum values for CsvHeaderOption
const (
CsvHeaderOptionUnknown CsvHeaderOption = "UNKNOWN"
CsvHeaderOptionPresent CsvHeaderOption = "PRESENT"
CsvHeaderOptionAbsent CsvHeaderOption = "ABSENT"
)
// Values returns all known values for CsvHeaderOption. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (CsvHeaderOption) Values() []CsvHeaderOption {
return []CsvHeaderOption{
"UNKNOWN",
"PRESENT",
"ABSENT",
}
}
type DataFormat string
// Enum values for DataFormat
const (
DataFormatAvro DataFormat = "AVRO"
DataFormatJson DataFormat = "JSON"
DataFormatProtobuf DataFormat = "PROTOBUF"
)
// Values returns all known values for DataFormat. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (DataFormat) Values() []DataFormat {
return []DataFormat{
"AVRO",
"JSON",
"PROTOBUF",
}
}
type DataQualityRuleResultStatus string
// Enum values for DataQualityRuleResultStatus
const (
DataQualityRuleResultStatusPass DataQualityRuleResultStatus = "PASS"
DataQualityRuleResultStatusFail DataQualityRuleResultStatus = "FAIL"
DataQualityRuleResultStatusError DataQualityRuleResultStatus = "ERROR"
)
// Values returns all known values for DataQualityRuleResultStatus. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (DataQualityRuleResultStatus) Values() []DataQualityRuleResultStatus {
return []DataQualityRuleResultStatus{
"PASS",
"FAIL",
"ERROR",
}
}
type DeleteBehavior string
// Enum values for DeleteBehavior
const (
DeleteBehaviorLog DeleteBehavior = "LOG"
DeleteBehaviorDeleteFromDatabase DeleteBehavior = "DELETE_FROM_DATABASE"
DeleteBehaviorDeprecateInDatabase DeleteBehavior = "DEPRECATE_IN_DATABASE"
)
// Values returns all known values for DeleteBehavior. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DeleteBehavior) Values() []DeleteBehavior {
return []DeleteBehavior{
"LOG",
"DELETE_FROM_DATABASE",
"DEPRECATE_IN_DATABASE",
}
}
type DeltaTargetCompressionType string
// Enum values for DeltaTargetCompressionType
const (
DeltaTargetCompressionTypeUncompressed DeltaTargetCompressionType = "uncompressed"
DeltaTargetCompressionTypeSnappy DeltaTargetCompressionType = "snappy"
)
// Values returns all known values for DeltaTargetCompressionType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (DeltaTargetCompressionType) Values() []DeltaTargetCompressionType {
return []DeltaTargetCompressionType{
"uncompressed",
"snappy",
}
}
type DQStopJobOnFailureTiming string
// Enum values for DQStopJobOnFailureTiming
const (
DQStopJobOnFailureTimingImmediate DQStopJobOnFailureTiming = "Immediate"
DQStopJobOnFailureTimingAfterDataLoad DQStopJobOnFailureTiming = "AfterDataLoad"
)
// Values returns all known values for DQStopJobOnFailureTiming. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (DQStopJobOnFailureTiming) Values() []DQStopJobOnFailureTiming {
return []DQStopJobOnFailureTiming{
"Immediate",
"AfterDataLoad",
}
}
type DQTransformOutput string
// Enum values for DQTransformOutput
const (
DQTransformOutputPrimaryInput DQTransformOutput = "PrimaryInput"
DQTransformOutputEvaluationResults DQTransformOutput = "EvaluationResults"
)
// Values returns all known values for DQTransformOutput. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (DQTransformOutput) Values() []DQTransformOutput {
return []DQTransformOutput{
"PrimaryInput",
"EvaluationResults",
}
}
type EnableHybridValues string
// Enum values for EnableHybridValues
const (
EnableHybridValuesTrue EnableHybridValues = "TRUE"
EnableHybridValuesFalse EnableHybridValues = "FALSE"
)
// Values returns all known values for EnableHybridValues. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (EnableHybridValues) Values() []EnableHybridValues {
return []EnableHybridValues{
"TRUE",
"FALSE",
}
}
type ExecutionClass string
// Enum values for ExecutionClass
const (
ExecutionClassFlex ExecutionClass = "FLEX"
ExecutionClassStandard ExecutionClass = "STANDARD"
)
// Values returns all known values for ExecutionClass. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ExecutionClass) Values() []ExecutionClass {
return []ExecutionClass{
"FLEX",
"STANDARD",
}
}
type ExistCondition string
// Enum values for ExistCondition
const (
ExistConditionMustExist ExistCondition = "MUST_EXIST"
ExistConditionNotExist ExistCondition = "NOT_EXIST"
ExistConditionNone ExistCondition = "NONE"
)
// Values returns all known values for ExistCondition. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ExistCondition) Values() []ExistCondition {
return []ExistCondition{
"MUST_EXIST",
"NOT_EXIST",
"NONE",
}
}
type FederationSourceErrorCode string
// Enum values for FederationSourceErrorCode
const (
FederationSourceErrorCodeInvalidResponseException FederationSourceErrorCode = "InvalidResponseException"
FederationSourceErrorCodeOperationTimeoutException FederationSourceErrorCode = "OperationTimeoutException"
FederationSourceErrorCodeOperationNotSupportedException FederationSourceErrorCode = "OperationNotSupportedException"
FederationSourceErrorCodeInternalServiceException FederationSourceErrorCode = "InternalServiceException"
FederationSourceErrorCodeThrottlingException FederationSourceErrorCode = "ThrottlingException"
)
// Values returns all known values for FederationSourceErrorCode. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (FederationSourceErrorCode) Values() []FederationSourceErrorCode {
return []FederationSourceErrorCode{
"InvalidResponseException",
"OperationTimeoutException",
"OperationNotSupportedException",
"InternalServiceException",
"ThrottlingException",
}
}
type FieldName string
// Enum values for FieldName
const (
FieldNameCrawlId FieldName = "CRAWL_ID"
FieldNameState FieldName = "STATE"
FieldNameStartTime FieldName = "START_TIME"
FieldNameEndTime FieldName = "END_TIME"
FieldNameDpuHour FieldName = "DPU_HOUR"
)
// Values returns all known values for FieldName. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (FieldName) Values() []FieldName {
return []FieldName{
"CRAWL_ID",
"STATE",
"START_TIME",
"END_TIME",
"DPU_HOUR",
}
}
type FilterLogicalOperator string
// Enum values for FilterLogicalOperator
const (
FilterLogicalOperatorAnd FilterLogicalOperator = "AND"
FilterLogicalOperatorOr FilterLogicalOperator = "OR"
)
// Values returns all known values for FilterLogicalOperator. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (FilterLogicalOperator) Values() []FilterLogicalOperator {
return []FilterLogicalOperator{
"AND",
"OR",
}
}
type FilterOperation string
// Enum values for FilterOperation
const (
FilterOperationEq FilterOperation = "EQ"
FilterOperationLt FilterOperation = "LT"
FilterOperationGt FilterOperation = "GT"
FilterOperationLte FilterOperation = "LTE"
FilterOperationGte FilterOperation = "GTE"
FilterOperationRegex FilterOperation = "REGEX"
FilterOperationIsnull FilterOperation = "ISNULL"
)
// Values returns all known values for FilterOperation. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (FilterOperation) Values() []FilterOperation {
return []FilterOperation{
"EQ",
"LT",
"GT",
"LTE",
"GTE",
"REGEX",
"ISNULL",
}
}
type FilterOperator string
// Enum values for FilterOperator
const (
FilterOperatorGt FilterOperator = "GT"
FilterOperatorGe FilterOperator = "GE"
FilterOperatorLt FilterOperator = "LT"
FilterOperatorLe FilterOperator = "LE"
FilterOperatorEq FilterOperator = "EQ"
FilterOperatorNe FilterOperator = "NE"
)
// Values returns all known values for FilterOperator. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (FilterOperator) Values() []FilterOperator {
return []FilterOperator{
"GT",
"GE",
"LT",
"LE",
"EQ",
"NE",
}
}
type FilterValueType string
// Enum values for FilterValueType
const (
FilterValueTypeColumnextracted FilterValueType = "COLUMNEXTRACTED"
FilterValueTypeConstant FilterValueType = "CONSTANT"
)
// Values returns all known values for FilterValueType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (FilterValueType) Values() []FilterValueType {
return []FilterValueType{
"COLUMNEXTRACTED",
"CONSTANT",
}
}
type GlueRecordType string
// Enum values for GlueRecordType
const (
GlueRecordTypeDate GlueRecordType = "DATE"
GlueRecordTypeString GlueRecordType = "STRING"
GlueRecordTypeTimestamp GlueRecordType = "TIMESTAMP"
GlueRecordTypeInt GlueRecordType = "INT"
GlueRecordTypeFloat GlueRecordType = "FLOAT"
GlueRecordTypeLong GlueRecordType = "LONG"
GlueRecordTypeBigdecimal GlueRecordType = "BIGDECIMAL"
GlueRecordTypeByte GlueRecordType = "BYTE"
GlueRecordTypeShort GlueRecordType = "SHORT"
GlueRecordTypeDouble GlueRecordType = "DOUBLE"
)
// Values returns all known values for GlueRecordType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (GlueRecordType) Values() []GlueRecordType {
return []GlueRecordType{
"DATE",
"STRING",
"TIMESTAMP",
"INT",
"FLOAT",
"LONG",
"BIGDECIMAL",
"BYTE",
"SHORT",
"DOUBLE",
}
}
type HudiTargetCompressionType string
// Enum values for HudiTargetCompressionType
const (
HudiTargetCompressionTypeGzip HudiTargetCompressionType = "gzip"
HudiTargetCompressionTypeLzo HudiTargetCompressionType = "lzo"
HudiTargetCompressionTypeUncompressed HudiTargetCompressionType = "uncompressed"
HudiTargetCompressionTypeSnappy HudiTargetCompressionType = "snappy"
)
// Values returns all known values for HudiTargetCompressionType. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (HudiTargetCompressionType) Values() []HudiTargetCompressionType {
return []HudiTargetCompressionType{
"gzip",
"lzo",
"uncompressed",
"snappy",
}
}
type JDBCConnectionType string
// Enum values for JDBCConnectionType
const (
JDBCConnectionTypeSqlserver JDBCConnectionType = "sqlserver"
JDBCConnectionTypeMysql JDBCConnectionType = "mysql"
JDBCConnectionTypeOracle JDBCConnectionType = "oracle"
JDBCConnectionTypePostgresql JDBCConnectionType = "postgresql"
JDBCConnectionTypeRedshift JDBCConnectionType = "redshift"
)
// Values returns all known values for JDBCConnectionType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (JDBCConnectionType) Values() []JDBCConnectionType {
return []JDBCConnectionType{
"sqlserver",
"mysql",
"oracle",
"postgresql",
"redshift",
}
}
type JDBCDataType string
// Enum values for JDBCDataType
const (
JDBCDataTypeArray JDBCDataType = "ARRAY"
JDBCDataTypeBigint JDBCDataType = "BIGINT"
JDBCDataTypeBinary JDBCDataType = "BINARY"
JDBCDataTypeBit JDBCDataType = "BIT"
JDBCDataTypeBlob JDBCDataType = "BLOB"
JDBCDataTypeBoolean JDBCDataType = "BOOLEAN"
JDBCDataTypeChar JDBCDataType = "CHAR"
JDBCDataTypeClob JDBCDataType = "CLOB"
JDBCDataTypeDatalink JDBCDataType = "DATALINK"
JDBCDataTypeDate JDBCDataType = "DATE"
JDBCDataTypeDecimal JDBCDataType = "DECIMAL"
JDBCDataTypeDistinct JDBCDataType = "DISTINCT"
JDBCDataTypeDouble JDBCDataType = "DOUBLE"
JDBCDataTypeFloat JDBCDataType = "FLOAT"
JDBCDataTypeInteger JDBCDataType = "INTEGER"
JDBCDataTypeJavaObject JDBCDataType = "JAVA_OBJECT"
JDBCDataTypeLongnvarchar JDBCDataType = "LONGNVARCHAR"
JDBCDataTypeLongvarbinary JDBCDataType = "LONGVARBINARY"
JDBCDataTypeLongvarchar JDBCDataType = "LONGVARCHAR"
JDBCDataTypeNchar JDBCDataType = "NCHAR"
JDBCDataTypeNclob JDBCDataType = "NCLOB"
JDBCDataTypeNull JDBCDataType = "NULL"
JDBCDataTypeNumeric JDBCDataType = "NUMERIC"
JDBCDataTypeNvarchar JDBCDataType = "NVARCHAR"
JDBCDataTypeOther JDBCDataType = "OTHER"
JDBCDataTypeReal JDBCDataType = "REAL"
JDBCDataTypeRef JDBCDataType = "REF"
JDBCDataTypeRefCursor JDBCDataType = "REF_CURSOR"
JDBCDataTypeRowid JDBCDataType = "ROWID"
JDBCDataTypeSmallint JDBCDataType = "SMALLINT"
JDBCDataTypeSqlxml JDBCDataType = "SQLXML"
JDBCDataTypeStruct JDBCDataType = "STRUCT"
JDBCDataTypeTime JDBCDataType = "TIME"
JDBCDataTypeTimeWithTimezone JDBCDataType = "TIME_WITH_TIMEZONE"
JDBCDataTypeTimestamp JDBCDataType = "TIMESTAMP"
JDBCDataTypeTimestampWithTimezone JDBCDataType = "TIMESTAMP_WITH_TIMEZONE"
JDBCDataTypeTinyint JDBCDataType = "TINYINT"
JDBCDataTypeVarbinary JDBCDataType = "VARBINARY"
JDBCDataTypeVarchar JDBCDataType = "VARCHAR"
)
// Values returns all known values for JDBCDataType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (JDBCDataType) Values() []JDBCDataType {
return []JDBCDataType{
"ARRAY",
"BIGINT",
"BINARY",
"BIT",
"BLOB",
"BOOLEAN",
"CHAR",
"CLOB",
"DATALINK",
"DATE",
"DECIMAL",
"DISTINCT",
"DOUBLE",
"FLOAT",
"INTEGER",
"JAVA_OBJECT",
"LONGNVARCHAR",
"LONGVARBINARY",
"LONGVARCHAR",
"NCHAR",
"NCLOB",
"NULL",
"NUMERIC",
"NVARCHAR",
"OTHER",
"REAL",
"REF",
"REF_CURSOR",
"ROWID",
"SMALLINT",
"SQLXML",
"STRUCT",
"TIME",
"TIME_WITH_TIMEZONE",
"TIMESTAMP",
"TIMESTAMP_WITH_TIMEZONE",
"TINYINT",
"VARBINARY",
"VARCHAR",
}
}
type JdbcMetadataEntry string
// Enum values for JdbcMetadataEntry
const (
JdbcMetadataEntryComments JdbcMetadataEntry = "COMMENTS"
JdbcMetadataEntryRawtypes JdbcMetadataEntry = "RAWTYPES"
)
// Values returns all known values for JdbcMetadataEntry. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (JdbcMetadataEntry) Values() []JdbcMetadataEntry {
return []JdbcMetadataEntry{
"COMMENTS",
"RAWTYPES",
}
}
type JobBookmarksEncryptionMode string
// Enum values for JobBookmarksEncryptionMode
const (
JobBookmarksEncryptionModeDisabled JobBookmarksEncryptionMode = "DISABLED"
JobBookmarksEncryptionModeCsekms JobBookmarksEncryptionMode = "CSE-KMS"
)
// Values returns all known values for JobBookmarksEncryptionMode. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (JobBookmarksEncryptionMode) Values() []JobBookmarksEncryptionMode {
return []JobBookmarksEncryptionMode{
"DISABLED",
"CSE-KMS",
}
}
type JobRunState string
// Enum values for JobRunState
const (
JobRunStateStarting JobRunState = "STARTING"
JobRunStateRunning JobRunState = "RUNNING"
JobRunStateStopping JobRunState = "STOPPING"
JobRunStateStopped JobRunState = "STOPPED"
JobRunStateSucceeded JobRunState = "SUCCEEDED"
JobRunStateFailed JobRunState = "FAILED"
JobRunStateTimeout JobRunState = "TIMEOUT"
JobRunStateError JobRunState = "ERROR"
JobRunStateWaiting JobRunState = "WAITING"
)
// Values returns all known values for JobRunState. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (JobRunState) Values() []JobRunState {
return []JobRunState{
"STARTING",
"RUNNING",
"STOPPING",
"STOPPED",
"SUCCEEDED",
"FAILED",
"TIMEOUT",
"ERROR",
"WAITING",
}
}
type JoinType string
// Enum values for JoinType
const (
JoinTypeEquijoin JoinType = "equijoin"
JoinTypeLeft JoinType = "left"
JoinTypeRight JoinType = "right"
JoinTypeOuter JoinType = "outer"
JoinTypeLeftSemi JoinType = "leftsemi"
JoinTypeLeftAnti JoinType = "leftanti"
)
// Values returns all known values for JoinType. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (JoinType) Values() []JoinType {
return []JoinType{
"equijoin",
"left",
"right",
"outer",
"leftsemi",
"leftanti",
}
}
type Language string
// Enum values for Language
const (
LanguagePython Language = "PYTHON"
LanguageScala Language = "SCALA"
)
// Values returns all known values for Language. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Language) Values() []Language {
return []Language{
"PYTHON",
"SCALA",
}
}
type LastCrawlStatus string
// Enum values for LastCrawlStatus
const (
LastCrawlStatusSucceeded LastCrawlStatus = "SUCCEEDED"
LastCrawlStatusCancelled LastCrawlStatus = "CANCELLED"
LastCrawlStatusFailed LastCrawlStatus = "FAILED"
)
// Values returns all known values for LastCrawlStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (LastCrawlStatus) Values() []LastCrawlStatus {
return []LastCrawlStatus{
"SUCCEEDED",
"CANCELLED",
"FAILED",
}
}
type Logical string
// Enum values for Logical
const (
LogicalAnd Logical = "AND"
LogicalAny Logical = "ANY"
)
// Values returns all known values for Logical. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Logical) Values() []Logical {
return []Logical{
"AND",
"ANY",
}
}
type LogicalOperator string
// Enum values for LogicalOperator
const (
LogicalOperatorEquals LogicalOperator = "EQUALS"
)
// Values returns all known values for LogicalOperator. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (LogicalOperator) Values() []LogicalOperator {
return []LogicalOperator{
"EQUALS",
}
}
type MLUserDataEncryptionModeString string
// Enum values for MLUserDataEncryptionModeString
const (
MLUserDataEncryptionModeStringDisabled MLUserDataEncryptionModeString = "DISABLED"
MLUserDataEncryptionModeStringSsekms MLUserDataEncryptionModeString = "SSE-KMS"
)
// Values returns all known values for MLUserDataEncryptionModeString. Note that
// this can be expanded in the future, and so it is only as up to date as the
// client. The ordering of this slice is not guaranteed to be stable across
// updates.
func (MLUserDataEncryptionModeString) Values() []MLUserDataEncryptionModeString {
return []MLUserDataEncryptionModeString{
"DISABLED",
"SSE-KMS",
}
}
type NodeType string
// Enum values for NodeType
const (
NodeTypeCrawler NodeType = "CRAWLER"
NodeTypeJob NodeType = "JOB"
NodeTypeTrigger NodeType = "TRIGGER"
)
// Values returns all known values for NodeType. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (NodeType) Values() []NodeType {
return []NodeType{
"CRAWLER",
"JOB",
"TRIGGER",
}
}
type ParamType string
// Enum values for ParamType
const (
ParamTypeStr ParamType = "str"
ParamTypeInt ParamType = "int"
ParamTypeFloat ParamType = "float"
ParamTypeComplex ParamType = "complex"
ParamTypeBool ParamType = "bool"
ParamTypeList ParamType = "list"
ParamTypeNull ParamType = "null"
)
// Values returns all known values for ParamType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (ParamType) Values() []ParamType {
return []ParamType{
"str",
"int",
"float",
"complex",
"bool",
"list",
"null",
}
}
type ParquetCompressionType string
// Enum values for ParquetCompressionType
const (
ParquetCompressionTypeSnappy ParquetCompressionType = "snappy"
ParquetCompressionTypeLzo ParquetCompressionType = "lzo"
ParquetCompressionTypeGzip ParquetCompressionType = "gzip"
ParquetCompressionTypeUncompressed ParquetCompressionType = "uncompressed"
ParquetCompressionTypeNone ParquetCompressionType = "none"
)
// Values returns all known values for ParquetCompressionType. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ParquetCompressionType) Values() []ParquetCompressionType {
return []ParquetCompressionType{
"snappy",
"lzo",
"gzip",
"uncompressed",
"none",
}
}
type PartitionIndexStatus string
// Enum values for PartitionIndexStatus
const (
PartitionIndexStatusCreating PartitionIndexStatus = "CREATING"
PartitionIndexStatusActive PartitionIndexStatus = "ACTIVE"
PartitionIndexStatusDeleting PartitionIndexStatus = "DELETING"
PartitionIndexStatusFailed PartitionIndexStatus = "FAILED"
)
// Values returns all known values for PartitionIndexStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PartitionIndexStatus) Values() []PartitionIndexStatus {
return []PartitionIndexStatus{
"CREATING",
"ACTIVE",
"DELETING",
"FAILED",
}
}
type Permission string
// Enum values for Permission
const (
PermissionAll Permission = "ALL"
PermissionSelect Permission = "SELECT"
PermissionAlter Permission = "ALTER"
PermissionDrop Permission = "DROP"
PermissionDelete Permission = "DELETE"
PermissionInsert Permission = "INSERT"
PermissionCreateDatabase Permission = "CREATE_DATABASE"
PermissionCreateTable Permission = "CREATE_TABLE"
PermissionDataLocationAccess Permission = "DATA_LOCATION_ACCESS"
)
// Values returns all known values for Permission. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (Permission) Values() []Permission {
return []Permission{
"ALL",
"SELECT",
"ALTER",
"DROP",
"DELETE",
"INSERT",
"CREATE_DATABASE",
"CREATE_TABLE",
"DATA_LOCATION_ACCESS",
}
}
type PermissionType string
// Enum values for PermissionType
const (
PermissionTypeColumnPermission PermissionType = "COLUMN_PERMISSION"
PermissionTypeCellFilterPermission PermissionType = "CELL_FILTER_PERMISSION"
)
// Values returns all known values for PermissionType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PermissionType) Values() []PermissionType {
return []PermissionType{
"COLUMN_PERMISSION",
"CELL_FILTER_PERMISSION",
}
}
type PiiType string
// Enum values for PiiType
const (
PiiTypeRowAudit PiiType = "RowAudit"
PiiTypeRowMasking PiiType = "RowMasking"
PiiTypeColumnAudit PiiType = "ColumnAudit"
PiiTypeColumnMasking PiiType = "ColumnMasking"
)
// Values returns all known values for PiiType. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (PiiType) Values() []PiiType {
return []PiiType{
"RowAudit",
"RowMasking",
"ColumnAudit",
"ColumnMasking",
}
}
type PrincipalType string
// Enum values for PrincipalType
const (
PrincipalTypeUser PrincipalType = "USER"
PrincipalTypeRole PrincipalType = "ROLE"
PrincipalTypeGroup PrincipalType = "GROUP"
)
// Values returns all known values for PrincipalType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (PrincipalType) Values() []PrincipalType {
return []PrincipalType{
"USER",
"ROLE",
"GROUP",
}
}
type QuoteChar string
// Enum values for QuoteChar
const (
QuoteCharQuote QuoteChar = "quote"
QuoteCharQuillemet QuoteChar = "quillemet"
QuoteCharSingleQuote QuoteChar = "single_quote"
QuoteCharDisabled QuoteChar = "disabled"
)
// Values returns all known values for QuoteChar. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (QuoteChar) Values() []QuoteChar {
return []QuoteChar{
"quote",
"quillemet",
"single_quote",
"disabled",
}
}
type RecrawlBehavior string
// Enum values for RecrawlBehavior
const (
RecrawlBehaviorCrawlEverything RecrawlBehavior = "CRAWL_EVERYTHING"
RecrawlBehaviorCrawlNewFoldersOnly RecrawlBehavior = "CRAWL_NEW_FOLDERS_ONLY"
RecrawlBehaviorCrawlEventMode RecrawlBehavior = "CRAWL_EVENT_MODE"
)
// Values returns all known values for RecrawlBehavior. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (RecrawlBehavior) Values() []RecrawlBehavior {
return []RecrawlBehavior{
"CRAWL_EVERYTHING",
"CRAWL_NEW_FOLDERS_ONLY",
"CRAWL_EVENT_MODE",
}
}
type RegistryStatus string
// Enum values for RegistryStatus
const (
RegistryStatusAvailable RegistryStatus = "AVAILABLE"
RegistryStatusDeleting RegistryStatus = "DELETING"
)
// Values returns all known values for RegistryStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (RegistryStatus) Values() []RegistryStatus {
return []RegistryStatus{
"AVAILABLE",
"DELETING",
}
}
type ResourceShareType string
// Enum values for ResourceShareType
const (
ResourceShareTypeForeign ResourceShareType = "FOREIGN"
ResourceShareTypeAll ResourceShareType = "ALL"
ResourceShareTypeFederated ResourceShareType = "FEDERATED"
)
// Values returns all known values for ResourceShareType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ResourceShareType) Values() []ResourceShareType {
return []ResourceShareType{
"FOREIGN",
"ALL",
"FEDERATED",
}
}
type ResourceType string
// Enum values for ResourceType
const (
ResourceTypeJar ResourceType = "JAR"
ResourceTypeFile ResourceType = "FILE"
ResourceTypeArchive ResourceType = "ARCHIVE"
)
// Values returns all known values for ResourceType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ResourceType) Values() []ResourceType {
return []ResourceType{
"JAR",
"FILE",
"ARCHIVE",
}
}
type S3EncryptionMode string
// Enum values for S3EncryptionMode
const (
S3EncryptionModeDisabled S3EncryptionMode = "DISABLED"
S3EncryptionModeSsekms S3EncryptionMode = "SSE-KMS"
S3EncryptionModeSses3 S3EncryptionMode = "SSE-S3"
)
// Values returns all known values for S3EncryptionMode. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (S3EncryptionMode) Values() []S3EncryptionMode {
return []S3EncryptionMode{
"DISABLED",
"SSE-KMS",
"SSE-S3",
}
}
type ScheduleState string
// Enum values for ScheduleState
const (
ScheduleStateScheduled ScheduleState = "SCHEDULED"
ScheduleStateNotScheduled ScheduleState = "NOT_SCHEDULED"
ScheduleStateTransitioning ScheduleState = "TRANSITIONING"
)
// Values returns all known values for ScheduleState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (ScheduleState) Values() []ScheduleState {
return []ScheduleState{
"SCHEDULED",
"NOT_SCHEDULED",
"TRANSITIONING",
}
}
type SchemaDiffType string
// Enum values for SchemaDiffType
const (
SchemaDiffTypeSyntaxDiff SchemaDiffType = "SYNTAX_DIFF"
)
// Values returns all known values for SchemaDiffType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SchemaDiffType) Values() []SchemaDiffType {
return []SchemaDiffType{
"SYNTAX_DIFF",
}
}
type SchemaStatus string
// Enum values for SchemaStatus
const (
SchemaStatusAvailable SchemaStatus = "AVAILABLE"
SchemaStatusPending SchemaStatus = "PENDING"
SchemaStatusDeleting SchemaStatus = "DELETING"
)
// Values returns all known values for SchemaStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SchemaStatus) Values() []SchemaStatus {
return []SchemaStatus{
"AVAILABLE",
"PENDING",
"DELETING",
}
}
type SchemaVersionStatus string
// Enum values for SchemaVersionStatus
const (
SchemaVersionStatusAvailable SchemaVersionStatus = "AVAILABLE"
SchemaVersionStatusPending SchemaVersionStatus = "PENDING"
SchemaVersionStatusFailure SchemaVersionStatus = "FAILURE"
SchemaVersionStatusDeleting SchemaVersionStatus = "DELETING"
)
// Values returns all known values for SchemaVersionStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SchemaVersionStatus) Values() []SchemaVersionStatus {
return []SchemaVersionStatus{
"AVAILABLE",
"PENDING",
"FAILURE",
"DELETING",
}
}
type Separator string
// Enum values for Separator
const (
SeparatorComma Separator = "comma"
SeparatorCtrla Separator = "ctrla"
SeparatorPipe Separator = "pipe"
SeparatorSemicolon Separator = "semicolon"
SeparatorTab Separator = "tab"
)
// Values returns all known values for Separator. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (Separator) Values() []Separator {
return []Separator{
"comma",
"ctrla",
"pipe",
"semicolon",
"tab",
}
}
type SessionStatus string
// Enum values for SessionStatus
const (
SessionStatusProvisioning SessionStatus = "PROVISIONING"
SessionStatusReady SessionStatus = "READY"
SessionStatusFailed SessionStatus = "FAILED"
SessionStatusTimeout SessionStatus = "TIMEOUT"
SessionStatusStopping SessionStatus = "STOPPING"
SessionStatusStopped SessionStatus = "STOPPED"
)
// Values returns all known values for SessionStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SessionStatus) Values() []SessionStatus {
return []SessionStatus{
"PROVISIONING",
"READY",
"FAILED",
"TIMEOUT",
"STOPPING",
"STOPPED",
}
}
type Sort string
// Enum values for Sort
const (
SortAscending Sort = "ASC"
SortDescending Sort = "DESC"
)
// Values returns all known values for Sort. Note that this can be expanded in the
// future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (Sort) Values() []Sort {
return []Sort{
"ASC",
"DESC",
}
}
type SortDirectionType string
// Enum values for SortDirectionType
const (
SortDirectionTypeDescending SortDirectionType = "DESCENDING"
SortDirectionTypeAscending SortDirectionType = "ASCENDING"
)
// Values returns all known values for SortDirectionType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SortDirectionType) Values() []SortDirectionType {
return []SortDirectionType{
"DESCENDING",
"ASCENDING",
}
}
type SourceControlAuthStrategy string
// Enum values for SourceControlAuthStrategy
const (
SourceControlAuthStrategyPersonalAccessToken SourceControlAuthStrategy = "PERSONAL_ACCESS_TOKEN"
SourceControlAuthStrategyAwsSecretsManager SourceControlAuthStrategy = "AWS_SECRETS_MANAGER"
)
// Values returns all known values for SourceControlAuthStrategy. Note that this
// can be expanded in the future, and so it is only as up to date as the client.
// The ordering of this slice is not guaranteed to be stable across updates.
func (SourceControlAuthStrategy) Values() []SourceControlAuthStrategy {
return []SourceControlAuthStrategy{
"PERSONAL_ACCESS_TOKEN",
"AWS_SECRETS_MANAGER",
}
}
type SourceControlProvider string
// Enum values for SourceControlProvider
const (
SourceControlProviderGithub SourceControlProvider = "GITHUB"
SourceControlProviderAwsCodeCommit SourceControlProvider = "AWS_CODE_COMMIT"
)
// Values returns all known values for SourceControlProvider. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (SourceControlProvider) Values() []SourceControlProvider {
return []SourceControlProvider{
"GITHUB",
"AWS_CODE_COMMIT",
}
}
type StartingPosition string
// Enum values for StartingPosition
const (
StartingPositionLatest StartingPosition = "latest"
StartingPositionTrimHorizon StartingPosition = "trim_horizon"
StartingPositionEarliest StartingPosition = "earliest"
StartingPositionTimestamp StartingPosition = "timestamp"
)
// Values returns all known values for StartingPosition. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (StartingPosition) Values() []StartingPosition {
return []StartingPosition{
"latest",
"trim_horizon",
"earliest",
"timestamp",
}
}
type StatementState string
// Enum values for StatementState
const (
StatementStateWaiting StatementState = "WAITING"
StatementStateRunning StatementState = "RUNNING"
StatementStateAvailable StatementState = "AVAILABLE"
StatementStateCancelling StatementState = "CANCELLING"
StatementStateCancelled StatementState = "CANCELLED"
StatementStateError StatementState = "ERROR"
)
// Values returns all known values for StatementState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (StatementState) Values() []StatementState {
return []StatementState{
"WAITING",
"RUNNING",
"AVAILABLE",
"CANCELLING",
"CANCELLED",
"ERROR",
}
}
type TargetFormat string
// Enum values for TargetFormat
const (
TargetFormatJson TargetFormat = "json"
TargetFormatCsv TargetFormat = "csv"
TargetFormatAvro TargetFormat = "avro"
TargetFormatOrc TargetFormat = "orc"
TargetFormatParquet TargetFormat = "parquet"
TargetFormatHudi TargetFormat = "hudi"
TargetFormatDelta TargetFormat = "delta"
)
// Values returns all known values for TargetFormat. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (TargetFormat) Values() []TargetFormat {
return []TargetFormat{
"json",
"csv",
"avro",
"orc",
"parquet",
"hudi",
"delta",
}
}
type TaskRunSortColumnType string
// Enum values for TaskRunSortColumnType
const (
TaskRunSortColumnTypeTaskRunType TaskRunSortColumnType = "TASK_RUN_TYPE"
TaskRunSortColumnTypeStatus TaskRunSortColumnType = "STATUS"
TaskRunSortColumnTypeStarted TaskRunSortColumnType = "STARTED"
)
// Values returns all known values for TaskRunSortColumnType. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (TaskRunSortColumnType) Values() []TaskRunSortColumnType {
return []TaskRunSortColumnType{
"TASK_RUN_TYPE",
"STATUS",
"STARTED",
}
}
type TaskStatusType string
// Enum values for TaskStatusType
const (
TaskStatusTypeStarting TaskStatusType = "STARTING"
TaskStatusTypeRunning TaskStatusType = "RUNNING"
TaskStatusTypeStopping TaskStatusType = "STOPPING"
TaskStatusTypeStopped TaskStatusType = "STOPPED"
TaskStatusTypeSucceeded TaskStatusType = "SUCCEEDED"
TaskStatusTypeFailed TaskStatusType = "FAILED"
TaskStatusTypeTimeout TaskStatusType = "TIMEOUT"
)
// Values returns all known values for TaskStatusType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (TaskStatusType) Values() []TaskStatusType {
return []TaskStatusType{
"STARTING",
"RUNNING",
"STOPPING",
"STOPPED",
"SUCCEEDED",
"FAILED",
"TIMEOUT",
}
}
type TaskType string
// Enum values for TaskType
const (
TaskTypeEvaluation TaskType = "EVALUATION"
TaskTypeLabelingSetGeneration TaskType = "LABELING_SET_GENERATION"
TaskTypeImportLabels TaskType = "IMPORT_LABELS"
TaskTypeExportLabels TaskType = "EXPORT_LABELS"
TaskTypeFindMatches TaskType = "FIND_MATCHES"
)
// Values returns all known values for TaskType. Note that this can be expanded in
// the future, and so it is only as up to date as the client. The ordering of this
// slice is not guaranteed to be stable across updates.
func (TaskType) Values() []TaskType {
return []TaskType{
"EVALUATION",
"LABELING_SET_GENERATION",
"IMPORT_LABELS",
"EXPORT_LABELS",
"FIND_MATCHES",
}
}
type TransformSortColumnType string
// Enum values for TransformSortColumnType
const (
TransformSortColumnTypeName TransformSortColumnType = "NAME"
TransformSortColumnTypeTransformType TransformSortColumnType = "TRANSFORM_TYPE"
TransformSortColumnTypeStatus TransformSortColumnType = "STATUS"
TransformSortColumnTypeCreated TransformSortColumnType = "CREATED"
TransformSortColumnTypeLastModified TransformSortColumnType = "LAST_MODIFIED"
)
// Values returns all known values for TransformSortColumnType. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (TransformSortColumnType) Values() []TransformSortColumnType {
return []TransformSortColumnType{
"NAME",
"TRANSFORM_TYPE",
"STATUS",
"CREATED",
"LAST_MODIFIED",
}
}
type TransformStatusType string
// Enum values for TransformStatusType
const (
TransformStatusTypeNotReady TransformStatusType = "NOT_READY"
TransformStatusTypeReady TransformStatusType = "READY"
TransformStatusTypeDeleting TransformStatusType = "DELETING"
)
// Values returns all known values for TransformStatusType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (TransformStatusType) Values() []TransformStatusType {
return []TransformStatusType{
"NOT_READY",
"READY",
"DELETING",
}
}
type TransformType string
// Enum values for TransformType
const (
TransformTypeFindMatches TransformType = "FIND_MATCHES"
)
// Values returns all known values for TransformType. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (TransformType) Values() []TransformType {
return []TransformType{
"FIND_MATCHES",
}
}
type TriggerState string
// Enum values for TriggerState
const (
TriggerStateCreating TriggerState = "CREATING"
TriggerStateCreated TriggerState = "CREATED"
TriggerStateActivating TriggerState = "ACTIVATING"
TriggerStateActivated TriggerState = "ACTIVATED"
TriggerStateDeactivating TriggerState = "DEACTIVATING"
TriggerStateDeactivated TriggerState = "DEACTIVATED"
TriggerStateDeleting TriggerState = "DELETING"
TriggerStateUpdating TriggerState = "UPDATING"
)
// Values returns all known values for TriggerState. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (TriggerState) Values() []TriggerState {
return []TriggerState{
"CREATING",
"CREATED",
"ACTIVATING",
"ACTIVATED",
"DEACTIVATING",
"DEACTIVATED",
"DELETING",
"UPDATING",
}
}
type TriggerType string
// Enum values for TriggerType
const (
TriggerTypeScheduled TriggerType = "SCHEDULED"
TriggerTypeConditional TriggerType = "CONDITIONAL"
TriggerTypeOnDemand TriggerType = "ON_DEMAND"
TriggerTypeEvent TriggerType = "EVENT"
)
// Values returns all known values for TriggerType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (TriggerType) Values() []TriggerType {
return []TriggerType{
"SCHEDULED",
"CONDITIONAL",
"ON_DEMAND",
"EVENT",
}
}
type UnionType string
// Enum values for UnionType
const (
UnionTypeAll UnionType = "ALL"
UnionTypeDistinct UnionType = "DISTINCT"
)
// Values returns all known values for UnionType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (UnionType) Values() []UnionType {
return []UnionType{
"ALL",
"DISTINCT",
}
}
type UpdateBehavior string
// Enum values for UpdateBehavior
const (
UpdateBehaviorLog UpdateBehavior = "LOG"
UpdateBehaviorUpdateInDatabase UpdateBehavior = "UPDATE_IN_DATABASE"
)
// Values returns all known values for UpdateBehavior. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (UpdateBehavior) Values() []UpdateBehavior {
return []UpdateBehavior{
"LOG",
"UPDATE_IN_DATABASE",
}
}
type UpdateCatalogBehavior string
// Enum values for UpdateCatalogBehavior
const (
UpdateCatalogBehaviorUpdateInDatabase UpdateCatalogBehavior = "UPDATE_IN_DATABASE"
UpdateCatalogBehaviorLog UpdateCatalogBehavior = "LOG"
)
// Values returns all known values for UpdateCatalogBehavior. Note that this can
// be expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (UpdateCatalogBehavior) Values() []UpdateCatalogBehavior {
return []UpdateCatalogBehavior{
"UPDATE_IN_DATABASE",
"LOG",
}
}
type WorkerType string
// Enum values for WorkerType
const (
WorkerTypeStandard WorkerType = "Standard"
WorkerTypeG1x WorkerType = "G.1X"
WorkerTypeG2x WorkerType = "G.2X"
WorkerTypeG025x WorkerType = "G.025X"
WorkerTypeG4x WorkerType = "G.4X"
WorkerTypeG8x WorkerType = "G.8X"
WorkerTypeZ2x WorkerType = "Z.2X"
)
// Values returns all known values for WorkerType. Note that this can be expanded
// in the future, and so it is only as up to date as the client. The ordering of
// this slice is not guaranteed to be stable across updates.
func (WorkerType) Values() []WorkerType {
return []WorkerType{
"Standard",
"G.1X",
"G.2X",
"G.025X",
"G.4X",
"G.8X",
"Z.2X",
}
}
type WorkflowRunStatus string
// Enum values for WorkflowRunStatus
const (
WorkflowRunStatusRunning WorkflowRunStatus = "RUNNING"
WorkflowRunStatusCompleted WorkflowRunStatus = "COMPLETED"
WorkflowRunStatusStopping WorkflowRunStatus = "STOPPING"
WorkflowRunStatusStopped WorkflowRunStatus = "STOPPED"
WorkflowRunStatusError WorkflowRunStatus = "ERROR"
)
// Values returns all known values for WorkflowRunStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client. The
// ordering of this slice is not guaranteed to be stable across updates.
func (WorkflowRunStatus) Values() []WorkflowRunStatus {
return []WorkflowRunStatus{
"RUNNING",
"COMPLETED",
"STOPPING",
"STOPPED",
"ERROR",
}
}
| 2,013 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/aws/smithy-go"
)
// Access to a resource was denied.
type AccessDeniedException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AccessDeniedException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AccessDeniedException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AccessDeniedException"
}
return *e.ErrorCodeOverride
}
func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A resource to be created or added already exists.
type AlreadyExistsException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *AlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *AlreadyExistsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *AlreadyExistsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "AlreadyExistsException"
}
return *e.ErrorCodeOverride
}
func (e *AlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Two processes are trying to modify a resource simultaneously.
type ConcurrentModificationException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ConcurrentModificationException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ConcurrentModificationException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ConcurrentModificationException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ConcurrentModificationException"
}
return *e.ErrorCodeOverride
}
func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// Too many jobs are being run concurrently.
type ConcurrentRunsExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ConcurrentRunsExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ConcurrentRunsExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ConcurrentRunsExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ConcurrentRunsExceededException"
}
return *e.ErrorCodeOverride
}
func (e *ConcurrentRunsExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A specified condition was not satisfied.
type ConditionCheckFailureException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ConditionCheckFailureException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ConditionCheckFailureException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ConditionCheckFailureException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ConditionCheckFailureException"
}
return *e.ErrorCodeOverride
}
func (e *ConditionCheckFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The CreatePartitions API was called on a table that has indexes enabled.
type ConflictException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ConflictException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ConflictException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ConflictException"
}
return *e.ErrorCodeOverride
}
func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified crawler is not running.
type CrawlerNotRunningException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *CrawlerNotRunningException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *CrawlerNotRunningException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *CrawlerNotRunningException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "CrawlerNotRunningException"
}
return *e.ErrorCodeOverride
}
func (e *CrawlerNotRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The operation cannot be performed because the crawler is already running.
type CrawlerRunningException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *CrawlerRunningException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *CrawlerRunningException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *CrawlerRunningException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "CrawlerRunningException"
}
return *e.ErrorCodeOverride
}
func (e *CrawlerRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified crawler is stopping.
type CrawlerStoppingException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *CrawlerStoppingException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *CrawlerStoppingException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *CrawlerStoppingException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "CrawlerStoppingException"
}
return *e.ErrorCodeOverride
}
func (e *CrawlerStoppingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A specified entity does not exist
type EntityNotFoundException struct {
Message *string
ErrorCodeOverride *string
FromFederationSource *bool
noSmithyDocumentSerde
}
func (e *EntityNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *EntityNotFoundException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *EntityNotFoundException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "EntityNotFoundException"
}
return *e.ErrorCodeOverride
}
func (e *EntityNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A federated resource already exists.
type FederatedResourceAlreadyExistsException struct {
Message *string
ErrorCodeOverride *string
AssociatedGlueResource *string
noSmithyDocumentSerde
}
func (e *FederatedResourceAlreadyExistsException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *FederatedResourceAlreadyExistsException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *FederatedResourceAlreadyExistsException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "FederatedResourceAlreadyExistsException"
}
return *e.ErrorCodeOverride
}
func (e *FederatedResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// A federation source failed.
type FederationSourceException struct {
Message *string
ErrorCodeOverride *string
FederationSourceErrorCode FederationSourceErrorCode
noSmithyDocumentSerde
}
func (e *FederationSourceException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *FederationSourceException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *FederationSourceException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "FederationSourceException"
}
return *e.ErrorCodeOverride
}
func (e *FederationSourceException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
type FederationSourceRetryableException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *FederationSourceRetryableException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *FederationSourceRetryableException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *FederationSourceRetryableException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "FederationSourceRetryableException"
}
return *e.ErrorCodeOverride
}
func (e *FederationSourceRetryableException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// An encryption operation failed.
type GlueEncryptionException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *GlueEncryptionException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *GlueEncryptionException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *GlueEncryptionException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "GlueEncryptionException"
}
return *e.ErrorCodeOverride
}
func (e *GlueEncryptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The same unique identifier was associated with two different records.
type IdempotentParameterMismatchException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *IdempotentParameterMismatchException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *IdempotentParameterMismatchException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *IdempotentParameterMismatchException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "IdempotentParameterMismatchException"
}
return *e.ErrorCodeOverride
}
func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The blueprint is in an invalid state to perform a requested operation.
type IllegalBlueprintStateException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *IllegalBlueprintStateException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *IllegalBlueprintStateException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *IllegalBlueprintStateException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "IllegalBlueprintStateException"
}
return *e.ErrorCodeOverride
}
func (e *IllegalBlueprintStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The session is in an invalid state to perform a requested operation.
type IllegalSessionStateException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *IllegalSessionStateException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *IllegalSessionStateException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *IllegalSessionStateException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "IllegalSessionStateException"
}
return *e.ErrorCodeOverride
}
func (e *IllegalSessionStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The workflow is in an invalid state to perform a requested operation.
type IllegalWorkflowStateException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *IllegalWorkflowStateException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *IllegalWorkflowStateException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *IllegalWorkflowStateException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "IllegalWorkflowStateException"
}
return *e.ErrorCodeOverride
}
func (e *IllegalWorkflowStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// An internal service error occurred.
type InternalServiceException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InternalServiceException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InternalServiceException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InternalServiceException"
}
return *e.ErrorCodeOverride
}
func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
// The input provided was not valid.
type InvalidInputException struct {
Message *string
ErrorCodeOverride *string
FromFederationSource *bool
noSmithyDocumentSerde
}
func (e *InvalidInputException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidInputException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidInputException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidInputException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// An error that indicates your data is in an invalid state.
type InvalidStateException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *InvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *InvalidStateException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *InvalidStateException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "InvalidStateException"
}
return *e.ErrorCodeOverride
}
func (e *InvalidStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The machine learning transform is not ready to run.
type MLTransformNotReadyException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *MLTransformNotReadyException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *MLTransformNotReadyException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *MLTransformNotReadyException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "MLTransformNotReadyException"
}
return *e.ErrorCodeOverride
}
func (e *MLTransformNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// There is no applicable schedule.
type NoScheduleException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *NoScheduleException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *NoScheduleException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *NoScheduleException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "NoScheduleException"
}
return *e.ErrorCodeOverride
}
func (e *NoScheduleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The operation timed out.
type OperationTimeoutException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *OperationTimeoutException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *OperationTimeoutException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *OperationTimeoutException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "OperationTimeoutException"
}
return *e.ErrorCodeOverride
}
func (e *OperationTimeoutException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The operation timed out.
type PermissionTypeMismatchException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *PermissionTypeMismatchException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *PermissionTypeMismatchException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *PermissionTypeMismatchException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "PermissionTypeMismatchException"
}
return *e.ErrorCodeOverride
}
func (e *PermissionTypeMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A resource was not ready for a transaction.
type ResourceNotReadyException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourceNotReadyException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceNotReadyException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceNotReadyException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceNotReadyException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A resource numerical limit was exceeded.
type ResourceNumberLimitExceededException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ResourceNumberLimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ResourceNumberLimitExceededException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ResourceNumberLimitExceededException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ResourceNumberLimitExceededException"
}
return *e.ErrorCodeOverride
}
func (e *ResourceNumberLimitExceededException) ErrorFault() smithy.ErrorFault {
return smithy.FaultClient
}
// The specified scheduler is not running.
type SchedulerNotRunningException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *SchedulerNotRunningException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *SchedulerNotRunningException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *SchedulerNotRunningException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "SchedulerNotRunningException"
}
return *e.ErrorCodeOverride
}
func (e *SchedulerNotRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified scheduler is already running.
type SchedulerRunningException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *SchedulerRunningException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *SchedulerRunningException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *SchedulerRunningException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "SchedulerRunningException"
}
return *e.ErrorCodeOverride
}
func (e *SchedulerRunningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// The specified scheduler is transitioning.
type SchedulerTransitioningException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *SchedulerTransitioningException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *SchedulerTransitioningException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *SchedulerTransitioningException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "SchedulerTransitioningException"
}
return *e.ErrorCodeOverride
}
func (e *SchedulerTransitioningException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// A value could not be validated.
type ValidationException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *ValidationException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *ValidationException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "ValidationException"
}
return *e.ErrorCodeOverride
}
func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
// There was a version conflict.
type VersionMismatchException struct {
Message *string
ErrorCodeOverride *string
noSmithyDocumentSerde
}
func (e *VersionMismatchException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
}
func (e *VersionMismatchException) ErrorMessage() string {
if e.Message == nil {
return ""
}
return *e.Message
}
func (e *VersionMismatchException) ErrorCode() string {
if e == nil || e.ErrorCodeOverride == nil {
return "VersionMismatchException"
}
return *e.ErrorCodeOverride
}
func (e *VersionMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
| 856 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Defines an action to be initiated by a trigger.
type Action struct {
// The job arguments used when this trigger fires. For this job run, they replace
// the default arguments set in the job definition itself. You can specify
// arguments here that your own job-execution script consumes, as well as arguments
// that Glue itself consumes. For information about how to specify and consume your
// own Job arguments, see the Calling Glue APIs in Python (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html)
// topic in the developer guide. For information about the key-value pairs that
// Glue consumes to set up your job, see the Special Parameters Used by Glue (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
// topic in the developer guide.
Arguments map[string]string
// The name of the crawler to be used with this action.
CrawlerName *string
// The name of a job to be run.
JobName *string
// Specifies configuration properties of a job run notification.
NotificationProperty *NotificationProperty
// The name of the SecurityConfiguration structure to be used with this action.
SecurityConfiguration *string
// The JobRun timeout in minutes. This is the maximum time that a job run can
// consume resources before it is terminated and enters TIMEOUT status. The
// default is 2,880 minutes (48 hours). This overrides the timeout value set in the
// parent job.
Timeout *int32
noSmithyDocumentSerde
}
// Specifies a transform that groups rows by chosen fields and computes the
// aggregated value by specified function.
type Aggregate struct {
// Specifies the aggregate functions to be performed on specified fields.
//
// This member is required.
Aggs []AggregateOperation
// Specifies the fields to group by.
//
// This member is required.
Groups [][]string
// Specifies the fields and rows to use as inputs for the aggregate transform.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Specifies the set of parameters needed to perform aggregation in the aggregate
// transform.
type AggregateOperation struct {
// Specifies the aggregation function to apply. Possible aggregation functions
// include: avg countDistinct, count, first, last, kurtosis, max, min, skewness,
// stddev_samp, stddev_pop, sum, sumDistinct, var_samp, var_pop
//
// This member is required.
AggFunc AggFunction
// Specifies the column on the data set on which the aggregation function will be
// applied.
//
// This member is required.
Column []string
noSmithyDocumentSerde
}
// Specifies an optional value when connecting to the Redshift cluster.
type AmazonRedshiftAdvancedOption struct {
// The key for the additional connection option.
Key *string
// The value for the additional connection option.
Value *string
noSmithyDocumentSerde
}
// Specifies an Amazon Redshift node.
type AmazonRedshiftNodeData struct {
// The access type for the Redshift connection. Can be a direct connection or
// catalog connections.
AccessType *string
// Specifies how writing to a Redshift cluser will occur.
Action *string
// Optional values when connecting to the Redshift cluster.
AdvancedOptions []AmazonRedshiftAdvancedOption
// The name of the Glue Data Catalog database when working with a data catalog.
CatalogDatabase *Option
// The Redshift schema name when working with a data catalog.
CatalogRedshiftSchema *string
// The database table to read from.
CatalogRedshiftTable *string
// The Glue Data Catalog table name when working with a data catalog.
CatalogTable *Option
// The Glue connection to the Redshift cluster.
Connection *Option
// Specifies the name of the connection that is associated with the catalog table
// used.
CrawlerConnection *string
// Optional. The role name use when connection to S3. The IAM role ill default to
// the role on the job when left blank.
IamRole *Option
// The action used when to detemine how a MERGE in a Redshift sink will be handled.
MergeAction *string
// The SQL used in a custom merge to deal with matching records.
MergeClause *string
// The action used when to detemine how a MERGE in a Redshift sink will be handled
// when an existing record matches a new record.
MergeWhenMatched *string
// The action used when to detemine how a MERGE in a Redshift sink will be handled
// when an existing record doesn't match a new record.
MergeWhenNotMatched *string
// The SQL used before a MERGE or APPEND with upsert is run.
PostAction *string
// The SQL used before a MERGE or APPEND with upsert is run.
PreAction *string
// The SQL used to fetch the data from a Redshift sources when the SourceType is
// 'query'.
SampleQuery *string
// The Redshift schema name when working with a direct connection.
Schema *Option
// The list of column names used to determine a matching record when doing a MERGE
// or APPEND with upsert.
SelectedColumns []Option
// The source type to specify whether a specific table is the source or a custom
// query.
SourceType *string
// The name of the temporary staging table that is used when doing a MERGE or
// APPEND with upsert.
StagingTable *string
// The Redshift table name when working with a direct connection.
Table *Option
// Specifies the prefix to a table.
TablePrefix *string
// The array of schema output for a given node.
TableSchema []Option
// The Amazon S3 path where temporary data can be staged when copying out of the
// database.
TempDir *string
// The action used on Redshift sinks when doing an APPEND.
Upsert bool
noSmithyDocumentSerde
}
// Specifies an Amazon Redshift source.
type AmazonRedshiftSource struct {
// Specifies the data of the Amazon Reshift source node.
Data *AmazonRedshiftNodeData
// The name of the Amazon Redshift source.
Name *string
noSmithyDocumentSerde
}
// Specifies an Amazon Redshift target.
type AmazonRedshiftTarget struct {
// Specifies the data of the Amazon Reshift target node.
Data *AmazonRedshiftNodeData
// The nodes that are inputs to the data target.
Inputs []string
// The name of the Amazon Redshift target.
Name *string
noSmithyDocumentSerde
}
// Specifies a transform that maps data property keys in the data source to data
// property keys in the data target. You can rename keys, modify the data types for
// keys, and choose which keys to drop from the dataset.
type ApplyMapping struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// Specifies the mapping of data property keys in the data source to data property
// keys in the data target.
//
// This member is required.
Mapping []Mapping
// The name of the transform node.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Specifies a connector to an Amazon Athena data source.
type AthenaConnectorSource struct {
// The name of the connection that is associated with the connector.
//
// This member is required.
ConnectionName *string
// The type of connection, such as marketplace.athena or custom.athena,
// designating a connection to an Amazon Athena data store.
//
// This member is required.
ConnectionType *string
// The name of a connector that assists with accessing the data store in Glue
// Studio.
//
// This member is required.
ConnectorName *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the Cloudwatch log group to read from. For example,
// /aws-glue/jobs/output .
//
// This member is required.
SchemaName *string
// The name of the table in the data source.
ConnectionTable *string
// Specifies the data schema for the custom Athena source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// A structure containing the Lake Formation audit context.
type AuditContext struct {
// A string containing the additional audit context information.
AdditionalAuditContext *string
// All columns request for audit.
AllColumnsRequested *bool
// The requested columns for audit.
RequestedColumns []string
noSmithyDocumentSerde
}
// A list of errors that can occur when registering partition indexes for an
// existing table. These errors give the details about why an index registration
// failed and provide a limited number of partitions in the response, so that you
// can fix the partitions at fault and try registering the index again. The most
// common set of errors that can occur are categorized as follows:
// - EncryptedPartitionError: The partitions are encrypted.
// - InvalidPartitionTypeDataError: The partition value doesn't match the data
// type for that partition column.
// - MissingPartitionValueError: The partitions are encrypted.
// - UnsupportedPartitionCharacterError: Characters inside the partition value
// are not supported. For example: U+0000 , U+0001, U+0002.
// - InternalError: Any error which does not belong to other error codes.
type BackfillError struct {
// The error code for an error that occurred when registering partition indexes
// for an existing table.
Code BackfillErrorCode
// A list of a limited number of partitions in the response.
Partitions []PartitionValueList
noSmithyDocumentSerde
}
// Specifies a target that uses a Glue Data Catalog table.
type BasicCatalogTarget struct {
// The database that contains the table you want to use as the target. This
// database must already exist in the Data Catalog.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of your data target.
//
// This member is required.
Name *string
// The table that defines the schema of your output data. This table must already
// exist in the Data Catalog.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Records an error that occurred when attempting to stop a specified job run.
type BatchStopJobRunError struct {
// Specifies details about the error that was encountered.
ErrorDetail *ErrorDetail
// The name of the job definition that is used in the job run in question.
JobName *string
// The JobRunId of the job run in question.
JobRunId *string
noSmithyDocumentSerde
}
// Records a successful request to stop a specified JobRun .
type BatchStopJobRunSuccessfulSubmission struct {
// The name of the job definition used in the job run that was stopped.
JobName *string
// The JobRunId of the job run that was stopped.
JobRunId *string
noSmithyDocumentSerde
}
// Contains information about a batch update partition error.
type BatchUpdatePartitionFailureEntry struct {
// The details about the batch update partition error.
ErrorDetail *ErrorDetail
// A list of values defining the partitions.
PartitionValueList []string
noSmithyDocumentSerde
}
// A structure that contains the values and structure used to update a partition.
type BatchUpdatePartitionRequestEntry struct {
// The structure used to update a partition.
//
// This member is required.
PartitionInput *PartitionInput
// A list of values defining the partitions.
//
// This member is required.
PartitionValueList []string
noSmithyDocumentSerde
}
// Defines column statistics supported for bit sequence data values.
type BinaryColumnStatisticsData struct {
// The average bit sequence length in the column.
//
// This member is required.
AverageLength float64
// The size of the longest bit sequence in the column.
//
// This member is required.
MaximumLength int64
// The number of null values in the column.
//
// This member is required.
NumberOfNulls int64
noSmithyDocumentSerde
}
// The details of a blueprint.
type Blueprint struct {
// Specifies the path in Amazon S3 where the blueprint is published.
BlueprintLocation *string
// Specifies a path in Amazon S3 where the blueprint is copied when you call
// CreateBlueprint/UpdateBlueprint to register the blueprint in Glue.
BlueprintServiceLocation *string
// The date and time the blueprint was registered.
CreatedOn *time.Time
// The description of the blueprint.
Description *string
// An error message.
ErrorMessage *string
// When there are multiple versions of a blueprint and the latest version has some
// errors, this attribute indicates the last successful blueprint definition that
// is available with the service.
LastActiveDefinition *LastActiveDefinition
// The date and time the blueprint was last modified.
LastModifiedOn *time.Time
// The name of the blueprint.
Name *string
// A JSON string that indicates the list of parameter specifications for the
// blueprint.
ParameterSpec *string
// The status of the blueprint registration.
// - Creating — The blueprint registration is in progress.
// - Active — The blueprint has been successfully registered.
// - Updating — An update to the blueprint registration is in progress.
// - Failed — The blueprint registration failed.
Status BlueprintStatus
noSmithyDocumentSerde
}
// The details of a blueprint.
type BlueprintDetails struct {
// The name of the blueprint.
BlueprintName *string
// The run ID for this blueprint.
RunId *string
noSmithyDocumentSerde
}
// The details of a blueprint run.
type BlueprintRun struct {
// The name of the blueprint.
BlueprintName *string
// The date and time that the blueprint run completed.
CompletedOn *time.Time
// Indicates any errors that are seen while running the blueprint.
ErrorMessage *string
// The blueprint parameters as a string. You will have to provide a value for each
// key that is required from the parameter spec that is defined in the
// Blueprint$ParameterSpec .
Parameters *string
// The role ARN. This role will be assumed by the Glue service and will be used to
// create the workflow and other entities of a workflow.
RoleArn *string
// If there are any errors while creating the entities of a workflow, we try to
// roll back the created entities until that point and delete them. This attribute
// indicates the errors seen while trying to delete the entities that are created.
RollbackErrorMessage *string
// The run ID for this blueprint run.
RunId *string
// The date and time that the blueprint run started.
StartedOn *time.Time
// The state of the blueprint run. Possible values are:
// - Running — The blueprint run is in progress.
// - Succeeded — The blueprint run completed successfully.
// - Failed — The blueprint run failed and rollback is complete.
// - Rolling Back — The blueprint run failed and rollback is in progress.
State BlueprintRunState
// The name of a workflow that is created as a result of a successful blueprint
// run. If a blueprint run has an error, there will not be a workflow created.
WorkflowName *string
noSmithyDocumentSerde
}
// Defines column statistics supported for Boolean data columns.
type BooleanColumnStatisticsData struct {
// The number of false values in the column.
//
// This member is required.
NumberOfFalses int64
// The number of null values in the column.
//
// This member is required.
NumberOfNulls int64
// The number of true values in the column.
//
// This member is required.
NumberOfTrues int64
noSmithyDocumentSerde
}
// Specifies a Delta Lake data source that is registered in the Glue Data Catalog.
type CatalogDeltaSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the Delta Lake data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
// Specifies additional connection options.
AdditionalDeltaOptions map[string]string
// Specifies the data schema for the Delta Lake source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies a table definition in the Glue Data Catalog.
type CatalogEntry struct {
// The database in which the table metadata resides.
//
// This member is required.
DatabaseName *string
// The name of the table in question.
//
// This member is required.
TableName *string
noSmithyDocumentSerde
}
// Specifies a Hudi data source that is registered in the Glue Data Catalog.
type CatalogHudiSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the Hudi data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
// Specifies additional connection options.
AdditionalHudiOptions map[string]string
// Specifies the data schema for the Hudi source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// A structure containing migration status information.
type CatalogImportStatus struct {
// True if the migration has completed, or False otherwise.
ImportCompleted bool
// The time that the migration was started.
ImportTime *time.Time
// The name of the person who initiated the migration.
ImportedBy *string
noSmithyDocumentSerde
}
// Specifies an Apache Kafka data store in the Data Catalog.
type CatalogKafkaSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data store.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
// Specifies options related to data preview for viewing a sample of your data.
DataPreviewOptions *StreamingDataPreviewOptions
// Whether to automatically determine the schema from the incoming data.
DetectSchema *bool
// Specifies the streaming options.
StreamingOptions *KafkaStreamingSourceOptions
// The amount of time to spend processing each micro batch.
WindowSize *int32
noSmithyDocumentSerde
}
// Specifies a Kinesis data source in the Glue Data Catalog.
type CatalogKinesisSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
// Additional options for data preview.
DataPreviewOptions *StreamingDataPreviewOptions
// Whether to automatically determine the schema from the incoming data.
DetectSchema *bool
// Additional options for the Kinesis streaming data source.
StreamingOptions *KinesisStreamingSourceOptions
// The amount of time to spend processing each micro batch.
WindowSize *int32
noSmithyDocumentSerde
}
// A policy that specifies update behavior for the crawler.
type CatalogSchemaChangePolicy struct {
// Whether to use the specified update behavior when the crawler finds a changed
// schema.
EnableUpdateCatalog *bool
// The update behavior when the crawler finds a changed schema.
UpdateBehavior UpdateCatalogBehavior
noSmithyDocumentSerde
}
// Specifies a data store in the Glue Data Catalog.
type CatalogSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data store.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies an Glue Data Catalog target.
type CatalogTarget struct {
// The name of the database to be synchronized.
//
// This member is required.
DatabaseName *string
// A list of the tables to be synchronized.
//
// This member is required.
Tables []string
// The name of the connection for an Amazon S3-backed Data Catalog table to be a
// target of the crawl when using a Catalog connection type paired with a NETWORK
// Connection type.
ConnectionName *string
// A valid Amazon dead-letter SQS ARN. For example,
// arn:aws:sqs:region:account:deadLetterQueue .
DlqEventQueueArn *string
// A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs .
EventQueueArn *string
noSmithyDocumentSerde
}
// Classifiers are triggered during a crawl task. A classifier checks whether a
// given file is in a format it can handle. If it is, the classifier creates a
// schema in the form of a StructType object that matches that data format. You
// can use the standard classifiers that Glue provides, or you can write your own
// classifiers to best categorize your data sources and specify the appropriate
// schemas to use for them. A classifier can be a grok classifier, an XML
// classifier, a JSON classifier, or a custom CSV classifier, as specified in one
// of the fields in the Classifier object.
type Classifier struct {
// A classifier for comma-separated values (CSV).
CsvClassifier *CsvClassifier
// A classifier that uses grok .
GrokClassifier *GrokClassifier
// A classifier for JSON content.
JsonClassifier *JsonClassifier
// A classifier for XML content.
XMLClassifier *XMLClassifier
noSmithyDocumentSerde
}
// Specifies how Amazon CloudWatch data should be encrypted.
type CloudWatchEncryption struct {
// The encryption mode to use for CloudWatch data.
CloudWatchEncryptionMode CloudWatchEncryptionMode
// The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
KmsKeyArn *string
noSmithyDocumentSerde
}
// CodeGenConfigurationNode enumerates all valid Node types. One and only one of
// its member variables can be populated.
type CodeGenConfigurationNode struct {
// Specifies a transform that groups rows by chosen fields and computes the
// aggregated value by specified function.
Aggregate *Aggregate
// Specifies a target that writes to a data source in Amazon Redshift.
AmazonRedshiftSource *AmazonRedshiftSource
// Specifies a target that writes to a data target in Amazon Redshift.
AmazonRedshiftTarget *AmazonRedshiftTarget
// Specifies a transform that maps data property keys in the data source to data
// property keys in the data target. You can rename keys, modify the data types for
// keys, and choose which keys to drop from the dataset.
ApplyMapping *ApplyMapping
// Specifies a connector to an Amazon Athena data source.
AthenaConnectorSource *AthenaConnectorSource
// Specifies a Delta Lake data source that is registered in the Glue Data Catalog.
CatalogDeltaSource *CatalogDeltaSource
// Specifies a Hudi data source that is registered in the Glue Data Catalog.
CatalogHudiSource *CatalogHudiSource
// Specifies an Apache Kafka data store in the Data Catalog.
CatalogKafkaSource *CatalogKafkaSource
// Specifies a Kinesis data source in the Glue Data Catalog.
CatalogKinesisSource *CatalogKinesisSource
// Specifies a data store in the Glue Data Catalog.
CatalogSource *CatalogSource
// Specifies a target that uses a Glue Data Catalog table.
CatalogTarget *BasicCatalogTarget
// Specifies a transform that uses custom code you provide to perform the data
// transformation. The output is a collection of DynamicFrames.
CustomCode *CustomCode
// Specifies the direct JDBC source connection.
DirectJDBCSource *DirectJDBCSource
// Specifies an Apache Kafka data store.
DirectKafkaSource *DirectKafkaSource
// Specifies a direct Amazon Kinesis data source.
DirectKinesisSource *DirectKinesisSource
// Specifies a transform that removes rows of repeating data from a data set.
DropDuplicates *DropDuplicates
// Specifies a transform that chooses the data property keys that you want to drop.
DropFields *DropFields
// Specifies a transform that removes columns from the dataset if all values in
// the column are 'null'. By default, Glue Studio will recognize null objects, but
// some values such as empty strings, strings that are "null", -1 integers or other
// placeholders such as zeros, are not automatically recognized as nulls.
DropNullFields *DropNullFields
// Specifies a custom visual transform created by a user.
DynamicTransform *DynamicTransform
// Specifies a DynamoDBC Catalog data store in the Glue Data Catalog.
DynamoDBCatalogSource *DynamoDBCatalogSource
// Specifies your data quality evaluation criteria.
EvaluateDataQuality *EvaluateDataQuality
// Specifies your data quality evaluation criteria. Allows multiple input data and
// returns a collection of Dynamic Frames.
EvaluateDataQualityMultiFrame *EvaluateDataQualityMultiFrame
// Specifies a transform that locates records in the dataset that have missing
// values and adds a new field with a value determined by imputation. The input
// data set is used to train the machine learning model that determines what the
// missing value should be.
FillMissingValues *FillMissingValues
// Specifies a transform that splits a dataset into two, based on a filter
// condition.
Filter *Filter
// Specifies a data source in a goverened Data Catalog.
GovernedCatalogSource *GovernedCatalogSource
// Specifies a data target that writes to a goverened catalog.
GovernedCatalogTarget *GovernedCatalogTarget
// Specifies a connector to a JDBC data source.
JDBCConnectorSource *JDBCConnectorSource
// Specifies a data target that writes to Amazon S3 in Apache Parquet columnar
// storage.
JDBCConnectorTarget *JDBCConnectorTarget
// Specifies a transform that joins two datasets into one dataset using a
// comparison phrase on the specified data property keys. You can use inner, outer,
// left, right, left semi, and left anti joins.
Join *Join
// Specifies a transform that merges a DynamicFrame with a staging DynamicFrame
// based on the specified primary keys to identify records. Duplicate records
// (records with the same primary keys) are not de-duplicated.
Merge *Merge
// Specifies a Microsoft SQL server data source in the Glue Data Catalog.
MicrosoftSQLServerCatalogSource *MicrosoftSQLServerCatalogSource
// Specifies a target that uses Microsoft SQL.
MicrosoftSQLServerCatalogTarget *MicrosoftSQLServerCatalogTarget
// Specifies a MySQL data source in the Glue Data Catalog.
MySQLCatalogSource *MySQLCatalogSource
// Specifies a target that uses MySQL.
MySQLCatalogTarget *MySQLCatalogTarget
// Specifies an Oracle data source in the Glue Data Catalog.
OracleSQLCatalogSource *OracleSQLCatalogSource
// Specifies a target that uses Oracle SQL.
OracleSQLCatalogTarget *OracleSQLCatalogTarget
// Specifies a transform that identifies, removes or masks PII data.
PIIDetection *PIIDetection
// Specifies a PostgresSQL data source in the Glue Data Catalog.
PostgreSQLCatalogSource *PostgreSQLCatalogSource
// Specifies a target that uses Postgres SQL.
PostgreSQLCatalogTarget *PostgreSQLCatalogTarget
// Specifies an Amazon Redshift data store.
RedshiftSource *RedshiftSource
// Specifies a target that uses Amazon Redshift.
RedshiftTarget *RedshiftTarget
// Specifies a relational catalog data store in the Glue Data Catalog.
RelationalCatalogSource *RelationalCatalogSource
// Specifies a transform that renames a single data property key.
RenameField *RenameField
// Specifies a Delta Lake data source that is registered in the Glue Data Catalog.
// The data source must be stored in Amazon S3.
S3CatalogDeltaSource *S3CatalogDeltaSource
// Specifies a Hudi data source that is registered in the Glue Data Catalog. The
// data source must be stored in Amazon S3.
S3CatalogHudiSource *S3CatalogHudiSource
// Specifies an Amazon S3 data store in the Glue Data Catalog.
S3CatalogSource *S3CatalogSource
// Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.
S3CatalogTarget *S3CatalogTarget
// Specifies a command-separated value (CSV) data store stored in Amazon S3.
S3CsvSource *S3CsvSource
// Specifies a target that writes to a Delta Lake data source in the Glue Data
// Catalog.
S3DeltaCatalogTarget *S3DeltaCatalogTarget
// Specifies a target that writes to a Delta Lake data source in Amazon S3.
S3DeltaDirectTarget *S3DeltaDirectTarget
// Specifies a Delta Lake data source stored in Amazon S3.
S3DeltaSource *S3DeltaSource
// Specifies a data target that writes to Amazon S3.
S3DirectTarget *S3DirectTarget
// Specifies a data target that writes to Amazon S3 in Apache Parquet columnar
// storage.
S3GlueParquetTarget *S3GlueParquetTarget
// Specifies a target that writes to a Hudi data source in the Glue Data Catalog.
S3HudiCatalogTarget *S3HudiCatalogTarget
// Specifies a target that writes to a Hudi data source in Amazon S3.
S3HudiDirectTarget *S3HudiDirectTarget
// Specifies a Hudi data source stored in Amazon S3.
S3HudiSource *S3HudiSource
// Specifies a JSON data store stored in Amazon S3.
S3JsonSource *S3JsonSource
// Specifies an Apache Parquet data store stored in Amazon S3.
S3ParquetSource *S3ParquetSource
// Specifies a transform that chooses the data property keys that you want to keep.
SelectFields *SelectFields
// Specifies a transform that chooses one DynamicFrame from a collection of
// DynamicFrames . The output is the selected DynamicFrame
SelectFromCollection *SelectFromCollection
// Specifies a connector to an Apache Spark data source.
SparkConnectorSource *SparkConnectorSource
// Specifies a target that uses an Apache Spark connector.
SparkConnectorTarget *SparkConnectorTarget
// Specifies a transform where you enter a SQL query using Spark SQL syntax to
// transform the data. The output is a single DynamicFrame .
SparkSQL *SparkSQL
// Specifies a transform that writes samples of the data to an Amazon S3 bucket.
Spigot *Spigot
// Specifies a transform that splits data property keys into two DynamicFrames .
// The output is a collection of DynamicFrames : one with selected data property
// keys, and one with the remaining data property keys.
SplitFields *SplitFields
// Specifies a transform that combines the rows from two or more datasets into a
// single result.
Union *Union
noSmithyDocumentSerde
}
// Represents a directional edge in a directed acyclic graph (DAG).
type CodeGenEdge struct {
// The ID of the node at which the edge starts.
//
// This member is required.
Source *string
// The ID of the node at which the edge ends.
//
// This member is required.
Target *string
// The target of the edge.
TargetParameter *string
noSmithyDocumentSerde
}
// Represents a node in a directed acyclic graph (DAG)
type CodeGenNode struct {
// Properties of the node, in the form of name-value pairs.
//
// This member is required.
Args []CodeGenNodeArg
// A node identifier that is unique within the node's graph.
//
// This member is required.
Id *string
// The type of node that this is.
//
// This member is required.
NodeType *string
// The line number of the node.
LineNumber int32
noSmithyDocumentSerde
}
// An argument or property of a node.
type CodeGenNodeArg struct {
// The name of the argument or property.
//
// This member is required.
Name *string
// The value of the argument or property.
//
// This member is required.
Value *string
// True if the value is used as a parameter.
Param bool
noSmithyDocumentSerde
}
// A column in a Table .
type Column struct {
// The name of the Column .
//
// This member is required.
Name *string
// A free-form text comment.
Comment *string
// These key-value pairs define properties associated with the column.
Parameters map[string]string
// The data type of the Column .
Type *string
noSmithyDocumentSerde
}
// Encapsulates a column name that failed and the reason for failure.
type ColumnError struct {
// The name of the column that failed.
ColumnName *string
// An error message with the reason for the failure of an operation.
Error *ErrorDetail
noSmithyDocumentSerde
}
// A structure containing the column name and column importance score for a
// column. Column importance helps you understand how columns contribute to your
// model, by identifying which columns in your records are more important than
// others.
type ColumnImportance struct {
// The name of a column.
ColumnName *string
// The column importance score for the column, as a decimal.
Importance *float64
noSmithyDocumentSerde
}
// A filter that uses both column-level and row-level filtering.
type ColumnRowFilter struct {
// A string containing the name of the column.
ColumnName *string
// A string containing the row-level filter expression.
RowFilterExpression *string
noSmithyDocumentSerde
}
// Represents the generated column-level statistics for a table or partition.
type ColumnStatistics struct {
// The timestamp of when column statistics were generated.
//
// This member is required.
AnalyzedTime *time.Time
// Name of column which statistics belong to.
//
// This member is required.
ColumnName *string
// The data type of the column.
//
// This member is required.
ColumnType *string
// A ColumnStatisticData object that contains the statistics data values.
//
// This member is required.
StatisticsData *ColumnStatisticsData
noSmithyDocumentSerde
}
// Contains the individual types of column statistics data. Only one data object
// should be set and indicated by the Type attribute.
type ColumnStatisticsData struct {
// The type of column statistics data.
//
// This member is required.
Type ColumnStatisticsType
// Binary column statistics data.
BinaryColumnStatisticsData *BinaryColumnStatisticsData
// Boolean column statistics data.
BooleanColumnStatisticsData *BooleanColumnStatisticsData
// Date column statistics data.
DateColumnStatisticsData *DateColumnStatisticsData
// Decimal column statistics data. UnscaledValues within are Base64-encoded binary
// objects storing big-endian, two's complement representations of the decimal's
// unscaled value.
DecimalColumnStatisticsData *DecimalColumnStatisticsData
// Double column statistics data.
DoubleColumnStatisticsData *DoubleColumnStatisticsData
// Long column statistics data.
LongColumnStatisticsData *LongColumnStatisticsData
// String column statistics data.
StringColumnStatisticsData *StringColumnStatisticsData
noSmithyDocumentSerde
}
// Encapsulates a ColumnStatistics object that failed and the reason for failure.
type ColumnStatisticsError struct {
// The ColumnStatistics of the column.
ColumnStatistics *ColumnStatistics
// An error message with the reason for the failure of an operation.
Error *ErrorDetail
noSmithyDocumentSerde
}
// Defines a condition under which a trigger fires.
type Condition struct {
// The state of the crawler to which this condition applies.
CrawlState CrawlState
// The name of the crawler to which this condition applies.
CrawlerName *string
// The name of the job whose JobRuns this condition applies to, and on which this
// trigger waits.
JobName *string
// A logical operator.
LogicalOperator LogicalOperator
// The condition state. Currently, the only job states that a trigger can listen
// for are SUCCEEDED , STOPPED , FAILED , and TIMEOUT . The only crawler states
// that a trigger can listen for are SUCCEEDED , FAILED , and CANCELLED .
State JobRunState
noSmithyDocumentSerde
}
// The confusion matrix shows you what your transform is predicting accurately and
// what types of errors it is making. For more information, see Confusion matrix (https://en.wikipedia.org/wiki/Confusion_matrix)
// in Wikipedia.
type ConfusionMatrix struct {
// The number of matches in the data that the transform didn't find, in the
// confusion matrix for your transform.
NumFalseNegatives *int64
// The number of nonmatches in the data that the transform incorrectly classified
// as a match, in the confusion matrix for your transform.
NumFalsePositives *int64
// The number of nonmatches in the data that the transform correctly rejected, in
// the confusion matrix for your transform.
NumTrueNegatives *int64
// The number of matches in the data that the transform correctly found, in the
// confusion matrix for your transform.
NumTruePositives *int64
noSmithyDocumentSerde
}
// Defines a connection to a data source.
type Connection struct {
// These key-value pairs define parameters for the connection:
// - HOST - The host URI: either the fully qualified domain name (FQDN) or the
// IPv4 address of the database host.
// - PORT - The port number, between 1024 and 65535, of the port on which the
// database host is listening for database connections.
// - USER_NAME - The name under which to log in to the database. The value string
// for USER_NAME is " USERNAME ".
// - PASSWORD - A password, if one is used, for the user name.
// - ENCRYPTED_PASSWORD - When you enable connection password protection by
// setting ConnectionPasswordEncryption in the Data Catalog encryption settings,
// this field stores the encrypted password.
// - JDBC_DRIVER_JAR_URI - The Amazon Simple Storage Service (Amazon S3) path of
// the JAR file that contains the JDBC driver to use.
// - JDBC_DRIVER_CLASS_NAME - The class name of the JDBC driver to use.
// - JDBC_ENGINE - The name of the JDBC engine to use.
// - JDBC_ENGINE_VERSION - The version of the JDBC engine to use.
// - CONFIG_FILES - (Reserved for future use.)
// - INSTANCE_ID - The instance ID to use.
// - JDBC_CONNECTION_URL - The URL for connecting to a JDBC data source.
// - JDBC_ENFORCE_SSL - A Boolean string (true, false) specifying whether Secure
// Sockets Layer (SSL) with hostname matching is enforced for the JDBC connection
// on the client. The default is false.
// - CUSTOM_JDBC_CERT - An Amazon S3 location specifying the customer's root
// certificate. Glue uses this root certificate to validate the customer’s
// certificate when connecting to the customer database. Glue only handles X.509
// certificates. The certificate provided must be DER-encoded and supplied in
// Base64 encoding PEM format.
// - SKIP_CUSTOM_JDBC_CERT_VALIDATION - By default, this is false . Glue
// validates the Signature algorithm and Subject Public Key Algorithm for the
// customer certificate. The only permitted algorithms for the Signature algorithm
// are SHA256withRSA, SHA384withRSA or SHA512withRSA. For the Subject Public Key
// Algorithm, the key length must be at least 2048. You can set the value of this
// property to true to skip Glue’s validation of the customer certificate.
// - CUSTOM_JDBC_CERT_STRING - A custom JDBC certificate string which is used for
// domain match or distinguished name match to prevent a man-in-the-middle attack.
// In Oracle database, this is used as the SSL_SERVER_CERT_DN ; in Microsoft SQL
// Server, this is used as the hostNameInCertificate .
// - CONNECTION_URL - The URL for connecting to a general (non-JDBC) data source.
// - SECRET_ID - The secret ID used for the secret manager of credentials.
// - CONNECTOR_URL - The connector URL for a MARKETPLACE or CUSTOM connection.
// - CONNECTOR_TYPE - The connector type for a MARKETPLACE or CUSTOM connection.
// - CONNECTOR_CLASS_NAME - The connector class name for a MARKETPLACE or CUSTOM
// connection.
// - KAFKA_BOOTSTRAP_SERVERS - A comma-separated list of host and port pairs that
// are the addresses of the Apache Kafka brokers in a Kafka cluster to which a
// Kafka client will connect to and bootstrap itself.
// - KAFKA_SSL_ENABLED - Whether to enable or disable SSL on an Apache Kafka
// connection. Default value is "true".
// - KAFKA_CUSTOM_CERT - The Amazon S3 URL for the private CA cert file (.pem
// format). The default is an empty string.
// - KAFKA_SKIP_CUSTOM_CERT_VALIDATION - Whether to skip the validation of the CA
// cert file or not. Glue validates for three algorithms: SHA256withRSA,
// SHA384withRSA and SHA512withRSA. Default value is "false".
// - KAFKA_CLIENT_KEYSTORE - The Amazon S3 location of the client keystore file
// for Kafka client side authentication (Optional).
// - KAFKA_CLIENT_KEYSTORE_PASSWORD - The password to access the provided
// keystore (Optional).
// - KAFKA_CLIENT_KEY_PASSWORD - A keystore can consist of multiple keys, so this
// is the password to access the client key to be used with the Kafka server side
// key (Optional).
// - ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD - The encrypted version of the
// Kafka client keystore password (if the user has the Glue encrypt passwords
// setting selected).
// - ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD - The encrypted version of the Kafka
// client key password (if the user has the Glue encrypt passwords setting
// selected).
// - KAFKA_SASL_MECHANISM - "SCRAM-SHA-512" , "GSSAPI" , or "AWS_MSK_IAM" . These
// are the supported SASL Mechanisms (https://www.iana.org/assignments/sasl-mechanisms/sasl-mechanisms.xhtml)
// .
// - KAFKA_SASL_SCRAM_USERNAME - A plaintext username used to authenticate with
// the "SCRAM-SHA-512" mechanism.
// - KAFKA_SASL_SCRAM_PASSWORD - A plaintext password used to authenticate with
// the "SCRAM-SHA-512" mechanism.
// - ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD - The encrypted version of the Kafka
// SASL SCRAM password (if the user has the Glue encrypt passwords setting
// selected).
// - KAFKA_SASL_GSSAPI_KEYTAB - The S3 location of a Kerberos keytab file. A
// keytab stores long-term keys for one or more principals. For more information,
// see MIT Kerberos Documentation: Keytab (https://web.mit.edu/kerberos/krb5-latest/doc/basic/keytab_def.html)
// .
// - KAFKA_SASL_GSSAPI_KRB5_CONF - The S3 location of a Kerberos krb5.conf file.
// A krb5.conf stores Kerberos configuration information, such as the location of
// the KDC server. For more information, see MIT Kerberos Documentation:
// krb5.conf (https://web.mit.edu/kerberos/krb5-1.12/doc/admin/conf_files/krb5_conf.html)
// .
// - KAFKA_SASL_GSSAPI_SERVICE - The Kerberos service name, as set with
// sasl.kerberos.service.name in your Kafka Configuration (https://kafka.apache.org/documentation/#brokerconfigs_sasl.kerberos.service.name)
// .
// - KAFKA_SASL_GSSAPI_PRINCIPAL - The name of the Kerberos princial used by
// Glue. For more information, see Kafka Documentation: Configuring Kafka Brokers (https://kafka.apache.org/documentation/#security_sasl_kerberos_clientconfig)
// .
ConnectionProperties map[string]string
// The type of the connection. Currently, SFTP is not supported.
ConnectionType ConnectionType
// The time that this connection definition was created.
CreationTime *time.Time
// The description of the connection.
Description *string
// The user, group, or role that last updated this connection definition.
LastUpdatedBy *string
// The last time that this connection definition was updated.
LastUpdatedTime *time.Time
// A list of criteria that can be used in selecting this connection.
MatchCriteria []string
// The name of the connection definition.
Name *string
// A map of physical connection requirements, such as virtual private cloud (VPC)
// and SecurityGroup , that are needed to make this connection successfully.
PhysicalConnectionRequirements *PhysicalConnectionRequirements
noSmithyDocumentSerde
}
// A structure that is used to specify a connection to create or update.
type ConnectionInput struct {
// These key-value pairs define parameters for the connection.
//
// This member is required.
ConnectionProperties map[string]string
// The type of the connection. Currently, these types are supported:
// - JDBC - Designates a connection to a database through Java Database
// Connectivity (JDBC). JDBC Connections use the following ConnectionParameters.
// - Required: All of ( HOST , PORT , JDBC_ENGINE ) or JDBC_CONNECTION_URL .
// - Required: All of ( USERNAME , PASSWORD ) or SECRET_ID .
// - Optional: JDBC_ENFORCE_SSL , CUSTOM_JDBC_CERT , CUSTOM_JDBC_CERT_STRING ,
// SKIP_CUSTOM_JDBC_CERT_VALIDATION . These parameters are used to configure SSL
// with JDBC.
// - KAFKA - Designates a connection to an Apache Kafka streaming platform. KAFKA
// Connections use the following ConnectionParameters.
// - Required: KAFKA_BOOTSTRAP_SERVERS .
// - Optional: KAFKA_SSL_ENABLED , KAFKA_CUSTOM_CERT ,
// KAFKA_SKIP_CUSTOM_CERT_VALIDATION . These parameters are used to configure SSL
// with KAFKA .
// - Optional: KAFKA_CLIENT_KEYSTORE , KAFKA_CLIENT_KEYSTORE_PASSWORD ,
// KAFKA_CLIENT_KEY_PASSWORD , ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD ,
// ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD . These parameters are used to configure
// TLS client configuration with SSL in KAFKA .
// - Optional: KAFKA_SASL_MECHANISM . Can be specified as SCRAM-SHA-512 , GSSAPI
// , or AWS_MSK_IAM .
// - Optional: KAFKA_SASL_SCRAM_USERNAME , KAFKA_SASL_SCRAM_PASSWORD ,
// ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD . These parameters are used to configure
// SASL/SCRAM-SHA-512 authentication with KAFKA .
// - Optional: KAFKA_SASL_GSSAPI_KEYTAB , KAFKA_SASL_GSSAPI_KRB5_CONF ,
// KAFKA_SASL_GSSAPI_SERVICE , KAFKA_SASL_GSSAPI_PRINCIPAL . These parameters are
// used to configure SASL/GSSAPI authentication with KAFKA .
// - MONGODB - Designates a connection to a MongoDB document database. MONGODB
// Connections use the following ConnectionParameters.
// - Required: CONNECTION_URL .
// - Required: All of ( USERNAME , PASSWORD ) or SECRET_ID .
// - NETWORK - Designates a network connection to a data source within an Amazon
// Virtual Private Cloud environment (Amazon VPC). NETWORK Connections do not
// require ConnectionParameters. Instead, provide a PhysicalConnectionRequirements.
//
// - MARKETPLACE - Uses configuration settings contained in a connector purchased
// from Amazon Web Services Marketplace to read from and write to data stores that
// are not natively supported by Glue. MARKETPLACE Connections use the following
// ConnectionParameters.
// - Required: CONNECTOR_TYPE , CONNECTOR_URL , CONNECTOR_CLASS_NAME ,
// CONNECTION_URL .
// - Required for JDBC CONNECTOR_TYPE connections: All of ( USERNAME , PASSWORD )
// or SECRET_ID .
// - CUSTOM - Uses configuration settings contained in a custom connector to read
// from and write to data stores that are not natively supported by Glue.
// SFTP is not supported. For more information about how optional
// ConnectionProperties are used to configure features in Glue, consult Glue
// connection properties (https://docs.aws.amazon.com/glue/latest/dg/connection-defining.html)
// . For more information about how optional ConnectionProperties are used to
// configure features in Glue Studio, consult Using connectors and connections (https://docs.aws.amazon.com/glue/latest/ug/connectors-chapter.html)
// .
//
// This member is required.
ConnectionType ConnectionType
// The name of the connection. Connection will not function as expected without a
// name.
//
// This member is required.
Name *string
// The description of the connection.
Description *string
// A list of criteria that can be used in selecting this connection.
MatchCriteria []string
// A map of physical connection requirements, such as virtual private cloud (VPC)
// and SecurityGroup , that are needed to successfully make this connection.
PhysicalConnectionRequirements *PhysicalConnectionRequirements
noSmithyDocumentSerde
}
// The data structure used by the Data Catalog to encrypt the password as part of
// CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD
// field in the connection properties. You can enable catalog encryption or only
// password encryption. When a CreationConnection request arrives containing a
// password, the Data Catalog first encrypts the password using your KMS key. It
// then encrypts the whole connection object again if catalog encryption is also
// enabled. This encryption requires that you set KMS key permissions to enable or
// restrict access on the password key according to your security requirements. For
// example, you might want only administrators to have decrypt permission on the
// password key.
type ConnectionPasswordEncryption struct {
// When the ReturnConnectionPasswordEncrypted flag is set to "true", passwords
// remain encrypted in the responses of GetConnection and GetConnections . This
// encryption takes effect independently from catalog encryption.
//
// This member is required.
ReturnConnectionPasswordEncrypted bool
// An KMS key that is used to encrypt the connection password. If connection
// password protection is enabled, the caller of CreateConnection and
// UpdateConnection needs at least kms:Encrypt permission on the specified KMS
// key, to encrypt passwords before storing them in the Data Catalog. You can set
// the decrypt permission to enable or restrict access on the password key
// according to your security requirements.
AwsKmsKeyId *string
noSmithyDocumentSerde
}
// Specifies the connections used by a job.
type ConnectionsList struct {
// A list of connections used by the job.
Connections []string
noSmithyDocumentSerde
}
// The details of a crawl in the workflow.
type Crawl struct {
// The date and time on which the crawl completed.
CompletedOn *time.Time
// The error message associated with the crawl.
ErrorMessage *string
// The log group associated with the crawl.
LogGroup *string
// The log stream associated with the crawl.
LogStream *string
// The date and time on which the crawl started.
StartedOn *time.Time
// The state of the crawler.
State CrawlState
noSmithyDocumentSerde
}
// Specifies a crawler program that examines a data source and uses classifiers to
// try to determine its schema. If successful, the crawler records metadata
// concerning the data source in the Glue Data Catalog.
type Crawler struct {
// A list of UTF-8 strings that specify the custom classifiers that are associated
// with the crawler.
Classifiers []string
// Crawler configuration information. This versioned JSON string allows users to
// specify aspects of a crawler's behavior. For more information, see Setting
// crawler configuration options (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html)
// .
Configuration *string
// If the crawler is running, contains the total time elapsed since the last crawl
// began.
CrawlElapsedTime int64
// The name of the SecurityConfiguration structure to be used by this crawler.
CrawlerSecurityConfiguration *string
// The time that the crawler was created.
CreationTime *time.Time
// The name of the database in which the crawler's output is stored.
DatabaseName *string
// A description of the crawler.
Description *string
// Specifies whether the crawler should use Lake Formation credentials for the
// crawler instead of the IAM role credentials.
LakeFormationConfiguration *LakeFormationConfiguration
// The status of the last crawl, and potentially error information if an error
// occurred.
LastCrawl *LastCrawlInfo
// The time that the crawler was last updated.
LastUpdated *time.Time
// A configuration that specifies whether data lineage is enabled for the crawler.
LineageConfiguration *LineageConfiguration
// The name of the crawler.
Name *string
// A policy that specifies whether to crawl the entire dataset again, or to crawl
// only folders that were added since the last crawler run.
RecrawlPolicy *RecrawlPolicy
// The Amazon Resource Name (ARN) of an IAM role that's used to access customer
// resources, such as Amazon Simple Storage Service (Amazon S3) data.
Role *string
// For scheduled crawlers, the schedule when the crawler runs.
Schedule *Schedule
// The policy that specifies update and delete behaviors for the crawler.
SchemaChangePolicy *SchemaChangePolicy
// Indicates whether the crawler is running, or whether a run is pending.
State CrawlerState
// The prefix added to the names of tables that are created.
TablePrefix *string
// A collection of targets to crawl.
Targets *CrawlerTargets
// The version of the crawler.
Version int64
noSmithyDocumentSerde
}
// Contains the information for a run of a crawler.
type CrawlerHistory struct {
// A UUID identifier for each crawl.
CrawlId *string
// The number of data processing units (DPU) used in hours for the crawl.
DPUHour float64
// The date and time on which the crawl ended.
EndTime *time.Time
// If an error occurred, the error message associated with the crawl.
ErrorMessage *string
// The log group associated with the crawl.
LogGroup *string
// The log stream associated with the crawl.
LogStream *string
// The prefix for a CloudWatch message about this crawl.
MessagePrefix *string
// The date and time on which the crawl started.
StartTime *time.Time
// The state of the crawl.
State CrawlerHistoryState
// A run summary for the specific crawl in JSON. Contains the catalog tables and
// partitions that were added, updated, or deleted.
Summary *string
noSmithyDocumentSerde
}
// Metrics for a specified crawler.
type CrawlerMetrics struct {
// The name of the crawler.
CrawlerName *string
// The duration of the crawler's most recent run, in seconds.
LastRuntimeSeconds float64
// The median duration of this crawler's runs, in seconds.
MedianRuntimeSeconds float64
// True if the crawler is still estimating how long it will take to complete this
// run.
StillEstimating bool
// The number of tables created by this crawler.
TablesCreated int32
// The number of tables deleted by this crawler.
TablesDeleted int32
// The number of tables updated by this crawler.
TablesUpdated int32
// The estimated time left to complete a running crawl.
TimeLeftSeconds float64
noSmithyDocumentSerde
}
// The details of a Crawler node present in the workflow.
type CrawlerNodeDetails struct {
// A list of crawls represented by the crawl node.
Crawls []Crawl
noSmithyDocumentSerde
}
// Specifies data stores to crawl.
type CrawlerTargets struct {
// Specifies Glue Data Catalog targets.
CatalogTargets []CatalogTarget
// Specifies Delta data store targets.
DeltaTargets []DeltaTarget
// Specifies Amazon DynamoDB targets.
DynamoDBTargets []DynamoDBTarget
// Specifies Apache Iceberg data store targets.
IcebergTargets []IcebergTarget
// Specifies JDBC targets.
JdbcTargets []JdbcTarget
// Specifies Amazon DocumentDB or MongoDB targets.
MongoDBTargets []MongoDBTarget
// Specifies Amazon Simple Storage Service (Amazon S3) targets.
S3Targets []S3Target
noSmithyDocumentSerde
}
// A list of fields, comparators and value that you can use to filter the crawler
// runs for a specified crawler.
type CrawlsFilter struct {
// A key used to filter the crawler runs for a specified crawler. Valid values for
// each of the field names are:
// - CRAWL_ID : A string representing the UUID identifier for a crawl.
// - STATE : A string representing the state of the crawl.
// - START_TIME and END_TIME : The epoch timestamp in milliseconds.
// - DPU_HOUR : The number of data processing unit (DPU) hours used for the
// crawl.
FieldName FieldName
// The value provided for comparison on the crawl field.
FieldValue *string
// A defined comparator that operates on the value. The available operators are:
// - GT : Greater than.
// - GE : Greater than or equal to.
// - LT : Less than.
// - LE : Less than or equal to.
// - EQ : Equal to.
// - NE : Not equal to.
FilterOperator FilterOperator
noSmithyDocumentSerde
}
// Specifies a custom CSV classifier for CreateClassifier to create.
type CreateCsvClassifierRequest struct {
// The name of the classifier.
//
// This member is required.
Name *string
// Enables the processing of files that contain only one column.
AllowSingleColumn *bool
// Indicates whether the CSV file contains a header.
ContainsHeader CsvHeaderOption
// Enables the configuration of custom datatypes.
CustomDatatypeConfigured *bool
// Creates a list of supported custom datatypes.
CustomDatatypes []string
// A custom symbol to denote what separates each column entry in the row.
Delimiter *string
// Specifies not to trim values before identifying the type of column values. The
// default value is true.
DisableValueTrimming *bool
// A list of strings representing column names.
Header []string
// A custom symbol to denote what combines content into a single column value.
// Must be different from the column delimiter.
QuoteSymbol *string
noSmithyDocumentSerde
}
// Specifies a grok classifier for CreateClassifier to create.
type CreateGrokClassifierRequest struct {
// An identifier of the data format that the classifier matches, such as Twitter,
// JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
//
// This member is required.
Classification *string
// The grok pattern used by this classifier.
//
// This member is required.
GrokPattern *string
// The name of the new classifier.
//
// This member is required.
Name *string
// Optional custom grok patterns used by this classifier.
CustomPatterns *string
noSmithyDocumentSerde
}
// Specifies a JSON classifier for CreateClassifier to create.
type CreateJsonClassifierRequest struct {
// A JsonPath string defining the JSON data for the classifier to classify. Glue
// supports a subset of JsonPath, as described in Writing JsonPath Custom
// Classifiers (https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json)
// .
//
// This member is required.
JsonPath *string
// The name of the classifier.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Specifies an XML classifier for CreateClassifier to create.
type CreateXMLClassifierRequest struct {
// An identifier of the data format that the classifier matches.
//
// This member is required.
Classification *string
// The name of the classifier.
//
// This member is required.
Name *string
// The XML tag designating the element that contains each record in an XML
// document being parsed. This can't identify a self-closing element (closed by />
// ). An empty row element that contains only attributes can be parsed as long as
// it ends with a closing tag (for example, is okay, but is not).
RowTag *string
noSmithyDocumentSerde
}
// A classifier for custom CSV content.
type CsvClassifier struct {
// The name of the classifier.
//
// This member is required.
Name *string
// Enables the processing of files that contain only one column.
AllowSingleColumn *bool
// Indicates whether the CSV file contains a header.
ContainsHeader CsvHeaderOption
// The time that this classifier was registered.
CreationTime *time.Time
// Enables the custom datatype to be configured.
CustomDatatypeConfigured *bool
// A list of custom datatypes including "BINARY", "BOOLEAN", "DATE", "DECIMAL",
// "DOUBLE", "FLOAT", "INT", "LONG", "SHORT", "STRING", "TIMESTAMP".
CustomDatatypes []string
// A custom symbol to denote what separates each column entry in the row.
Delimiter *string
// Specifies not to trim values before identifying the type of column values. The
// default value is true .
DisableValueTrimming *bool
// A list of strings representing column names.
Header []string
// The time that this classifier was last updated.
LastUpdated *time.Time
// A custom symbol to denote what combines content into a single column value. It
// must be different from the column delimiter.
QuoteSymbol *string
// The version of this classifier.
Version int64
noSmithyDocumentSerde
}
// Specifies a transform that uses custom code you provide to perform the data
// transformation. The output is a collection of DynamicFrames.
type CustomCode struct {
// The name defined for the custom code node class.
//
// This member is required.
ClassName *string
// The custom code that is used to perform the data transformation.
//
// This member is required.
Code *string
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// Specifies the data schema for the custom code transform.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// An object representing a custom pattern for detecting sensitive data across the
// columns and rows of your structured data.
type CustomEntityType struct {
// A name for the custom pattern that allows it to be retrieved or deleted later.
// This name must be unique per Amazon Web Services account.
//
// This member is required.
Name *string
// A regular expression string that is used for detecting sensitive data in a
// custom pattern.
//
// This member is required.
RegexString *string
// A list of context words. If none of these context words are found within the
// vicinity of the regular expression the data will not be detected as sensitive
// data. If no context words are passed only a regular expression is checked.
ContextWords []string
noSmithyDocumentSerde
}
// The Database object represents a logical grouping of tables that might reside
// in a Hive metastore or an RDBMS.
type Database struct {
// The name of the database. For Hive compatibility, this is folded to lowercase
// when it is stored.
//
// This member is required.
Name *string
// The ID of the Data Catalog in which the database resides.
CatalogId *string
// Creates a set of default permissions on the table for principals. Used by Lake
// Formation. Not used in the normal course of Glue operations.
CreateTableDefaultPermissions []PrincipalPermissions
// The time at which the metadata database was created in the catalog.
CreateTime *time.Time
// A description of the database.
Description *string
// A FederatedDatabase structure that references an entity outside the Glue Data
// Catalog.
FederatedDatabase *FederatedDatabase
// The location of the database (for example, an HDFS path).
LocationUri *string
// These key-value pairs define parameters and properties of the database.
Parameters map[string]string
// A DatabaseIdentifier structure that describes a target database for resource
// linking.
TargetDatabase *DatabaseIdentifier
noSmithyDocumentSerde
}
// A structure that describes a target database for resource linking.
type DatabaseIdentifier struct {
// The ID of the Data Catalog in which the database resides.
CatalogId *string
// The name of the catalog database.
DatabaseName *string
// Region of the target database.
Region *string
noSmithyDocumentSerde
}
// The structure used to create or update a database.
type DatabaseInput struct {
// The name of the database. For Hive compatibility, this is folded to lowercase
// when it is stored.
//
// This member is required.
Name *string
// Creates a set of default permissions on the table for principals. Used by Lake
// Formation. Not used in the normal course of Glue operations.
CreateTableDefaultPermissions []PrincipalPermissions
// A description of the database.
Description *string
// A FederatedDatabase structure that references an entity outside the Glue Data
// Catalog.
FederatedDatabase *FederatedDatabase
// The location of the database (for example, an HDFS path).
LocationUri *string
// These key-value pairs define parameters and properties of the database. These
// key-value pairs define parameters and properties of the database.
Parameters map[string]string
// A DatabaseIdentifier structure that describes a target database for resource
// linking.
TargetDatabase *DatabaseIdentifier
noSmithyDocumentSerde
}
// Contains configuration information for maintaining Data Catalog security.
type DataCatalogEncryptionSettings struct {
// When connection password protection is enabled, the Data Catalog uses a
// customer-provided key to encrypt the password as part of CreateConnection or
// UpdateConnection and store it in the ENCRYPTED_PASSWORD field in the connection
// properties. You can enable catalog encryption or only password encryption.
ConnectionPasswordEncryption *ConnectionPasswordEncryption
// Specifies the encryption-at-rest configuration for the Data Catalog.
EncryptionAtRest *EncryptionAtRest
noSmithyDocumentSerde
}
// The Lake Formation principal.
type DataLakePrincipal struct {
// An identifier for the Lake Formation principal.
DataLakePrincipalIdentifier *string
noSmithyDocumentSerde
}
// Additional run options you can specify for an evaluation run.
type DataQualityEvaluationRunAdditionalRunOptions struct {
// Whether or not to enable CloudWatch metrics.
CloudWatchMetricsEnabled *bool
// Prefix for Amazon S3 to store results.
ResultsS3Prefix *string
noSmithyDocumentSerde
}
// Describes a data quality result.
type DataQualityResult struct {
// The date and time when this data quality run completed.
CompletedOn *time.Time
// The table associated with the data quality result, if any.
DataSource *DataSource
// In the context of a job in Glue Studio, each node in the canvas is typically
// assigned some sort of name and data quality nodes will have names. In the case
// of multiple nodes, the evaluationContext can differentiate the nodes.
EvaluationContext *string
// The job name associated with the data quality result, if any.
JobName *string
// The job run ID associated with the data quality result, if any.
JobRunId *string
// A unique result ID for the data quality result.
ResultId *string
// A list of DataQualityRuleResult objects representing the results for each rule.
RuleResults []DataQualityRuleResult
// The unique run ID for the ruleset evaluation for this data quality result.
RulesetEvaluationRunId *string
// The name of the ruleset associated with the data quality result.
RulesetName *string
// An aggregate data quality score. Represents the ratio of rules that passed to
// the total number of rules.
Score *float64
// The date and time when this data quality run started.
StartedOn *time.Time
noSmithyDocumentSerde
}
// Describes a data quality result.
type DataQualityResultDescription struct {
// The table name associated with the data quality result.
DataSource *DataSource
// The job name associated with the data quality result.
JobName *string
// The job run ID associated with the data quality result.
JobRunId *string
// The unique result ID for this data quality result.
ResultId *string
// The time that the run started for this data quality result.
StartedOn *time.Time
noSmithyDocumentSerde
}
// Criteria used to return data quality results.
type DataQualityResultFilterCriteria struct {
// Filter results by the specified data source. For example, retrieving all
// results for an Glue table.
DataSource *DataSource
// Filter results by the specified job name.
JobName *string
// Filter results by the specified job run ID.
JobRunId *string
// Filter results by runs that started after this time.
StartedAfter *time.Time
// Filter results by runs that started before this time.
StartedBefore *time.Time
noSmithyDocumentSerde
}
// Describes the result of a data quality rule recommendation run.
type DataQualityRuleRecommendationRunDescription struct {
// The data source (Glue table) associated with the recommendation run.
DataSource *DataSource
// The unique run identifier associated with this run.
RunId *string
// The date and time when this run started.
StartedOn *time.Time
// The status for this run.
Status TaskStatusType
noSmithyDocumentSerde
}
// A filter for listing data quality recommendation runs.
type DataQualityRuleRecommendationRunFilter struct {
// Filter based on a specified data source (Glue table).
//
// This member is required.
DataSource *DataSource
// Filter based on time for results started after provided time.
StartedAfter *time.Time
// Filter based on time for results started before provided time.
StartedBefore *time.Time
noSmithyDocumentSerde
}
// Describes the result of the evaluation of a data quality rule.
type DataQualityRuleResult struct {
// A description of the data quality rule.
Description *string
// A map of metrics associated with the evaluation of the rule.
EvaluatedMetrics map[string]float64
// An evaluation message.
EvaluationMessage *string
// The name of the data quality rule.
Name *string
// A pass or fail status for the rule.
Result DataQualityRuleResultStatus
noSmithyDocumentSerde
}
// Describes the result of a data quality ruleset evaluation run.
type DataQualityRulesetEvaluationRunDescription struct {
// The data source (an Glue table) associated with the run.
DataSource *DataSource
// The unique run identifier associated with this run.
RunId *string
// The date and time when the run started.
StartedOn *time.Time
// The status for this run.
Status TaskStatusType
noSmithyDocumentSerde
}
// The filter criteria.
type DataQualityRulesetEvaluationRunFilter struct {
// Filter based on a data source (an Glue table) associated with the run.
//
// This member is required.
DataSource *DataSource
// Filter results by runs that started after this time.
StartedAfter *time.Time
// Filter results by runs that started before this time.
StartedBefore *time.Time
noSmithyDocumentSerde
}
// The criteria used to filter data quality rulesets.
type DataQualityRulesetFilterCriteria struct {
// Filter on rulesets created after this date.
CreatedAfter *time.Time
// Filter on rulesets created before this date.
CreatedBefore *time.Time
// The description of the ruleset filter criteria.
Description *string
// Filter on rulesets last modified after this date.
LastModifiedAfter *time.Time
// Filter on rulesets last modified before this date.
LastModifiedBefore *time.Time
// The name of the ruleset filter criteria.
Name *string
// The name and database name of the target table.
TargetTable *DataQualityTargetTable
noSmithyDocumentSerde
}
// Describes a data quality ruleset returned by GetDataQualityRuleset .
type DataQualityRulesetListDetails struct {
// The date and time the data quality ruleset was created.
CreatedOn *time.Time
// A description of the data quality ruleset.
Description *string
// The date and time the data quality ruleset was last modified.
LastModifiedOn *time.Time
// The name of the data quality ruleset.
Name *string
// When a ruleset was created from a recommendation run, this run ID is generated
// to link the two together.
RecommendationRunId *string
// The number of rules in the ruleset.
RuleCount *int32
// An object representing an Glue table.
TargetTable *DataQualityTargetTable
noSmithyDocumentSerde
}
// An object representing an Glue table.
type DataQualityTargetTable struct {
// The name of the database where the Glue table exists.
//
// This member is required.
DatabaseName *string
// The name of the Glue table.
//
// This member is required.
TableName *string
// The catalog id where the Glue table exists.
CatalogId *string
noSmithyDocumentSerde
}
// A data source (an Glue table) for which you want data quality results.
type DataSource struct {
// An Glue table.
//
// This member is required.
GlueTable *GlueTable
noSmithyDocumentSerde
}
// A structure representing the datatype of the value.
type Datatype struct {
// The datatype of the value.
//
// This member is required.
Id *string
// A label assigned to the datatype.
//
// This member is required.
Label *string
noSmithyDocumentSerde
}
// Defines column statistics supported for timestamp data columns.
type DateColumnStatisticsData struct {
// The number of distinct values in a column.
//
// This member is required.
NumberOfDistinctValues int64
// The number of null values in the column.
//
// This member is required.
NumberOfNulls int64
// The highest value in the column.
MaximumValue *time.Time
// The lowest value in the column.
MinimumValue *time.Time
noSmithyDocumentSerde
}
// Defines column statistics supported for fixed-point number data columns.
type DecimalColumnStatisticsData struct {
// The number of distinct values in a column.
//
// This member is required.
NumberOfDistinctValues int64
// The number of null values in the column.
//
// This member is required.
NumberOfNulls int64
// The highest value in the column.
MaximumValue *DecimalNumber
// The lowest value in the column.
MinimumValue *DecimalNumber
noSmithyDocumentSerde
}
// Contains a numeric value in decimal format.
type DecimalNumber struct {
// The scale that determines where the decimal point falls in the unscaled value.
//
// This member is required.
Scale int32
// The unscaled numeric value.
//
// This member is required.
UnscaledValue []byte
noSmithyDocumentSerde
}
// Specifies a Delta data store to crawl one or more Delta tables.
type DeltaTarget struct {
// The name of the connection to use to connect to the Delta table target.
ConnectionName *string
// Specifies whether the crawler will create native tables, to allow integration
// with query engines that support querying of the Delta transaction log directly.
CreateNativeDeltaTable *bool
// A list of the Amazon S3 paths to the Delta tables.
DeltaTables []string
// Specifies whether to write the manifest files to the Delta table path.
WriteManifest *bool
noSmithyDocumentSerde
}
// A development endpoint where a developer can remotely debug extract, transform,
// and load (ETL) scripts.
type DevEndpoint struct {
// A map of arguments used to configure the DevEndpoint . Valid arguments are:
// - "--enable-glue-datacatalog": ""
// You can specify a version of Python support for development endpoints by using
// the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If
// no arguments are provided, the version defaults to Python 2.
Arguments map[string]string
// The Amazon Web Services Availability Zone where this DevEndpoint is located.
AvailabilityZone *string
// The point in time at which this DevEndpoint was created.
CreatedTimestamp *time.Time
// The name of the DevEndpoint .
EndpointName *string
// The path to one or more Java .jar files in an S3 bucket that should be loaded
// in your DevEndpoint . You can only use pure Java/Scala libraries with a
// DevEndpoint .
ExtraJarsS3Path *string
// The paths to one or more Python libraries in an Amazon S3 bucket that should be
// loaded in your DevEndpoint . Multiple values must be complete paths separated by
// a comma. You can only use pure Python libraries with a DevEndpoint . Libraries
// that rely on C extensions, such as the pandas (http://pandas.pydata.org/)
// Python data analysis library, are not currently supported.
ExtraPythonLibsS3Path *string
// The reason for a current failure in this DevEndpoint .
FailureReason *string
// Glue version determines the versions of Apache Spark and Python that Glue
// supports. The Python version indicates the version supported for running your
// ETL scripts on development endpoints. For more information about the available
// Glue versions and corresponding Spark and Python versions, see Glue version (https://docs.aws.amazon.com/glue/latest/dg/add-job.html)
// in the developer guide. Development endpoints that are created without
// specifying a Glue version default to Glue 0.9. You can specify a version of
// Python support for development endpoints by using the Arguments parameter in
// the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided,
// the version defaults to Python 2.
GlueVersion *string
// The point in time at which this DevEndpoint was last modified.
LastModifiedTimestamp *time.Time
// The status of the last update.
LastUpdateStatus *string
// The number of Glue Data Processing Units (DPUs) allocated to this DevEndpoint .
NumberOfNodes int32
// The number of workers of a defined workerType that are allocated to the
// development endpoint. The maximum number of workers you can define are 299 for
// G.1X , and 149 for G.2X .
NumberOfWorkers *int32
// A private IP address to access the DevEndpoint within a VPC if the DevEndpoint
// is created within one. The PrivateAddress field is present only when you create
// the DevEndpoint within your VPC.
PrivateAddress *string
// The public IP address used by this DevEndpoint . The PublicAddress field is
// present only when you create a non-virtual private cloud (VPC) DevEndpoint .
PublicAddress *string
// The public key to be used by this DevEndpoint for authentication. This
// attribute is provided for backward compatibility because the recommended
// attribute to use is public keys.
PublicKey *string
// A list of public keys to be used by the DevEndpoints for authentication. Using
// this attribute is preferred over a single public key because the public keys
// allow you to have a different private key per client. If you previously created
// an endpoint with a public key, you must remove that key to be able to set a list
// of public keys. Call the UpdateDevEndpoint API operation with the public key
// content in the deletePublicKeys attribute, and the list of new keys in the
// addPublicKeys attribute.
PublicKeys []string
// The Amazon Resource Name (ARN) of the IAM role used in this DevEndpoint .
RoleArn *string
// The name of the SecurityConfiguration structure to be used with this DevEndpoint
// .
SecurityConfiguration *string
// A list of security group identifiers used in this DevEndpoint .
SecurityGroupIds []string
// The current status of this DevEndpoint .
Status *string
// The subnet ID for this DevEndpoint .
SubnetId *string
// The ID of the virtual private cloud (VPC) used by this DevEndpoint .
VpcId *string
// The type of predefined worker that is allocated to the development endpoint.
// Accepts a value of Standard, G.1X, or G.2X.
// - For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory
// and a 50GB disk, and 2 executors per worker.
// - For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// - For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of
// memory, 128 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// Known issue: when a development endpoint is created with the G.2X WorkerType
// configuration, the Spark drivers for the development endpoint will run on 4
// vCPU, 16 GB of memory, and a 64 GB disk.
WorkerType WorkerType
// The YARN endpoint address used by this DevEndpoint .
YarnEndpointAddress *string
// The Apache Zeppelin port for the remote Apache Spark interpreter.
ZeppelinRemoteSparkInterpreterPort int32
noSmithyDocumentSerde
}
// Custom libraries to be loaded into a development endpoint.
type DevEndpointCustomLibraries struct {
// The path to one or more Java .jar files in an S3 bucket that should be loaded
// in your DevEndpoint . You can only use pure Java/Scala libraries with a
// DevEndpoint .
ExtraJarsS3Path *string
// The paths to one or more Python libraries in an Amazon Simple Storage Service
// (Amazon S3) bucket that should be loaded in your DevEndpoint . Multiple values
// must be complete paths separated by a comma. You can only use pure Python
// libraries with a DevEndpoint . Libraries that rely on C extensions, such as the
// pandas (http://pandas.pydata.org/) Python data analysis library, are not
// currently supported.
ExtraPythonLibsS3Path *string
noSmithyDocumentSerde
}
// Specifies the direct JDBC source connection.
type DirectJDBCSource struct {
// The connection name of the JDBC source.
//
// This member is required.
ConnectionName *string
// The connection type of the JDBC source.
//
// This member is required.
ConnectionType JDBCConnectionType
// The database of the JDBC source connection.
//
// This member is required.
Database *string
// The name of the JDBC source connection.
//
// This member is required.
Name *string
// The table of the JDBC source connection.
//
// This member is required.
Table *string
// The temp directory of the JDBC Redshift source.
RedshiftTmpDir *string
noSmithyDocumentSerde
}
// Specifies an Apache Kafka data store.
type DirectKafkaSource struct {
// The name of the data store.
//
// This member is required.
Name *string
// Specifies options related to data preview for viewing a sample of your data.
DataPreviewOptions *StreamingDataPreviewOptions
// Whether to automatically determine the schema from the incoming data.
DetectSchema *bool
// Specifies the streaming options.
StreamingOptions *KafkaStreamingSourceOptions
// The amount of time to spend processing each micro batch.
WindowSize *int32
noSmithyDocumentSerde
}
// Specifies a direct Amazon Kinesis data source.
type DirectKinesisSource struct {
// The name of the data source.
//
// This member is required.
Name *string
// Additional options for data preview.
DataPreviewOptions *StreamingDataPreviewOptions
// Whether to automatically determine the schema from the incoming data.
DetectSchema *bool
// Additional options for the Kinesis streaming data source.
StreamingOptions *KinesisStreamingSourceOptions
// The amount of time to spend processing each micro batch.
WindowSize *int32
noSmithyDocumentSerde
}
// A policy that specifies update behavior for the crawler.
type DirectSchemaChangePolicy struct {
// Specifies the database that the schema change policy applies to.
Database *string
// Whether to use the specified update behavior when the crawler finds a changed
// schema.
EnableUpdateCatalog *bool
// Specifies the table in the database that the schema change policy applies to.
Table *string
// The update behavior when the crawler finds a changed schema.
UpdateBehavior UpdateCatalogBehavior
noSmithyDocumentSerde
}
// Defines column statistics supported for floating-point number data columns.
type DoubleColumnStatisticsData struct {
// The number of distinct values in a column.
//
// This member is required.
NumberOfDistinctValues int64
// The number of null values in the column.
//
// This member is required.
NumberOfNulls int64
// The highest value in the column.
MaximumValue float64
// The lowest value in the column.
MinimumValue float64
noSmithyDocumentSerde
}
// Options to configure how your data quality evaluation results are published.
type DQResultsPublishingOptions struct {
// Enable metrics for your data quality results.
CloudWatchMetricsEnabled *bool
// The context of the evaluation.
EvaluationContext *string
// Enable publishing for your data quality results.
ResultsPublishingEnabled *bool
// The Amazon S3 prefix prepended to the results.
ResultsS3Prefix *string
noSmithyDocumentSerde
}
// Options to configure how your job will stop if your data quality evaluation
// fails.
type DQStopJobOnFailureOptions struct {
// When to stop job if your data quality evaluation fails. Options are Immediate
// or AfterDataLoad.
StopJobOnFailureTiming DQStopJobOnFailureTiming
noSmithyDocumentSerde
}
// Specifies a transform that removes rows of repeating data from a data set.
type DropDuplicates struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// The name of the columns to be merged or removed if repeating.
Columns [][]string
noSmithyDocumentSerde
}
// Specifies a transform that chooses the data property keys that you want to drop.
type DropFields struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A JSON path to a variable in the data structure.
//
// This member is required.
Paths [][]string
noSmithyDocumentSerde
}
// Specifies a transform that removes columns from the dataset if all values in
// the column are 'null'. By default, Glue Studio will recognize null objects, but
// some values such as empty strings, strings that are "null", -1 integers or other
// placeholders such as zeros, are not automatically recognized as nulls.
type DropNullFields struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A structure that represents whether certain values are recognized as null
// values for removal.
NullCheckBoxList *NullCheckBoxList
// A structure that specifies a list of NullValueField structures that represent a
// custom null value such as zero or other value being used as a null placeholder
// unique to the dataset. The DropNullFields transform removes custom null values
// only if both the value of the null placeholder and the datatype match the data.
NullTextList []NullValueField
noSmithyDocumentSerde
}
// Specifies the set of parameters needed to perform the dynamic transform.
type DynamicTransform struct {
// Specifies the name of the function of the dynamic transform.
//
// This member is required.
FunctionName *string
// Specifies the inputs for the dynamic transform that are required.
//
// This member is required.
Inputs []string
// Specifies the name of the dynamic transform.
//
// This member is required.
Name *string
// Specifies the path of the dynamic transform source and config files.
//
// This member is required.
Path *string
// Specifies the name of the dynamic transform as it appears in the Glue Studio
// visual editor.
//
// This member is required.
TransformName *string
// Specifies the data schema for the dynamic transform.
OutputSchemas []GlueSchema
// Specifies the parameters of the dynamic transform.
Parameters []TransformConfigParameter
// This field is not used and will be deprecated in future release.
Version *string
noSmithyDocumentSerde
}
// Specifies a DynamoDB data source in the Glue Data Catalog.
type DynamoDBCatalogSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies an Amazon DynamoDB table to crawl.
type DynamoDBTarget struct {
// The name of the DynamoDB table to crawl.
Path *string
// Indicates whether to scan all the records, or to sample rows from the table.
// Scanning all the records can take a long time when the table is not a high
// throughput table. A value of true means to scan all records, while a value of
// false means to sample the records. If no value is specified, the value defaults
// to true .
ScanAll *bool
// The percentage of the configured read capacity units to use by the Glue
// crawler. Read capacity units is a term defined by DynamoDB, and is a numeric
// value that acts as rate limiter for the number of reads that can be performed on
// that table per second. The valid values are null or a value between 0.1 to 1.5.
// A null value is used when user does not provide a value, and defaults to 0.5 of
// the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max
// configured Read Capacity Unit (for tables using on-demand mode).
ScanRate *float64
noSmithyDocumentSerde
}
// An edge represents a directed connection between two Glue components that are
// part of the workflow the edge belongs to.
type Edge struct {
// The unique of the node within the workflow where the edge ends.
DestinationId *string
// The unique of the node within the workflow where the edge starts.
SourceId *string
noSmithyDocumentSerde
}
// Specifies the encryption-at-rest configuration for the Data Catalog.
type EncryptionAtRest struct {
// The encryption-at-rest mode for encrypting Data Catalog data.
//
// This member is required.
CatalogEncryptionMode CatalogEncryptionMode
// The ID of the KMS key to use for encryption at rest.
SseAwsKmsKeyId *string
noSmithyDocumentSerde
}
// Specifies an encryption configuration.
type EncryptionConfiguration struct {
// The encryption configuration for Amazon CloudWatch.
CloudWatchEncryption *CloudWatchEncryption
// The encryption configuration for job bookmarks.
JobBookmarksEncryption *JobBookmarksEncryption
// The encryption configuration for Amazon Simple Storage Service (Amazon S3) data.
S3Encryption []S3Encryption
noSmithyDocumentSerde
}
// Contains details about an error.
type ErrorDetail struct {
// The code associated with this error.
ErrorCode *string
// A message describing the error.
ErrorMessage *string
noSmithyDocumentSerde
}
// An object containing error details.
type ErrorDetails struct {
// The error code for an error.
ErrorCode *string
// The error message for an error.
ErrorMessage *string
noSmithyDocumentSerde
}
// Specifies your data quality evaluation criteria.
type EvaluateDataQuality struct {
// The inputs of your data quality evaluation.
//
// This member is required.
Inputs []string
// The name of the data quality evaluation.
//
// This member is required.
Name *string
// The ruleset for your data quality evaluation.
//
// This member is required.
Ruleset *string
// The output of your data quality evaluation.
Output DQTransformOutput
// Options to configure how your results are published.
PublishingOptions *DQResultsPublishingOptions
// Options to configure how your job will stop if your data quality evaluation
// fails.
StopJobOnFailureOptions *DQStopJobOnFailureOptions
noSmithyDocumentSerde
}
// Specifies your data quality evaluation criteria.
type EvaluateDataQualityMultiFrame struct {
// The inputs of your data quality evaluation. The first input in this list is the
// primary data source.
//
// This member is required.
Inputs []string
// The name of the data quality evaluation.
//
// This member is required.
Name *string
// The ruleset for your data quality evaluation.
//
// This member is required.
Ruleset *string
// The aliases of all data sources except primary.
AdditionalDataSources map[string]string
// Options to configure runtime behavior of the transform.
AdditionalOptions map[string]string
// Options to configure how your results are published.
PublishingOptions *DQResultsPublishingOptions
// Options to configure how your job will stop if your data quality evaluation
// fails.
StopJobOnFailureOptions *DQStopJobOnFailureOptions
noSmithyDocumentSerde
}
// Evaluation metrics provide an estimate of the quality of your machine learning
// transform.
type EvaluationMetrics struct {
// The type of machine learning transform.
//
// This member is required.
TransformType TransformType
// The evaluation metrics for the find matches algorithm.
FindMatchesMetrics *FindMatchesMetrics
noSmithyDocumentSerde
}
// Batch condition that must be met (specified number of events received or batch
// time window expired) before EventBridge event trigger fires.
type EventBatchingCondition struct {
// Number of events that must be received from Amazon EventBridge before
// EventBridge event trigger fires.
//
// This member is required.
BatchSize int32
// Window of time in seconds after which EventBridge event trigger fires. Window
// starts when first event is received.
BatchWindow *int32
noSmithyDocumentSerde
}
// An execution property of a job.
type ExecutionProperty struct {
// The maximum number of concurrent runs allowed for the job. The default is 1. An
// error is returned when this threshold is reached. The maximum value you can
// specify is controlled by a service limit.
MaxConcurrentRuns int32
noSmithyDocumentSerde
}
// Specifies configuration properties for an exporting labels task run.
type ExportLabelsTaskRunProperties struct {
// The Amazon Simple Storage Service (Amazon S3) path where you will export the
// labels.
OutputS3Path *string
noSmithyDocumentSerde
}
// A database that points to an entity outside the Glue Data Catalog.
type FederatedDatabase struct {
// The name of the connection to the external metastore.
ConnectionName *string
// A unique identifier for the federated database.
Identifier *string
noSmithyDocumentSerde
}
// A table that points to an entity outside the Glue Data Catalog.
type FederatedTable struct {
// The name of the connection to the external metastore.
ConnectionName *string
// A unique identifier for the federated database.
DatabaseIdentifier *string
// A unique identifier for the federated table.
Identifier *string
noSmithyDocumentSerde
}
// Specifies a transform that locates records in the dataset that have missing
// values and adds a new field with a value determined by imputation. The input
// data set is used to train the machine learning model that determines what the
// missing value should be.
type FillMissingValues struct {
// A JSON path to a variable in the data structure for the dataset that is imputed.
//
// This member is required.
ImputedPath *string
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A JSON path to a variable in the data structure for the dataset that is filled.
FilledPath *string
noSmithyDocumentSerde
}
// Specifies a transform that splits a dataset into two, based on a filter
// condition.
type Filter struct {
// Specifies a filter expression.
//
// This member is required.
Filters []FilterExpression
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The operator used to filter rows by comparing the key value to a specified
// value.
//
// This member is required.
LogicalOperator FilterLogicalOperator
// The name of the transform node.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Specifies a filter expression.
type FilterExpression struct {
// The type of operation to perform in the expression.
//
// This member is required.
Operation FilterOperation
// A list of filter values.
//
// This member is required.
Values []FilterValue
// Whether the expression is to be negated.
Negated *bool
noSmithyDocumentSerde
}
// Represents a single entry in the list of values for a FilterExpression .
type FilterValue struct {
// The type of filter value.
//
// This member is required.
Type FilterValueType
// The value to be associated.
//
// This member is required.
Value []string
noSmithyDocumentSerde
}
// The evaluation metrics for the find matches algorithm. The quality of your
// machine learning transform is measured by getting your transform to predict some
// matches and comparing the results to known matches from the same dataset. The
// quality metrics are based on a subset of your data, so they are not precise.
type FindMatchesMetrics struct {
// The area under the precision/recall curve (AUPRC) is a single number measuring
// the overall quality of the transform, that is independent of the choice made for
// precision vs. recall. Higher values indicate that you have a more attractive
// precision vs. recall tradeoff. For more information, see Precision and recall (https://en.wikipedia.org/wiki/Precision_and_recall)
// in Wikipedia.
AreaUnderPRCurve *float64
// A list of ColumnImportance structures containing column importance metrics,
// sorted in order of descending importance.
ColumnImportances []ColumnImportance
// The confusion matrix shows you what your transform is predicting accurately and
// what types of errors it is making. For more information, see Confusion matrix (https://en.wikipedia.org/wiki/Confusion_matrix)
// in Wikipedia.
ConfusionMatrix *ConfusionMatrix
// The maximum F1 metric indicates the transform's accuracy between 0 and 1, where
// 1 is the best accuracy. For more information, see F1 score (https://en.wikipedia.org/wiki/F1_score)
// in Wikipedia.
F1 *float64
// The precision metric indicates when often your transform is correct when it
// predicts a match. Specifically, it measures how well the transform finds true
// positives from the total true positives possible. For more information, see
// Precision and recall (https://en.wikipedia.org/wiki/Precision_and_recall) in
// Wikipedia.
Precision *float64
// The recall metric indicates that for an actual match, how often your transform
// predicts the match. Specifically, it measures how well the transform finds true
// positives from the total records in the source data. For more information, see
// Precision and recall (https://en.wikipedia.org/wiki/Precision_and_recall) in
// Wikipedia.
Recall *float64
noSmithyDocumentSerde
}
// The parameters to configure the find matches transform.
type FindMatchesParameters struct {
// The value that is selected when tuning your transform for a balance between
// accuracy and cost. A value of 0.5 means that the system balances accuracy and
// cost concerns. A value of 1.0 means a bias purely for accuracy, which typically
// results in a higher cost, sometimes substantially higher. A value of 0.0 means a
// bias purely for cost, which results in a less accurate FindMatches transform,
// sometimes with unacceptable accuracy. Accuracy measures how well the transform
// finds true positives and true negatives. Increasing accuracy requires more
// machine resources and cost. But it also results in increased recall. Cost
// measures how many compute resources, and thus money, are consumed to run the
// transform.
AccuracyCostTradeoff *float64
// The value to switch on or off to force the output to match the provided labels
// from users. If the value is True , the find matches transform forces the output
// to match the provided labels. The results override the normal conflation
// results. If the value is False , the find matches transform does not ensure all
// the labels provided are respected, and the results rely on the trained model.
// Note that setting this value to true may increase the conflation execution time.
EnforceProvidedLabels *bool
// The value selected when tuning your transform for a balance between precision
// and recall. A value of 0.5 means no preference; a value of 1.0 means a bias
// purely for precision, and a value of 0.0 means a bias for recall. Because this
// is a tradeoff, choosing values close to 1.0 means very low recall, and choosing
// values close to 0.0 results in very low precision. The precision metric
// indicates how often your model is correct when it predicts a match. The recall
// metric indicates that for an actual match, how often your model predicts the
// match.
PrecisionRecallTradeoff *float64
// The name of a column that uniquely identifies rows in the source table. Used to
// help identify matching records.
PrimaryKeyColumnName *string
noSmithyDocumentSerde
}
// Specifies configuration properties for a Find Matches task run.
type FindMatchesTaskRunProperties struct {
// The job ID for the Find Matches task run.
JobId *string
// The name assigned to the job for the Find Matches task run.
JobName *string
// The job run ID for the Find Matches task run.
JobRunId *string
noSmithyDocumentSerde
}
// Filters the connection definitions that are returned by the GetConnections API
// operation.
type GetConnectionsFilter struct {
// The type of connections to return. Currently, SFTP is not supported.
ConnectionType ConnectionType
// A criteria string that must match the criteria recorded in the connection
// definition for that connection definition to be returned.
MatchCriteria []string
noSmithyDocumentSerde
}
// A structure for returning a resource policy.
type GluePolicy struct {
// The date and time at which the policy was created.
CreateTime *time.Time
// Contains the hash value associated with this policy.
PolicyHash *string
// Contains the requested policy document, in JSON format.
PolicyInJson *string
// The date and time at which the policy was last updated.
UpdateTime *time.Time
noSmithyDocumentSerde
}
// Specifies a user-defined schema when a schema cannot be determined by Glue.
type GlueSchema struct {
// Specifies the column definitions that make up a Glue schema.
Columns []GlueStudioSchemaColumn
noSmithyDocumentSerde
}
// Specifies a single column in a Glue schema definition.
type GlueStudioSchemaColumn struct {
// The name of the column in the Glue Studio schema.
//
// This member is required.
Name *string
// The hive type for this column in the Glue Studio schema.
Type *string
noSmithyDocumentSerde
}
// The database and table in the Glue Data Catalog that is used for input or
// output data.
type GlueTable struct {
// A database name in the Glue Data Catalog.
//
// This member is required.
DatabaseName *string
// A table name in the Glue Data Catalog.
//
// This member is required.
TableName *string
// Additional options for the table. Currently there are two keys supported:
// - pushDownPredicate : to filter on partitions without having to list and read
// all the files in your dataset.
// - catalogPartitionPredicate : to use server-side partition pruning using
// partition indexes in the Glue Data Catalog.
AdditionalOptions map[string]string
// A unique identifier for the Glue Data Catalog.
CatalogId *string
// The name of the connection to the Glue Data Catalog.
ConnectionName *string
noSmithyDocumentSerde
}
// Specifies the data store in the governed Glue Data Catalog.
type GovernedCatalogSource struct {
// The database to read from.
//
// This member is required.
Database *string
// The name of the data store.
//
// This member is required.
Name *string
// The database table to read from.
//
// This member is required.
Table *string
// Specifies additional connection options.
AdditionalOptions *S3SourceAdditionalOptions
// Partitions satisfying this predicate are deleted. Files within the retention
// period in these partitions are not deleted. Set to "" – empty by default.
PartitionPredicate *string
noSmithyDocumentSerde
}
// Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.
type GovernedCatalogTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the governed catalog.
SchemaChangePolicy *CatalogSchemaChangePolicy
noSmithyDocumentSerde
}
// A classifier that uses grok patterns.
type GrokClassifier struct {
// An identifier of the data format that the classifier matches, such as Twitter,
// JSON, Omniture logs, and so on.
//
// This member is required.
Classification *string
// The grok pattern applied to a data store by this classifier. For more
// information, see built-in patterns in Writing Custom Classifiers (https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html)
// .
//
// This member is required.
GrokPattern *string
// The name of the classifier.
//
// This member is required.
Name *string
// The time that this classifier was registered.
CreationTime *time.Time
// Optional custom grok patterns defined by this classifier. For more information,
// see custom patterns in Writing Custom Classifiers (https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html)
// .
CustomPatterns *string
// The time that this classifier was last updated.
LastUpdated *time.Time
// The version of this classifier.
Version int64
noSmithyDocumentSerde
}
// Specifies an Apache Iceberg data source where Iceberg tables are stored in
// Amazon S3.
type IcebergTarget struct {
// The name of the connection to use to connect to the Iceberg target.
ConnectionName *string
// A list of glob patterns used to exclude from the crawl. For more information,
// see Catalog Tables with a Crawler (https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html)
// .
Exclusions []string
// The maximum depth of Amazon S3 paths that the crawler can traverse to discover
// the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler
// run time.
MaximumTraversalDepth *int32
// One or more Amazon S3 paths that contains Iceberg metadata folders as
// s3://bucket/prefix .
Paths []string
noSmithyDocumentSerde
}
// Specifies configuration properties for an importing labels task run.
type ImportLabelsTaskRunProperties struct {
// The Amazon Simple Storage Service (Amazon S3) path from where you will import
// the labels.
InputS3Path *string
// Indicates whether to overwrite your existing labels.
Replace bool
noSmithyDocumentSerde
}
// Additional connection options for the connector.
type JDBCConnectorOptions struct {
// Custom data type mapping that builds a mapping from a JDBC data type to an Glue
// data type. For example, the option "dataTypeMapping":{"FLOAT":"STRING"} maps
// data fields of JDBC type FLOAT into the Java String type by calling the
// ResultSet.getString() method of the driver, and uses it to build the Glue
// record. The ResultSet object is implemented by each driver, so the behavior is
// specific to the driver you use. Refer to the documentation for your JDBC driver
// to understand how the driver performs the conversions.
DataTypeMapping map[string]GlueRecordType
// Extra condition clause to filter data from source. For example:
// BillingCity='Mountain View' When using a query instead of a table name, you
// should validate that the query works with the specified filterPredicate .
FilterPredicate *string
// The name of the job bookmark keys on which to sort.
JobBookmarkKeys []string
// Specifies an ascending or descending sort order.
JobBookmarkKeysSortOrder *string
// The minimum value of partitionColumn that is used to decide partition stride.
LowerBound *int64
// The number of partitions. This value, along with lowerBound (inclusive) and
// upperBound (exclusive), form partition strides for generated WHERE clause
// expressions that are used to split the partitionColumn .
NumPartitions *int64
// The name of an integer column that is used for partitioning. This option works
// only when it's included with lowerBound , upperBound , and numPartitions . This
// option works the same way as in the Spark SQL JDBC reader.
PartitionColumn *string
// The maximum value of partitionColumn that is used to decide partition stride.
UpperBound *int64
noSmithyDocumentSerde
}
// Specifies a connector to a JDBC data source.
type JDBCConnectorSource struct {
// The name of the connection that is associated with the connector.
//
// This member is required.
ConnectionName *string
// The type of connection, such as marketplace.jdbc or custom.jdbc, designating a
// connection to a JDBC data store.
//
// This member is required.
ConnectionType *string
// The name of a connector that assists with accessing the data store in Glue
// Studio.
//
// This member is required.
ConnectorName *string
// The name of the data source.
//
// This member is required.
Name *string
// Additional connection options for the connector.
AdditionalOptions *JDBCConnectorOptions
// The name of the table in the data source.
ConnectionTable *string
// Specifies the data schema for the custom JDBC source.
OutputSchemas []GlueSchema
// The table or SQL query to get the data from. You can specify either
// ConnectionTable or query , but not both.
Query *string
noSmithyDocumentSerde
}
// Specifies a data target that writes to Amazon S3 in Apache Parquet columnar
// storage.
type JDBCConnectorTarget struct {
// The name of the connection that is associated with the connector.
//
// This member is required.
ConnectionName *string
// The name of the table in the data target.
//
// This member is required.
ConnectionTable *string
// The type of connection, such as marketplace.jdbc or custom.jdbc, designating a
// connection to a JDBC data target.
//
// This member is required.
ConnectionType *string
// The name of a connector that will be used.
//
// This member is required.
ConnectorName *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// Additional connection options for the connector.
AdditionalOptions map[string]string
// Specifies the data schema for the JDBC target.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies a JDBC data store to crawl.
type JdbcTarget struct {
// The name of the connection to use to connect to the JDBC target.
ConnectionName *string
// Specify a value of RAWTYPES or COMMENTS to enable additional metadata in table
// responses. RAWTYPES provides the native-level datatype. COMMENTS provides
// comments associated with a column or table in the database. If you do not need
// additional metadata, keep the field empty.
EnableAdditionalMetadata []JdbcMetadataEntry
// A list of glob patterns used to exclude from the crawl. For more information,
// see Catalog Tables with a Crawler (https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html)
// .
Exclusions []string
// The path of the JDBC target.
Path *string
noSmithyDocumentSerde
}
// Specifies a job definition.
type Job struct {
// This field is deprecated. Use MaxCapacity instead. The number of Glue data
// processing units (DPUs) allocated to runs of this job. You can allocate a
// minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing
// power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more
// information, see the Glue pricing page (https://aws.amazon.com/glue/pricing/) .
//
// Deprecated: This property is deprecated, use MaxCapacity instead.
AllocatedCapacity int32
// The representation of a directed acyclic graph on which both the Glue Studio
// visual component and Glue Studio code generation is based.
CodeGenConfigurationNodes map[string]CodeGenConfigurationNode
// The JobCommand that runs this job.
Command *JobCommand
// The connections used for this job.
Connections *ConnectionsList
// The time and date that this job definition was created.
CreatedOn *time.Time
// The default arguments for every run of this job, specified as name-value pairs.
// You can specify arguments here that your own job-execution script consumes, as
// well as arguments that Glue itself consumes. Job arguments may be logged. Do not
// pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection,
// Secrets Manager or other secret management mechanism if you intend to keep them
// within the Job. For information about how to specify and consume your own Job
// arguments, see the Calling Glue APIs in Python (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Spark jobs, see the Special Parameters
// Used by Glue (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Ray jobs, see Using job parameters in
// Ray jobs (https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html)
// in the developer guide.
DefaultArguments map[string]string
// A description of the job.
Description *string
// Indicates whether the job is run with a standard or flexible execution class.
// The standard execution class is ideal for time-sensitive workloads that require
// fast job startup and dedicated resources. The flexible execution class is
// appropriate for time-insensitive jobs whose start and completion times may vary.
// Only jobs with Glue version 3.0 and above and command type glueetl will be
// allowed to set ExecutionClass to FLEX . The flexible execution class is
// available for Spark jobs.
ExecutionClass ExecutionClass
// An ExecutionProperty specifying the maximum number of concurrent runs allowed
// for this job.
ExecutionProperty *ExecutionProperty
// In Spark jobs, GlueVersion determines the versions of Apache Spark and Python
// that Glue available in a job. The Python version indicates the version supported
// for jobs of type Spark. Ray jobs should set GlueVersion to 4.0 or greater.
// However, the versions of Ray, Python and additional libraries available in your
// Ray job are determined by the Runtime parameter of the Job command. For more
// information about the available Glue versions and corresponding Spark and Python
// versions, see Glue version (https://docs.aws.amazon.com/glue/latest/dg/add-job.html)
// in the developer guide. Jobs that are created without specifying a Glue version
// default to Glue 0.9.
GlueVersion *string
// The last point in time when this job definition was modified.
LastModifiedOn *time.Time
// This field is reserved for future use.
LogUri *string
// For Glue version 1.0 or earlier jobs, using the standard worker type, the
// number of Glue data processing units (DPUs) that can be allocated when this job
// runs. A DPU is a relative measure of processing power that consists of 4 vCPUs
// of compute capacity and 16 GB of memory. For more information, see the Glue
// pricing page (https://aws.amazon.com/glue/pricing/) . For Glue version 2.0 or
// later jobs, you cannot specify a Maximum capacity . Instead, you should specify
// a Worker type and the Number of workers . Do not set MaxCapacity if using
// WorkerType and NumberOfWorkers . The value that can be allocated for MaxCapacity
// depends on whether you are running a Python shell job, an Apache Spark ETL job,
// or an Apache Spark streaming ETL job:
// - When you specify a Python shell job ( JobCommand.Name ="pythonshell"), you
// can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.
// - When you specify an Apache Spark ETL job ( JobCommand.Name ="glueetl") or
// Apache Spark streaming ETL job ( JobCommand.Name ="gluestreaming"), you can
// allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a
// fractional DPU allocation.
MaxCapacity *float64
// The maximum number of times to retry this job after a JobRun fails.
MaxRetries int32
// The name you assign to this job definition.
Name *string
// Arguments for this job that are not overridden when providing job arguments in
// a job run, specified as name-value pairs.
NonOverridableArguments map[string]string
// Specifies configuration properties of a job notification.
NotificationProperty *NotificationProperty
// The number of workers of a defined workerType that are allocated when a job
// runs.
NumberOfWorkers *int32
// The name or Amazon Resource Name (ARN) of the IAM role associated with this job.
Role *string
// The name of the SecurityConfiguration structure to be used with this job.
SecurityConfiguration *string
// The details for a source control configuration for a job, allowing
// synchronization of job artifacts to or from a remote repository.
SourceControlDetails *SourceControlDetails
// The job timeout in minutes. This is the maximum time that a job run can consume
// resources before it is terminated and enters TIMEOUT status. The default is
// 2,880 minutes (48 hours).
Timeout *int32
// The type of predefined worker that is allocated when a job runs. Accepts a
// value of Standard, G.1X, G.2X, G.4X, G.8X, or G.025X for Spark jobs. Accepts the
// value Z.2X for Ray jobs.
// - For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory
// and a 50GB disk, and 2 executors per worker.
// - For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for workloads such as data transforms, joins, and queries, to offers
// a scalable and cost effective way to run most jobs.
// - For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of
// memory, 128 GB disk), and provides 1 executor per worker. We recommend this
// worker type for workloads such as data transforms, joins, and queries, to offers
// a scalable and cost effective way to run most jobs.
// - For the G.4X worker type, each worker maps to 4 DPU (16 vCPU, 64 GB of
// memory, 256 GB disk), and provides 1 executor per worker. We recommend this
// worker type for jobs whose workloads contain your most demanding transforms,
// aggregations, joins, and queries. This worker type is available only for Glue
// version 3.0 or later Spark ETL jobs in the following Amazon Web Services
// Regions: US East (Ohio), US East (N. Virginia), US West (Oregon), Asia Pacific
// (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central),
// Europe (Frankfurt), Europe (Ireland), and Europe (Stockholm).
// - For the G.8X worker type, each worker maps to 8 DPU (32 vCPU, 128 GB of
// memory, 512 GB disk), and provides 1 executor per worker. We recommend this
// worker type for jobs whose workloads contain your most demanding transforms,
// aggregations, joins, and queries. This worker type is available only for Glue
// version 3.0 or later Spark ETL jobs, in the same Amazon Web Services Regions as
// supported for the G.4X worker type.
// - For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for low volume streaming jobs. This worker type is only available
// for Glue version 3.0 streaming jobs.
// - For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPU, 64 GB of m
// emory, 128 GB disk), and provides a default of 8 Ray workers (1 per vCPU).
WorkerType WorkerType
noSmithyDocumentSerde
}
// Defines a point that a job can resume processing.
type JobBookmarkEntry struct {
// The attempt ID number.
Attempt int32
// The bookmark itself.
JobBookmark *string
// The name of the job in question.
JobName *string
// The unique run identifier associated with the previous job run.
PreviousRunId *string
// The run ID number.
Run int32
// The run ID number.
RunId *string
// The version of the job.
Version int32
noSmithyDocumentSerde
}
// Specifies how job bookmark data should be encrypted.
type JobBookmarksEncryption struct {
// The encryption mode to use for job bookmarks data.
JobBookmarksEncryptionMode JobBookmarksEncryptionMode
// The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
KmsKeyArn *string
noSmithyDocumentSerde
}
// Specifies code that runs when a job is run.
type JobCommand struct {
// The name of the job command. For an Apache Spark ETL job, this must be glueetl .
// For a Python shell job, it must be pythonshell . For an Apache Spark streaming
// ETL job, this must be gluestreaming . For a Ray job, this must be glueray .
Name *string
// The Python version being used to run a Python shell job. Allowed values are 2
// or 3.
PythonVersion *string
// In Ray jobs, Runtime is used to specify the versions of Ray, Python and
// additional libraries available in your environment. This field is not used in
// other job types. For supported runtime environment values, see Working with Ray
// jobs (https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-runtimes.html)
// in the Glue Developer Guide.
Runtime *string
// Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that
// runs a job.
ScriptLocation *string
noSmithyDocumentSerde
}
// The details of a Job node present in the workflow.
type JobNodeDetails struct {
// The information for the job runs represented by the job node.
JobRuns []JobRun
noSmithyDocumentSerde
}
// Contains information about a job run.
type JobRun struct {
// This field is deprecated. Use MaxCapacity instead. The number of Glue data
// processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be
// allocated; the default is 10. A DPU is a relative measure of processing power
// that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more
// information, see the Glue pricing page (https://aws.amazon.com/glue/pricing/) .
//
// Deprecated: This property is deprecated, use MaxCapacity instead.
AllocatedCapacity int32
// The job arguments associated with this run. For this job run, they replace the
// default arguments set in the job definition itself. You can specify arguments
// here that your own job-execution script consumes, as well as arguments that Glue
// itself consumes. Job arguments may be logged. Do not pass plaintext secrets as
// arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other
// secret management mechanism if you intend to keep them within the Job. For
// information about how to specify and consume your own Job arguments, see the
// Calling Glue APIs in Python (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Spark jobs, see the Special Parameters
// Used by Glue (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Ray jobs, see Using job parameters in
// Ray jobs (https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html)
// in the developer guide.
Arguments map[string]string
// The number of the attempt to run this job.
Attempt int32
// The date and time that this job run completed.
CompletedOn *time.Time
// This field populates only for Auto Scaling job runs, and represents the total
// time each executor ran during the lifecycle of a job run in seconds, multiplied
// by a DPU factor (1 for G.1X , 2 for G.2X , or 0.25 for G.025X workers). This
// value may be different than the executionEngineRuntime * MaxCapacity as in the
// case of Auto Scaling jobs, as the number of executors running at a given time
// may be less than the MaxCapacity . Therefore, it is possible that the value of
// DPUSeconds is less than executionEngineRuntime * MaxCapacity .
DPUSeconds *float64
// An error message associated with this job run.
ErrorMessage *string
// Indicates whether the job is run with a standard or flexible execution class.
// The standard execution-class is ideal for time-sensitive workloads that require
// fast job startup and dedicated resources. The flexible execution class is
// appropriate for time-insensitive jobs whose start and completion times may vary.
// Only jobs with Glue version 3.0 and above and command type glueetl will be
// allowed to set ExecutionClass to FLEX . The flexible execution class is
// available for Spark jobs.
ExecutionClass ExecutionClass
// The amount of time (in seconds) that the job run consumed resources.
ExecutionTime int32
// In Spark jobs, GlueVersion determines the versions of Apache Spark and Python
// that Glue available in a job. The Python version indicates the version supported
// for jobs of type Spark. Ray jobs should set GlueVersion to 4.0 or greater.
// However, the versions of Ray, Python and additional libraries available in your
// Ray job are determined by the Runtime parameter of the Job command. For more
// information about the available Glue versions and corresponding Spark and Python
// versions, see Glue version (https://docs.aws.amazon.com/glue/latest/dg/add-job.html)
// in the developer guide. Jobs that are created without specifying a Glue version
// default to Glue 0.9.
GlueVersion *string
// The ID of this job run.
Id *string
// The name of the job definition being used in this run.
JobName *string
// The current state of the job run. For more information about the statuses of
// jobs that have terminated abnormally, see Glue Job Run Statuses (https://docs.aws.amazon.com/glue/latest/dg/job-run-statuses.html)
// .
JobRunState JobRunState
// The last time that this job run was modified.
LastModifiedOn *time.Time
// The name of the log group for secure logging that can be server-side encrypted
// in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/ , in which case
// the default encryption is NONE . If you add a role name and
// SecurityConfiguration name (in other words,
// /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/ ), then that security
// configuration is used to encrypt the log group.
LogGroupName *string
// For Glue version 1.0 or earlier jobs, using the standard worker type, the
// number of Glue data processing units (DPUs) that can be allocated when this job
// runs. A DPU is a relative measure of processing power that consists of 4 vCPUs
// of compute capacity and 16 GB of memory. For more information, see the Glue
// pricing page (https://aws.amazon.com/glue/pricing/) . For Glue version 2.0+
// jobs, you cannot specify a Maximum capacity . Instead, you should specify a
// Worker type and the Number of workers . Do not set MaxCapacity if using
// WorkerType and NumberOfWorkers . The value that can be allocated for MaxCapacity
// depends on whether you are running a Python shell job, an Apache Spark ETL job,
// or an Apache Spark streaming ETL job:
// - When you specify a Python shell job ( JobCommand.Name ="pythonshell"), you
// can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.
// - When you specify an Apache Spark ETL job ( JobCommand.Name ="glueetl") or
// Apache Spark streaming ETL job ( JobCommand.Name ="gluestreaming"), you can
// allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a
// fractional DPU allocation.
MaxCapacity *float64
// Specifies configuration properties of a job run notification.
NotificationProperty *NotificationProperty
// The number of workers of a defined workerType that are allocated when a job
// runs.
NumberOfWorkers *int32
// A list of predecessors to this job run.
PredecessorRuns []Predecessor
// The ID of the previous run of this job. For example, the JobRunId specified in
// the StartJobRun action.
PreviousRunId *string
// The name of the SecurityConfiguration structure to be used with this job run.
SecurityConfiguration *string
// The date and time at which this job run was started.
StartedOn *time.Time
// The JobRun timeout in minutes. This is the maximum time that a job run can
// consume resources before it is terminated and enters TIMEOUT status. This value
// overrides the timeout value set in the parent job. Streaming jobs do not have a
// timeout. The default for non-streaming jobs is 2,880 minutes (48 hours).
Timeout *int32
// The name of the trigger that started this job run.
TriggerName *string
// The type of predefined worker that is allocated when a job runs. Accepts a
// value of Standard, G.1X, G.2X, or G.025X for Spark jobs. Accepts the value Z.2X
// for Ray jobs.
// - For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory
// and a 50GB disk, and 2 executors per worker.
// - For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// - For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of
// memory, 128 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// - For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for low volume streaming jobs. This worker type is only available
// for Glue version 3.0 streaming jobs.
// - For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPU, 64 GB of m
// emory, 128 GB disk), and provides up to 8 Ray workers (one per vCPU) based on
// the autoscaler.
WorkerType WorkerType
noSmithyDocumentSerde
}
// Specifies information used to update an existing job definition. The previous
// job definition is completely overwritten by this information.
type JobUpdate struct {
// This field is deprecated. Use MaxCapacity instead. The number of Glue data
// processing units (DPUs) to allocate to this job. You can allocate a minimum of 2
// DPUs; the default is 10. A DPU is a relative measure of processing power that
// consists of 4 vCPUs of compute capacity and 16 GB of memory. For more
// information, see the Glue pricing page (https://aws.amazon.com/glue/pricing/) .
//
// Deprecated: This property is deprecated, use MaxCapacity instead.
AllocatedCapacity int32
// The representation of a directed acyclic graph on which both the Glue Studio
// visual component and Glue Studio code generation is based.
CodeGenConfigurationNodes map[string]CodeGenConfigurationNode
// The JobCommand that runs this job (required).
Command *JobCommand
// The connections used for this job.
Connections *ConnectionsList
// The default arguments for every run of this job, specified as name-value pairs.
// You can specify arguments here that your own job-execution script consumes, as
// well as arguments that Glue itself consumes. Job arguments may be logged. Do not
// pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection,
// Secrets Manager or other secret management mechanism if you intend to keep them
// within the Job. For information about how to specify and consume your own Job
// arguments, see the Calling Glue APIs in Python (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Spark jobs, see the Special Parameters
// Used by Glue (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
// topic in the developer guide. For information about the arguments you can
// provide to this field when configuring Ray jobs, see Using job parameters in
// Ray jobs (https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html)
// in the developer guide.
DefaultArguments map[string]string
// Description of the job being defined.
Description *string
// Indicates whether the job is run with a standard or flexible execution class.
// The standard execution-class is ideal for time-sensitive workloads that require
// fast job startup and dedicated resources. The flexible execution class is
// appropriate for time-insensitive jobs whose start and completion times may vary.
// Only jobs with Glue version 3.0 and above and command type glueetl will be
// allowed to set ExecutionClass to FLEX . The flexible execution class is
// available for Spark jobs.
ExecutionClass ExecutionClass
// An ExecutionProperty specifying the maximum number of concurrent runs allowed
// for this job.
ExecutionProperty *ExecutionProperty
// In Spark jobs, GlueVersion determines the versions of Apache Spark and Python
// that Glue available in a job. The Python version indicates the version supported
// for jobs of type Spark. Ray jobs should set GlueVersion to 4.0 or greater.
// However, the versions of Ray, Python and additional libraries available in your
// Ray job are determined by the Runtime parameter of the Job command. For more
// information about the available Glue versions and corresponding Spark and Python
// versions, see Glue version (https://docs.aws.amazon.com/glue/latest/dg/add-job.html)
// in the developer guide. Jobs that are created without specifying a Glue version
// default to Glue 0.9.
GlueVersion *string
// This field is reserved for future use.
LogUri *string
// For Glue version 1.0 or earlier jobs, using the standard worker type, the
// number of Glue data processing units (DPUs) that can be allocated when this job
// runs. A DPU is a relative measure of processing power that consists of 4 vCPUs
// of compute capacity and 16 GB of memory. For more information, see the Glue
// pricing page (https://aws.amazon.com/glue/pricing/) . For Glue version 2.0+
// jobs, you cannot specify a Maximum capacity . Instead, you should specify a
// Worker type and the Number of workers . Do not set MaxCapacity if using
// WorkerType and NumberOfWorkers . The value that can be allocated for MaxCapacity
// depends on whether you are running a Python shell job, an Apache Spark ETL job,
// or an Apache Spark streaming ETL job:
// - When you specify a Python shell job ( JobCommand.Name ="pythonshell"), you
// can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.
// - When you specify an Apache Spark ETL job ( JobCommand.Name ="glueetl") or
// Apache Spark streaming ETL job ( JobCommand.Name ="gluestreaming"), you can
// allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a
// fractional DPU allocation.
MaxCapacity *float64
// The maximum number of times to retry this job if it fails.
MaxRetries int32
// Arguments for this job that are not overridden when providing job arguments in
// a job run, specified as name-value pairs.
NonOverridableArguments map[string]string
// Specifies the configuration properties of a job notification.
NotificationProperty *NotificationProperty
// The number of workers of a defined workerType that are allocated when a job
// runs.
NumberOfWorkers *int32
// The name or Amazon Resource Name (ARN) of the IAM role associated with this job
// (required).
Role *string
// The name of the SecurityConfiguration structure to be used with this job.
SecurityConfiguration *string
// The details for a source control configuration for a job, allowing
// synchronization of job artifacts to or from a remote repository.
SourceControlDetails *SourceControlDetails
// The job timeout in minutes. This is the maximum time that a job run can consume
// resources before it is terminated and enters TIMEOUT status. The default is
// 2,880 minutes (48 hours).
Timeout *int32
// The type of predefined worker that is allocated when a job runs. Accepts a
// value of Standard, G.1X, G.2X, or G.025X for Spark jobs. Accepts the value Z.2X
// for Ray jobs.
// - For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory
// and a 50GB disk, and 2 executors per worker.
// - For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// - For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of
// memory, 128 GB disk), and provides 1 executor per worker. We recommend this
// worker type for memory-intensive jobs.
// - For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of
// memory, 64 GB disk), and provides 1 executor per worker. We recommend this
// worker type for low volume streaming jobs. This worker type is only available
// for Glue version 3.0 streaming jobs.
// - For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPU, 64 GB of m
// emory, 128 GB disk), and provides up to 8 Ray workers based on the autoscaler.
WorkerType WorkerType
noSmithyDocumentSerde
}
// Specifies a transform that joins two datasets into one dataset using a
// comparison phrase on the specified data property keys. You can use inner, outer,
// left, right, left semi, and left anti joins.
type Join struct {
// A list of the two columns to be joined.
//
// This member is required.
Columns []JoinColumn
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// Specifies the type of join to be performed on the datasets.
//
// This member is required.
JoinType JoinType
// The name of the transform node.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Specifies a column to be joined.
type JoinColumn struct {
// The column to be joined.
//
// This member is required.
From *string
// The key of the column to be joined.
//
// This member is required.
Keys [][]string
noSmithyDocumentSerde
}
// A classifier for JSON content.
type JsonClassifier struct {
// A JsonPath string defining the JSON data for the classifier to classify. Glue
// supports a subset of JsonPath, as described in Writing JsonPath Custom
// Classifiers (https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json)
// .
//
// This member is required.
JsonPath *string
// The name of the classifier.
//
// This member is required.
Name *string
// The time that this classifier was registered.
CreationTime *time.Time
// The time that this classifier was last updated.
LastUpdated *time.Time
// The version of this classifier.
Version int64
noSmithyDocumentSerde
}
// Additional options for streaming.
type KafkaStreamingSourceOptions struct {
// When this option is set to 'true', the data output will contain an additional
// column named "__src_timestamp" that indicates the time when the corresponding
// record received by the topic. The default value is 'false'. This option is
// supported in Glue version 4.0 or later.
AddRecordTimestamp *string
// The specific TopicPartitions to consume. You must specify at least one of
// "topicName" , "assign" or "subscribePattern" .
Assign *string
// A list of bootstrap server URLs, for example, as
// b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094 . This option must
// be specified in the API call or defined in the table metadata in the Data
// Catalog.
BootstrapServers *string
// An optional classification.
Classification *string
// The name of the connection.
ConnectionName *string
// Specifies the delimiter character.
Delimiter *string
// When this option is set to 'true', for each batch, it will emit the metrics for
// the duration between the oldest record received by the topic and the time it
// arrives in Glue to CloudWatch. The metric's name is
// "glue.driver.streaming.maxConsumerLagInMs". The default value is 'false'. This
// option is supported in Glue version 4.0 or later.
EmitConsumerLagMetrics *string
// The end point when a batch query is ended. Possible values are either "latest"
// or a JSON string that specifies an ending offset for each TopicPartition .
EndingOffsets *string
// Whether to include the Kafka headers. When the option is set to "true", the
// data output will contain an additional column named
// "glue_streaming_kafka_headers" with type Array[Struct(key: String, value:
// String)] . The default value is "false". This option is available in Glue
// version 3.0 or later only.
IncludeHeaders *bool
// The rate limit on the maximum number of offsets that are processed per trigger
// interval. The specified total number of offsets is proportionally split across
// topicPartitions of different volumes. The default value is null, which means
// that the consumer reads all offsets until the known latest offset.
MaxOffsetsPerTrigger *int64
// The desired minimum number of partitions to read from Kafka. The default value
// is null, which means that the number of spark partitions is equal to the number
// of Kafka partitions.
MinPartitions *int32
// The number of times to retry before failing to fetch Kafka offsets. The default
// value is 3 .
NumRetries *int32
// The timeout in milliseconds to poll data from Kafka in Spark job executors. The
// default value is 512 .
PollTimeoutMs *int64
// The time in milliseconds to wait before retrying to fetch Kafka offsets. The
// default value is 10 .
RetryIntervalMs *int64
// The protocol used to communicate with brokers. The possible values are "SSL" or
// "PLAINTEXT" .
SecurityProtocol *string
// The starting position in the Kafka topic to read data from. The possible values
// are "earliest" or "latest" . The default value is "latest" .
StartingOffsets *string
// The timestamp of the record in the Kafka topic to start reading data from. The
// possible values are a timestamp string in UTC format of the pattern
// yyyy-mm-ddTHH:MM:SSZ (where Z represents a UTC timezone offset with a +/-. For
// example: "2023-04-04T08:00:00+08:00"). Only one of StartingTimestamp or
// StartingOffsets must be set.
StartingTimestamp *time.Time
// A Java regex string that identifies the topic list to subscribe to. You must
// specify at least one of "topicName" , "assign" or "subscribePattern" .
SubscribePattern *string
// The topic name as specified in Apache Kafka. You must specify at least one of
// "topicName" , "assign" or "subscribePattern" .
TopicName *string
noSmithyDocumentSerde
}
// A partition key pair consisting of a name and a type.
type KeySchemaElement struct {
// The name of a partition key.
//
// This member is required.
Name *string
// The type of a partition key.
//
// This member is required.
Type *string
noSmithyDocumentSerde
}
// Additional options for the Amazon Kinesis streaming data source.
type KinesisStreamingSourceOptions struct {
// Adds a time delay between two consecutive getRecords operations. The default
// value is "False" . This option is only configurable for Glue version 2.0 and
// above.
AddIdleTimeBetweenReads *bool
// When this option is set to 'true', the data output will contain an additional
// column named "__src_timestamp" that indicates the time when the corresponding
// record received by the stream. The default value is 'false'. This option is
// supported in Glue version 4.0 or later.
AddRecordTimestamp *string
// Avoids creating an empty microbatch job by checking for unread data in the
// Kinesis data stream before the batch is started. The default value is "False" .
AvoidEmptyBatches *bool
// An optional classification.
Classification *string
// Specifies the delimiter character.
Delimiter *string
// The minimum time interval between two ListShards API calls for your script to
// consider resharding. The default value is 1s .
DescribeShardInterval *int64
// When this option is set to 'true', for each batch, it will emit the metrics for
// the duration between the oldest record received by the stream and the time it
// arrives in Glue to CloudWatch. The metric's name is
// "glue.driver.streaming.maxConsumerLagInMs". The default value is 'false'. This
// option is supported in Glue version 4.0 or later.
EmitConsumerLagMetrics *string
// The URL of the Kinesis endpoint.
EndpointUrl *string
// The minimum time delay between two consecutive getRecords operations, specified
// in ms. The default value is 1000 . This option is only configurable for Glue
// version 2.0 and above.
IdleTimeBetweenReadsInMs *int64
// The maximum number of records to fetch per shard in the Kinesis data stream.
// The default value is 100000 .
MaxFetchRecordsPerShard *int64
// The maximum time spent in the job executor to fetch a record from the Kinesis
// data stream per shard, specified in milliseconds (ms). The default value is 1000
// .
MaxFetchTimeInMs *int64
// The maximum number of records to fetch from the Kinesis data stream in each
// getRecords operation. The default value is 10000 .
MaxRecordPerRead *int64
// The maximum cool-off time period (specified in ms) between two retries of a
// Kinesis Data Streams API call. The default value is 10000 .
MaxRetryIntervalMs *int64
// The maximum number of retries for Kinesis Data Streams API requests. The
// default value is 3 .
NumRetries *int32
// The cool-off time period (specified in ms) before retrying the Kinesis Data
// Streams API call. The default value is 1000 .
RetryIntervalMs *int64
// The Amazon Resource Name (ARN) of the role to assume using AWS Security Token
// Service (AWS STS). This role must have permissions for describe or read record
// operations for the Kinesis data stream. You must use this parameter when
// accessing a data stream in a different account. Used in conjunction with
// "awsSTSSessionName" .
RoleArn *string
// An identifier for the session assuming the role using AWS STS. You must use
// this parameter when accessing a data stream in a different account. Used in
// conjunction with "awsSTSRoleARN" .
RoleSessionName *string
// The starting position in the Kinesis data stream to read data from. The
// possible values are "latest" , "trim_horizon" , "earliest" , or a timestamp
// string in UTC format in the pattern yyyy-mm-ddTHH:MM:SSZ (where Z represents a
// UTC timezone offset with a +/-. For example: "2023-04-04T08:00:00-04:00"). The
// default value is "latest" . Note: Using a value that is a timestamp string in
// UTC format for "startingPosition" is supported only for Glue version 4.0 or
// later.
StartingPosition StartingPosition
// The timestamp of the record in the Kinesis data stream to start reading data
// from. The possible values are a timestamp string in UTC format of the pattern
// yyyy-mm-ddTHH:MM:SSZ (where Z represents a UTC timezone offset with a +/-. For
// example: "2023-04-04T08:00:00+08:00").
StartingTimestamp *time.Time
// The Amazon Resource Name (ARN) of the Kinesis data stream.
StreamArn *string
// The name of the Kinesis data stream.
StreamName *string
noSmithyDocumentSerde
}
// Specifies configuration properties for a labeling set generation task run.
type LabelingSetGenerationTaskRunProperties struct {
// The Amazon Simple Storage Service (Amazon S3) path where you will generate the
// labeling set.
OutputS3Path *string
noSmithyDocumentSerde
}
// Specifies Lake Formation configuration settings for the crawler.
type LakeFormationConfiguration struct {
// Required for cross account crawls. For same account crawls as the target data,
// this can be left as null.
AccountId *string
// Specifies whether to use Lake Formation credentials for the crawler instead of
// the IAM role credentials.
UseLakeFormationCredentials *bool
noSmithyDocumentSerde
}
// When there are multiple versions of a blueprint and the latest version has some
// errors, this attribute indicates the last successful blueprint definition that
// is available with the service.
type LastActiveDefinition struct {
// Specifies a path in Amazon S3 where the blueprint is published by the Glue
// developer.
BlueprintLocation *string
// Specifies a path in Amazon S3 where the blueprint is copied when you create or
// update the blueprint.
BlueprintServiceLocation *string
// The description of the blueprint.
Description *string
// The date and time the blueprint was last modified.
LastModifiedOn *time.Time
// A JSON string specifying the parameters for the blueprint.
ParameterSpec *string
noSmithyDocumentSerde
}
// Status and error information about the most recent crawl.
type LastCrawlInfo struct {
// If an error occurred, the error information about the last crawl.
ErrorMessage *string
// The log group for the last crawl.
LogGroup *string
// The log stream for the last crawl.
LogStream *string
// The prefix for a message about this crawl.
MessagePrefix *string
// The time at which the crawl started.
StartTime *time.Time
// Status of the last crawl.
Status LastCrawlStatus
noSmithyDocumentSerde
}
// Specifies data lineage configuration settings for the crawler.
type LineageConfiguration struct {
// Specifies whether data lineage is enabled for the crawler. Valid values are:
// - ENABLE: enables data lineage for the crawler
// - DISABLE: disables data lineage for the crawler
CrawlerLineageSettings CrawlerLineageSettings
noSmithyDocumentSerde
}
// The location of resources.
type Location struct {
// An Amazon DynamoDB table location.
DynamoDB []CodeGenNodeArg
// A JDBC location.
Jdbc []CodeGenNodeArg
// An Amazon Simple Storage Service (Amazon S3) location.
S3 []CodeGenNodeArg
noSmithyDocumentSerde
}
// Defines column statistics supported for integer data columns.
type LongColumnStatisticsData struct {
// The number of distinct values in a column.
//
// This member is required.
NumberOfDistinctValues int64
// The number of null values in the column.
//
// This member is required.
NumberOfNulls int64
// The highest value in the column.
MaximumValue int64
// The lowest value in the column.
MinimumValue int64
noSmithyDocumentSerde
}
// Specifies the mapping of data property keys.
type Mapping struct {
// Only applicable to nested data structures. If you want to change the parent
// structure, but also one of its children, you can fill out this data strucutre.
// It is also Mapping , but its FromPath will be the parent's FromPath plus the
// FromPath from this structure. For the children part, suppose you have the
// structure: { "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType":
// "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey":
// "inner", "ToType": "Double", "Dropped": false, }] } You can specify a Mapping
// that looks like: { "FromPath": "OuterStructure", "ToKey": "OuterStructure",
// "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner",
// "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
Children []Mapping
// If true, then the column is removed.
Dropped *bool
// The table or column to be modified.
FromPath []string
// The type of the data to be modified.
FromType *string
// After the apply mapping, what the name of the column should be. Can be the same
// as FromPath .
ToKey *string
// The data type that the data is to be modified to.
ToType *string
noSmithyDocumentSerde
}
// Defines a mapping.
type MappingEntry struct {
// The source path.
SourcePath *string
// The name of the source table.
SourceTable *string
// The source type.
SourceType *string
// The target path.
TargetPath *string
// The target table.
TargetTable *string
// The target type.
TargetType *string
noSmithyDocumentSerde
}
// Specifies a transform that merges a DynamicFrame with a staging DynamicFrame
// based on the specified primary keys to identify records. Duplicate records
// (records with the same primary keys) are not de-duplicated.
type Merge struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// The list of primary key fields to match records from the source and staging
// dynamic frames.
//
// This member is required.
PrimaryKeys [][]string
// The source DynamicFrame that will be merged with a staging DynamicFrame .
//
// This member is required.
Source *string
noSmithyDocumentSerde
}
// A structure containing metadata information for a schema version.
type MetadataInfo struct {
// The time at which the entry was created.
CreatedTime *string
// The metadata key’s corresponding value.
MetadataValue *string
// Other metadata belonging to the same metadata key.
OtherMetadataValueList []OtherMetadataValueListItem
noSmithyDocumentSerde
}
// A structure containing a key value pair for metadata.
type MetadataKeyValuePair struct {
// A metadata key.
MetadataKey *string
// A metadata key’s corresponding value.
MetadataValue *string
noSmithyDocumentSerde
}
// Specifies a Microsoft SQL server data source in the Glue Data Catalog.
type MicrosoftSQLServerCatalogSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies a target that uses Microsoft SQL.
type MicrosoftSQLServerCatalogTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// A structure for a machine learning transform.
type MLTransform struct {
// A timestamp. The time and date that this machine learning transform was created.
CreatedOn *time.Time
// A user-defined, long-form description text for the machine learning transform.
// Descriptions are not guaranteed to be unique and can be changed at any time.
Description *string
// An EvaluationMetrics object. Evaluation metrics provide an estimate of the
// quality of your machine learning transform.
EvaluationMetrics *EvaluationMetrics
// This value determines which version of Glue this machine learning transform is
// compatible with. Glue 1.0 is recommended for most customers. If the value is not
// set, the Glue compatibility defaults to Glue 0.9. For more information, see
// Glue Versions (https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions)
// in the developer guide.
GlueVersion *string
// A list of Glue table definitions used by the transform.
InputRecordTables []GlueTable
// A count identifier for the labeling files generated by Glue for this transform.
// As you create a better transform, you can iteratively download, label, and
// upload the labeling file.
LabelCount int32
// A timestamp. The last point in time when this machine learning transform was
// modified.
LastModifiedOn *time.Time
// The number of Glue data processing units (DPUs) that are allocated to task runs
// for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A
// DPU is a relative measure of processing power that consists of 4 vCPUs of
// compute capacity and 16 GB of memory. For more information, see the Glue
// pricing page (http://aws.amazon.com/glue/pricing/) . MaxCapacity is a mutually
// exclusive option with NumberOfWorkers and WorkerType .
// - If either NumberOfWorkers or WorkerType is set, then MaxCapacity cannot be
// set.
// - If MaxCapacity is set then neither NumberOfWorkers or WorkerType can be set.
// - If WorkerType is set, then NumberOfWorkers is required (and vice versa).
// - MaxCapacity and NumberOfWorkers must both be at least 1.
// When the WorkerType field is set to a value other than Standard , the
// MaxCapacity field is set automatically and becomes read-only.
MaxCapacity *float64
// The maximum number of times to retry after an MLTaskRun of the machine learning
// transform fails.
MaxRetries *int32
// A user-defined name for the machine learning transform. Names are not
// guaranteed unique and can be changed at any time.
Name *string
// The number of workers of a defined workerType that are allocated when a task of
// the transform runs. If WorkerType is set, then NumberOfWorkers is required (and
// vice versa).
NumberOfWorkers *int32
// A TransformParameters object. You can use parameters to tune (customize) the
// behavior of the machine learning transform by specifying what data it learns
// from and your preference on various tradeoffs (such as precious vs. recall, or
// accuracy vs. cost).
Parameters *TransformParameters
// The name or Amazon Resource Name (ARN) of the IAM role with the required
// permissions. The required permissions include both Glue service role permissions
// to Glue resources, and Amazon S3 permissions required by the transform.
// - This role needs Glue service role permissions to allow access to resources
// in Glue. See Attach a Policy to IAM Users That Access Glue (https://docs.aws.amazon.com/glue/latest/dg/attach-policy-iam-user.html)
// .
// - This role needs permission to your Amazon Simple Storage Service (Amazon
// S3) sources, targets, temporary directory, scripts, and any libraries used by
// the task run for this transform.
Role *string
// A map of key-value pairs representing the columns and data types that this
// transform can run against. Has an upper bound of 100 columns.
Schema []SchemaColumn
// The current status of the machine learning transform.
Status TransformStatusType
// The timeout in minutes of the machine learning transform.
Timeout *int32
// The encryption-at-rest settings of the transform that apply to accessing user
// data. Machine learning transforms can access user data encrypted in Amazon S3
// using KMS.
TransformEncryption *TransformEncryption
// The unique transform ID that is generated for the machine learning transform.
// The ID is guaranteed to be unique and does not change.
TransformId *string
// The type of predefined worker that is allocated when a task of this transform
// runs. Accepts a value of Standard, G.1X, or G.2X.
// - For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory
// and a 50GB disk, and 2 executors per worker.
// - For the G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and a
// 64GB disk, and 1 executor per worker.
// - For the G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and a
// 128GB disk, and 1 executor per worker.
// MaxCapacity is a mutually exclusive option with NumberOfWorkers and WorkerType .
// - If either NumberOfWorkers or WorkerType is set, then MaxCapacity cannot be
// set.
// - If MaxCapacity is set then neither NumberOfWorkers or WorkerType can be set.
// - If WorkerType is set, then NumberOfWorkers is required (and vice versa).
// - MaxCapacity and NumberOfWorkers must both be at least 1.
WorkerType WorkerType
noSmithyDocumentSerde
}
// The encryption-at-rest settings of the transform that apply to accessing user
// data.
type MLUserDataEncryption struct {
// The encryption mode applied to user data. Valid values are:
// - DISABLED: encryption is disabled
// - SSEKMS: use of server-side encryption with Key Management Service (SSE-KMS)
// for user data stored in Amazon S3.
//
// This member is required.
MlUserDataEncryptionMode MLUserDataEncryptionModeString
// The ID for the customer-provided KMS key.
KmsKeyId *string
noSmithyDocumentSerde
}
// Specifies an Amazon DocumentDB or MongoDB data store to crawl.
type MongoDBTarget struct {
// The name of the connection to use to connect to the Amazon DocumentDB or
// MongoDB target.
ConnectionName *string
// The path of the Amazon DocumentDB or MongoDB target (database/collection).
Path *string
// Indicates whether to scan all the records, or to sample rows from the table.
// Scanning all the records can take a long time when the table is not a high
// throughput table. A value of true means to scan all records, while a value of
// false means to sample the records. If no value is specified, the value defaults
// to true .
ScanAll *bool
noSmithyDocumentSerde
}
// Specifies a MySQL data source in the Glue Data Catalog.
type MySQLCatalogSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies a target that uses MySQL.
type MySQLCatalogTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// A node represents an Glue component (trigger, crawler, or job) on a workflow
// graph.
type Node struct {
// Details of the crawler when the node represents a crawler.
CrawlerDetails *CrawlerNodeDetails
// Details of the Job when the node represents a Job.
JobDetails *JobNodeDetails
// The name of the Glue component represented by the node.
Name *string
// Details of the Trigger when the node represents a Trigger.
TriggerDetails *TriggerNodeDetails
// The type of Glue component represented by the node.
Type NodeType
// The unique Id assigned to the node within the workflow.
UniqueId *string
noSmithyDocumentSerde
}
// Specifies configuration properties of a notification.
type NotificationProperty struct {
// After a job run starts, the number of minutes to wait before sending a job run
// delay notification.
NotifyDelayAfter *int32
noSmithyDocumentSerde
}
// Represents whether certain values are recognized as null values for removal.
type NullCheckBoxList struct {
// Specifies that an empty string is considered as a null value.
IsEmpty *bool
// Specifies that an integer value of -1 is considered as a null value.
IsNegOne *bool
// Specifies that a value spelling out the word 'null' is considered as a null
// value.
IsNullString *bool
noSmithyDocumentSerde
}
// Represents a custom null value such as a zeros or other value being used as a
// null placeholder unique to the dataset.
type NullValueField struct {
// The datatype of the value.
//
// This member is required.
Datatype *Datatype
// The value of the null placeholder.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// Specifies an option value.
type Option struct {
// Specifies the description of the option.
Description *string
// Specifies the label of the option.
Label *string
// Specifies the value of the option.
Value *string
noSmithyDocumentSerde
}
// Specifies an Oracle data source in the Glue Data Catalog.
type OracleSQLCatalogSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies a target that uses Oracle SQL.
type OracleSQLCatalogTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies the sort order of a sorted column.
type Order struct {
// The name of the column.
//
// This member is required.
Column *string
// Indicates that the column is sorted in ascending order ( == 1 ), or in
// descending order ( ==0 ).
//
// This member is required.
SortOrder int32
noSmithyDocumentSerde
}
// A structure containing other metadata for a schema version belonging to the
// same metadata key.
type OtherMetadataValueListItem struct {
// The time at which the entry was created.
CreatedTime *string
// The metadata key’s corresponding value for the other metadata belonging to the
// same metadata key.
MetadataValue *string
noSmithyDocumentSerde
}
// Represents a slice of table data.
type Partition struct {
// The ID of the Data Catalog in which the partition resides.
CatalogId *string
// The time at which the partition was created.
CreationTime *time.Time
// The name of the catalog database in which to create the partition.
DatabaseName *string
// The last time at which the partition was accessed.
LastAccessTime *time.Time
// The last time at which column statistics were computed for this partition.
LastAnalyzedTime *time.Time
// These key-value pairs define partition parameters.
Parameters map[string]string
// Provides information about the physical location where the partition is stored.
StorageDescriptor *StorageDescriptor
// The name of the database table in which to create the partition.
TableName *string
// The values of the partition.
Values []string
noSmithyDocumentSerde
}
// Contains information about a partition error.
type PartitionError struct {
// The details about the partition error.
ErrorDetail *ErrorDetail
// The values that define the partition.
PartitionValues []string
noSmithyDocumentSerde
}
// A structure for a partition index.
type PartitionIndex struct {
// The name of the partition index.
//
// This member is required.
IndexName *string
// The keys for the partition index.
//
// This member is required.
Keys []string
noSmithyDocumentSerde
}
// A descriptor for a partition index in a table.
type PartitionIndexDescriptor struct {
// The name of the partition index.
//
// This member is required.
IndexName *string
// The status of the partition index. The possible statuses are:
// - CREATING: The index is being created. When an index is in a CREATING state,
// the index or its table cannot be deleted.
// - ACTIVE: The index creation succeeds.
// - FAILED: The index creation fails.
// - DELETING: The index is deleted from the list of indexes.
//
// This member is required.
IndexStatus PartitionIndexStatus
// A list of one or more keys, as KeySchemaElement structures, for the partition
// index.
//
// This member is required.
Keys []KeySchemaElement
// A list of errors that can occur when registering partition indexes for an
// existing table.
BackfillErrors []BackfillError
noSmithyDocumentSerde
}
// The structure used to create and update a partition.
type PartitionInput struct {
// The last time at which the partition was accessed.
LastAccessTime *time.Time
// The last time at which column statistics were computed for this partition.
LastAnalyzedTime *time.Time
// These key-value pairs define partition parameters.
Parameters map[string]string
// Provides information about the physical location where the partition is stored.
StorageDescriptor *StorageDescriptor
// The values of the partition. Although this parameter is not required by the
// SDK, you must specify this parameter for a valid input. The values for the keys
// for the new partition must be passed as an array of String objects that must be
// ordered in the same order as the partition keys appearing in the Amazon S3
// prefix. Otherwise Glue will add the values to the wrong keys.
Values []string
noSmithyDocumentSerde
}
// Contains a list of values defining partitions.
type PartitionValueList struct {
// The list of values.
//
// This member is required.
Values []string
noSmithyDocumentSerde
}
// Specifies the physical requirements for a connection.
type PhysicalConnectionRequirements struct {
// The connection's Availability Zone. This field is redundant because the
// specified subnet implies the Availability Zone to be used. Currently the field
// must be populated, but it will be deprecated in the future.
AvailabilityZone *string
// The security group ID list used by the connection.
SecurityGroupIdList []string
// The subnet ID used by the connection.
SubnetId *string
noSmithyDocumentSerde
}
// Specifies a transform that identifies, removes or masks PII data.
type PIIDetection struct {
// Indicates the types of entities the PIIDetection transform will identify as PII
// data. PII type entities include: PERSON_NAME, DATE, USA_SNN, EMAIL, USA_ITIN,
// USA_PASSPORT_NUMBER, PHONE_NUMBER, BANK_ACCOUNT, IP_ADDRESS, MAC_ADDRESS,
// USA_CPT_CODE, USA_HCPCS_CODE, USA_NATIONAL_DRUG_CODE,
// USA_MEDICARE_BENEFICIARY_IDENTIFIER,
// USA_HEALTH_INSURANCE_CLAIM_NUMBER,CREDIT_CARD,USA_NATIONAL_PROVIDER_IDENTIFIER,USA_DEA_NUMBER,USA_DRIVING_LICENSE
//
// This member is required.
EntityTypesToDetect []string
// The node ID inputs to the transform.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// Indicates the type of PIIDetection transform.
//
// This member is required.
PiiType PiiType
// Indicates the value that will replace the detected entity.
MaskValue *string
// Indicates the output column name that will contain any entity type detected in
// that row.
OutputColumnName *string
// Indicates the fraction of the data to sample when scanning for PII entities.
SampleFraction *float64
// Indicates the fraction of the data that must be met in order for a column to be
// identified as PII data.
ThresholdFraction *float64
noSmithyDocumentSerde
}
// Specifies a PostgresSQL data source in the Glue Data Catalog.
type PostgreSQLCatalogSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies a target that uses Postgres SQL.
type PostgreSQLCatalogTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// A job run that was used in the predicate of a conditional trigger that
// triggered this job run.
type Predecessor struct {
// The name of the job definition used by the predecessor job run.
JobName *string
// The job-run ID of the predecessor job run.
RunId *string
noSmithyDocumentSerde
}
// Defines the predicate of the trigger, which determines when it fires.
type Predicate struct {
// A list of the conditions that determine when the trigger will fire.
Conditions []Condition
// An optional field if only one condition is listed. If multiple conditions are
// listed, then this field is required.
Logical Logical
noSmithyDocumentSerde
}
// Permissions granted to a principal.
type PrincipalPermissions struct {
// The permissions that are granted to the principal.
Permissions []Permission
// The principal who is granted permissions.
Principal *DataLakePrincipal
noSmithyDocumentSerde
}
// Defines a property predicate.
type PropertyPredicate struct {
// The comparator used to compare this property to others.
Comparator Comparator
// The key of the property.
Key *string
// The value of the property.
Value *string
noSmithyDocumentSerde
}
// When crawling an Amazon S3 data source after the first crawl is complete,
// specifies whether to crawl the entire dataset again or to crawl only folders
// that were added since the last crawler run. For more information, see
// Incremental Crawls in Glue (https://docs.aws.amazon.com/glue/latest/dg/incremental-crawls.html)
// in the developer guide.
type RecrawlPolicy struct {
// Specifies whether to crawl the entire dataset again or to crawl only folders
// that were added since the last crawler run. A value of CRAWL_EVERYTHING
// specifies crawling the entire dataset again. A value of CRAWL_NEW_FOLDERS_ONLY
// specifies crawling only folders that were added since the last crawler run. A
// value of CRAWL_EVENT_MODE specifies crawling only the changes identified by
// Amazon S3 events.
RecrawlBehavior RecrawlBehavior
noSmithyDocumentSerde
}
// Specifies an Amazon Redshift data store.
type RedshiftSource struct {
// The database to read from.
//
// This member is required.
Database *string
// The name of the Amazon Redshift data store.
//
// This member is required.
Name *string
// The database table to read from.
//
// This member is required.
Table *string
// The Amazon S3 path where temporary data can be staged when copying out of the
// database.
RedshiftTmpDir *string
// The IAM role with permissions.
TmpDirIAMRole *string
noSmithyDocumentSerde
}
// Specifies a target that uses Amazon Redshift.
type RedshiftTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
// The Amazon S3 path where temporary data can be staged when copying out of the
// database.
RedshiftTmpDir *string
// The IAM role with permissions.
TmpDirIAMRole *string
// The set of options to configure an upsert operation when writing to a Redshift
// target.
UpsertRedshiftOptions *UpsertRedshiftTargetOptions
noSmithyDocumentSerde
}
// A wrapper structure that may contain the registry name and Amazon Resource Name
// (ARN).
type RegistryId struct {
// Arn of the registry to be updated. One of RegistryArn or RegistryName has to be
// provided.
RegistryArn *string
// Name of the registry. Used only for lookup. One of RegistryArn or RegistryName
// has to be provided.
RegistryName *string
noSmithyDocumentSerde
}
// A structure containing the details for a registry.
type RegistryListItem struct {
// The data the registry was created.
CreatedTime *string
// A description of the registry.
Description *string
// The Amazon Resource Name (ARN) of the registry.
RegistryArn *string
// The name of the registry.
RegistryName *string
// The status of the registry.
Status RegistryStatus
// The date the registry was updated.
UpdatedTime *string
noSmithyDocumentSerde
}
// Specifies a Relational database data source in the Glue Data Catalog.
type RelationalCatalogSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
noSmithyDocumentSerde
}
// Specifies a transform that renames a single data property key.
type RenameField struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A JSON path to a variable in the data structure for the source data.
//
// This member is required.
SourcePath []string
// A JSON path to a variable in the data structure for the target data.
//
// This member is required.
TargetPath []string
noSmithyDocumentSerde
}
// The URIs for function resources.
type ResourceUri struct {
// The type of the resource.
ResourceType ResourceType
// The URI for accessing the resource.
Uri *string
noSmithyDocumentSerde
}
// Specifies a Delta Lake data source that is registered in the Glue Data Catalog.
// The data source must be stored in Amazon S3.
type S3CatalogDeltaSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the Delta Lake data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
// Specifies additional connection options.
AdditionalDeltaOptions map[string]string
// Specifies the data schema for the Delta Lake source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies a Hudi data source that is registered in the Glue Data Catalog. The
// Hudi data source must be stored in Amazon S3.
type S3CatalogHudiSource struct {
// The name of the database to read from.
//
// This member is required.
Database *string
// The name of the Hudi data source.
//
// This member is required.
Name *string
// The name of the table in the database to read from.
//
// This member is required.
Table *string
// Specifies additional connection options.
AdditionalHudiOptions map[string]string
// Specifies the data schema for the Hudi source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies an Amazon S3 data store in the Glue Data Catalog.
type S3CatalogSource struct {
// The database to read from.
//
// This member is required.
Database *string
// The name of the data store.
//
// This member is required.
Name *string
// The database table to read from.
//
// This member is required.
Table *string
// Specifies additional connection options.
AdditionalOptions *S3SourceAdditionalOptions
// Partitions satisfying this predicate are deleted. Files within the retention
// period in these partitions are not deleted. Set to "" – empty by default.
PartitionPredicate *string
noSmithyDocumentSerde
}
// Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.
type S3CatalogTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the crawler.
SchemaChangePolicy *CatalogSchemaChangePolicy
noSmithyDocumentSerde
}
// Specifies a command-separated value (CSV) data store stored in Amazon S3.
type S3CsvSource struct {
// The name of the data store.
//
// This member is required.
Name *string
// A list of the Amazon S3 paths to read from.
//
// This member is required.
Paths []string
// Specifies the character to use for quoting. The default is a double quote: '"' .
// Set this to -1 to turn off quoting entirely.
//
// This member is required.
QuoteChar QuoteChar
// Specifies the delimiter character. The default is a comma: ",", but any other
// character can be specified.
//
// This member is required.
Separator Separator
// Specifies additional connection options.
AdditionalOptions *S3DirectSourceAdditionalOptions
// Specifies how the data is compressed. This is generally not necessary if the
// data has a standard file extension. Possible values are "gzip" and "bzip" ).
CompressionType CompressionType
// Specifies a character to use for escaping. This option is used only when
// reading CSV files. The default value is none . If enabled, the character which
// immediately follows is used as-is, except for a small set of well-known escapes
// ( \n , \r , \t , and \0 ).
Escaper *string
// A string containing a JSON list of Unix-style glob patterns to exclude. For
// example, "[\"**.pdf\"]" excludes all PDF files.
Exclusions []string
// Grouping files is turned on by default when the input contains more than 50,000
// files. To turn on grouping with fewer than 50,000 files, set this parameter to
// "inPartition". To disable grouping when there are more than 50,000 files, set
// this parameter to "none" .
GroupFiles *string
// The target group size in bytes. The default is computed based on the input data
// size and the size of your cluster. When there are fewer than 50,000 input files,
// "groupFiles" must be set to "inPartition" for this to take effect.
GroupSize *string
// This option controls the duration in milliseconds after which the s3 listing is
// likely to be consistent. Files with modification timestamps falling within the
// last maxBand milliseconds are tracked specially when using JobBookmarks to
// account for Amazon S3 eventual consistency. Most users don't need to set this
// option. The default is 900000 milliseconds, or 15 minutes.
MaxBand *int32
// This option specifies the maximum number of files to save from the last maxBand
// seconds. If this number is exceeded, extra files are skipped and only processed
// in the next job run.
MaxFilesInBand *int32
// A Boolean value that specifies whether a single record can span multiple lines.
// This can occur when a field contains a quoted new-line character. You must set
// this option to True if any record spans multiple lines. The default value is
// False , which allows for more aggressive file-splitting during parsing.
Multiline *bool
// A Boolean value that specifies whether to use the advanced SIMD CSV reader
// along with Apache Arrow based columnar memory formats. Only available in Glue
// version 3.0.
OptimizePerformance bool
// Specifies the data schema for the S3 CSV source.
OutputSchemas []GlueSchema
// If set to true, recursively reads files in all subdirectories under the
// specified paths.
Recurse *bool
// A Boolean value that specifies whether to skip the first data line. The default
// value is False .
SkipFirst *bool
// A Boolean value that specifies whether to treat the first line as a header. The
// default value is False .
WithHeader *bool
// A Boolean value that specifies whether to write the header to output. The
// default value is True .
WriteHeader *bool
noSmithyDocumentSerde
}
// Specifies a target that writes to a Delta Lake data source in the Glue Data
// Catalog.
type S3DeltaCatalogTarget struct {
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
// Specifies additional connection options for the connector.
AdditionalOptions map[string]string
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the crawler.
SchemaChangePolicy *CatalogSchemaChangePolicy
noSmithyDocumentSerde
}
// Specifies a target that writes to a Delta Lake data source in Amazon S3.
type S3DeltaDirectTarget struct {
// Specifies how the data is compressed. This is generally not necessary if the
// data has a standard file extension. Possible values are "gzip" and "bzip" ).
//
// This member is required.
Compression DeltaTargetCompressionType
// Specifies the data output format for the target.
//
// This member is required.
Format TargetFormat
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The Amazon S3 path of your Delta Lake data source to write to.
//
// This member is required.
Path *string
// Specifies additional connection options for the connector.
AdditionalOptions map[string]string
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the crawler.
SchemaChangePolicy *DirectSchemaChangePolicy
noSmithyDocumentSerde
}
// Specifies a Delta Lake data source stored in Amazon S3.
type S3DeltaSource struct {
// The name of the Delta Lake source.
//
// This member is required.
Name *string
// A list of the Amazon S3 paths to read from.
//
// This member is required.
Paths []string
// Specifies additional connection options.
AdditionalDeltaOptions map[string]string
// Specifies additional options for the connector.
AdditionalOptions *S3DirectSourceAdditionalOptions
// Specifies the data schema for the Delta Lake source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies additional connection options for the Amazon S3 data store.
type S3DirectSourceAdditionalOptions struct {
// Sets the upper limit for the target number of files that will be processed.
BoundedFiles *int64
// Sets the upper limit for the target size of the dataset in bytes that will be
// processed.
BoundedSize *int64
// Sets option to enable a sample path.
EnableSamplePath *bool
// If enabled, specifies the sample path.
SamplePath *string
noSmithyDocumentSerde
}
// Specifies a data target that writes to Amazon S3.
type S3DirectTarget struct {
// Specifies the data output format for the target.
//
// This member is required.
Format TargetFormat
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// A single Amazon S3 path to write to.
//
// This member is required.
Path *string
// Specifies how the data is compressed. This is generally not necessary if the
// data has a standard file extension. Possible values are "gzip" and "bzip" ).
Compression *string
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the crawler.
SchemaChangePolicy *DirectSchemaChangePolicy
noSmithyDocumentSerde
}
// Specifies how Amazon Simple Storage Service (Amazon S3) data should be
// encrypted.
type S3Encryption struct {
// The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
KmsKeyArn *string
// The encryption mode to use for Amazon S3 data.
S3EncryptionMode S3EncryptionMode
noSmithyDocumentSerde
}
// Specifies a data target that writes to Amazon S3 in Apache Parquet columnar
// storage.
type S3GlueParquetTarget struct {
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// A single Amazon S3 path to write to.
//
// This member is required.
Path *string
// Specifies how the data is compressed. This is generally not necessary if the
// data has a standard file extension. Possible values are "gzip" and "bzip" ).
Compression ParquetCompressionType
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the crawler.
SchemaChangePolicy *DirectSchemaChangePolicy
noSmithyDocumentSerde
}
// Specifies a target that writes to a Hudi data source in the Glue Data Catalog.
type S3HudiCatalogTarget struct {
// Specifies additional connection options for the connector.
//
// This member is required.
AdditionalOptions map[string]string
// The name of the database to write to.
//
// This member is required.
Database *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The name of the table in the database to write to.
//
// This member is required.
Table *string
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the crawler.
SchemaChangePolicy *CatalogSchemaChangePolicy
noSmithyDocumentSerde
}
// Specifies a target that writes to a Hudi data source in Amazon S3.
type S3HudiDirectTarget struct {
// Specifies additional connection options for the connector.
//
// This member is required.
AdditionalOptions map[string]string
// Specifies how the data is compressed. This is generally not necessary if the
// data has a standard file extension. Possible values are "gzip" and "bzip" ).
//
// This member is required.
Compression HudiTargetCompressionType
// Specifies the data output format for the target.
//
// This member is required.
Format TargetFormat
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// The Amazon S3 path of your Hudi data source to write to.
//
// This member is required.
Path *string
// Specifies native partitioning using a sequence of keys.
PartitionKeys [][]string
// A policy that specifies update behavior for the crawler.
SchemaChangePolicy *DirectSchemaChangePolicy
noSmithyDocumentSerde
}
// Specifies a Hudi data source stored in Amazon S3.
type S3HudiSource struct {
// The name of the Hudi source.
//
// This member is required.
Name *string
// A list of the Amazon S3 paths to read from.
//
// This member is required.
Paths []string
// Specifies additional connection options.
AdditionalHudiOptions map[string]string
// Specifies additional options for the connector.
AdditionalOptions *S3DirectSourceAdditionalOptions
// Specifies the data schema for the Hudi source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies a JSON data store stored in Amazon S3.
type S3JsonSource struct {
// The name of the data store.
//
// This member is required.
Name *string
// A list of the Amazon S3 paths to read from.
//
// This member is required.
Paths []string
// Specifies additional connection options.
AdditionalOptions *S3DirectSourceAdditionalOptions
// Specifies how the data is compressed. This is generally not necessary if the
// data has a standard file extension. Possible values are "gzip" and "bzip" ).
CompressionType CompressionType
// A string containing a JSON list of Unix-style glob patterns to exclude. For
// example, "[\"**.pdf\"]" excludes all PDF files.
Exclusions []string
// Grouping files is turned on by default when the input contains more than 50,000
// files. To turn on grouping with fewer than 50,000 files, set this parameter to
// "inPartition". To disable grouping when there are more than 50,000 files, set
// this parameter to "none" .
GroupFiles *string
// The target group size in bytes. The default is computed based on the input data
// size and the size of your cluster. When there are fewer than 50,000 input files,
// "groupFiles" must be set to "inPartition" for this to take effect.
GroupSize *string
// A JsonPath string defining the JSON data.
JsonPath *string
// This option controls the duration in milliseconds after which the s3 listing is
// likely to be consistent. Files with modification timestamps falling within the
// last maxBand milliseconds are tracked specially when using JobBookmarks to
// account for Amazon S3 eventual consistency. Most users don't need to set this
// option. The default is 900000 milliseconds, or 15 minutes.
MaxBand *int32
// This option specifies the maximum number of files to save from the last maxBand
// seconds. If this number is exceeded, extra files are skipped and only processed
// in the next job run.
MaxFilesInBand *int32
// A Boolean value that specifies whether a single record can span multiple lines.
// This can occur when a field contains a quoted new-line character. You must set
// this option to True if any record spans multiple lines. The default value is
// False , which allows for more aggressive file-splitting during parsing.
Multiline *bool
// Specifies the data schema for the S3 JSON source.
OutputSchemas []GlueSchema
// If set to true, recursively reads files in all subdirectories under the
// specified paths.
Recurse *bool
noSmithyDocumentSerde
}
// Specifies an Apache Parquet data store stored in Amazon S3.
type S3ParquetSource struct {
// The name of the data store.
//
// This member is required.
Name *string
// A list of the Amazon S3 paths to read from.
//
// This member is required.
Paths []string
// Specifies additional connection options.
AdditionalOptions *S3DirectSourceAdditionalOptions
// Specifies how the data is compressed. This is generally not necessary if the
// data has a standard file extension. Possible values are "gzip" and "bzip" ).
CompressionType ParquetCompressionType
// A string containing a JSON list of Unix-style glob patterns to exclude. For
// example, "[\"**.pdf\"]" excludes all PDF files.
Exclusions []string
// Grouping files is turned on by default when the input contains more than 50,000
// files. To turn on grouping with fewer than 50,000 files, set this parameter to
// "inPartition". To disable grouping when there are more than 50,000 files, set
// this parameter to "none" .
GroupFiles *string
// The target group size in bytes. The default is computed based on the input data
// size and the size of your cluster. When there are fewer than 50,000 input files,
// "groupFiles" must be set to "inPartition" for this to take effect.
GroupSize *string
// This option controls the duration in milliseconds after which the s3 listing is
// likely to be consistent. Files with modification timestamps falling within the
// last maxBand milliseconds are tracked specially when using JobBookmarks to
// account for Amazon S3 eventual consistency. Most users don't need to set this
// option. The default is 900000 milliseconds, or 15 minutes.
MaxBand *int32
// This option specifies the maximum number of files to save from the last maxBand
// seconds. If this number is exceeded, extra files are skipped and only processed
// in the next job run.
MaxFilesInBand *int32
// Specifies the data schema for the S3 Parquet source.
OutputSchemas []GlueSchema
// If set to true, recursively reads files in all subdirectories under the
// specified paths.
Recurse *bool
noSmithyDocumentSerde
}
// Specifies additional connection options for the Amazon S3 data store.
type S3SourceAdditionalOptions struct {
// Sets the upper limit for the target number of files that will be processed.
BoundedFiles *int64
// Sets the upper limit for the target size of the dataset in bytes that will be
// processed.
BoundedSize *int64
noSmithyDocumentSerde
}
// Specifies a data store in Amazon Simple Storage Service (Amazon S3).
type S3Target struct {
// The name of a connection which allows a job or crawler to access data in Amazon
// S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).
ConnectionName *string
// A valid Amazon dead-letter SQS ARN. For example,
// arn:aws:sqs:region:account:deadLetterQueue .
DlqEventQueueArn *string
// A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs .
EventQueueArn *string
// A list of glob patterns used to exclude from the crawl. For more information,
// see Catalog Tables with a Crawler (https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html)
// .
Exclusions []string
// The path to the Amazon S3 target.
Path *string
// Sets the number of files in each leaf folder to be crawled when crawling sample
// files in a dataset. If not set, all the files are crawled. A valid value is an
// integer between 1 and 249.
SampleSize *int32
noSmithyDocumentSerde
}
// A scheduling object using a cron statement to schedule an event.
type Schedule struct {
// A cron expression used to specify the schedule (see Time-Based Schedules for
// Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html)
// . For example, to run something every day at 12:15 UTC, you would specify:
// cron(15 12 * * ? *) .
ScheduleExpression *string
// The state of the schedule.
State ScheduleState
noSmithyDocumentSerde
}
// A policy that specifies update and deletion behaviors for the crawler.
type SchemaChangePolicy struct {
// The deletion behavior when the crawler finds a deleted object.
DeleteBehavior DeleteBehavior
// The update behavior when the crawler finds a changed schema.
UpdateBehavior UpdateBehavior
noSmithyDocumentSerde
}
// A key-value pair representing a column and data type that this transform can
// run against. The Schema parameter of the MLTransform may contain up to 100 of
// these structures.
type SchemaColumn struct {
// The type of data in the column.
DataType *string
// The name of the column.
Name *string
noSmithyDocumentSerde
}
// The unique ID of the schema in the Glue schema registry.
type SchemaId struct {
// The name of the schema registry that contains the schema.
RegistryName *string
// The Amazon Resource Name (ARN) of the schema. One of SchemaArn or SchemaName
// has to be provided.
SchemaArn *string
// The name of the schema. One of SchemaArn or SchemaName has to be provided.
SchemaName *string
noSmithyDocumentSerde
}
// An object that contains minimal details for a schema.
type SchemaListItem struct {
// The date and time that a schema was created.
CreatedTime *string
// A description for the schema.
Description *string
// the name of the registry where the schema resides.
RegistryName *string
// The Amazon Resource Name (ARN) for the schema.
SchemaArn *string
// The name of the schema.
SchemaName *string
// The status of the schema.
SchemaStatus SchemaStatus
// The date and time that a schema was updated.
UpdatedTime *string
noSmithyDocumentSerde
}
// An object that references a schema stored in the Glue Schema Registry.
type SchemaReference struct {
// A structure that contains schema identity fields. Either this or the
// SchemaVersionId has to be provided.
SchemaId *SchemaId
// The unique ID assigned to a version of the schema. Either this or the SchemaId
// has to be provided.
SchemaVersionId *string
// The version number of the schema.
SchemaVersionNumber *int64
noSmithyDocumentSerde
}
// An object that contains the error details for an operation on a schema version.
type SchemaVersionErrorItem struct {
// The details of the error for the schema version.
ErrorDetails *ErrorDetails
// The version number of the schema.
VersionNumber int64
noSmithyDocumentSerde
}
// An object containing the details about a schema version.
type SchemaVersionListItem struct {
// The date and time the schema version was created.
CreatedTime *string
// The Amazon Resource Name (ARN) of the schema.
SchemaArn *string
// The unique identifier of the schema version.
SchemaVersionId *string
// The status of the schema version.
Status SchemaVersionStatus
// The version number of the schema.
VersionNumber int64
noSmithyDocumentSerde
}
// A structure containing the schema version information.
type SchemaVersionNumber struct {
// The latest version available for the schema.
LatestVersion bool
// The version number of the schema.
VersionNumber int64
noSmithyDocumentSerde
}
// Specifies a security configuration.
type SecurityConfiguration struct {
// The time at which this security configuration was created.
CreatedTimeStamp *time.Time
// The encryption configuration associated with this security configuration.
EncryptionConfiguration *EncryptionConfiguration
// The name of the security configuration.
Name *string
noSmithyDocumentSerde
}
// Defines a non-overlapping region of a table's partitions, allowing multiple
// requests to be run in parallel.
type Segment struct {
// The zero-based index number of the segment. For example, if the total number of
// segments is 4, SegmentNumber values range from 0 through 3.
//
// This member is required.
SegmentNumber int32
// The total number of segments.
//
// This member is required.
TotalSegments int32
noSmithyDocumentSerde
}
// Specifies a transform that chooses the data property keys that you want to keep.
type SelectFields struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A JSON path to a variable in the data structure.
//
// This member is required.
Paths [][]string
noSmithyDocumentSerde
}
// Specifies a transform that chooses one DynamicFrame from a collection of
// DynamicFrames . The output is the selected DynamicFrame
type SelectFromCollection struct {
// The index for the DynamicFrame to be selected.
//
// This member is required.
Index int32
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Information about a serialization/deserialization program (SerDe) that serves
// as an extractor and loader.
type SerDeInfo struct {
// Name of the SerDe.
Name *string
// These key-value pairs define initialization parameters for the SerDe.
Parameters map[string]string
// Usually the class that implements the SerDe. An example is
// org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe .
SerializationLibrary *string
noSmithyDocumentSerde
}
// The period in which a remote Spark runtime environment is running.
type Session struct {
// The command object.See SessionCommand.
Command *SessionCommand
// The number of connections used for the session.
Connections *ConnectionsList
// The time and date when the session was created.
CreatedOn *time.Time
// A map array of key-value pairs. Max is 75 pairs.
DefaultArguments map[string]string
// The description of the session.
Description *string
// The error message displayed during the session.
ErrorMessage *string
// The Glue version determines the versions of Apache Spark and Python that Glue
// supports. The GlueVersion must be greater than 2.0.
GlueVersion *string
// The ID of the session.
Id *string
// The number of Glue data processing units (DPUs) that can be allocated when the
// job runs. A DPU is a relative measure of processing power that consists of 4
// vCPUs of compute capacity and 16 GB memory.
MaxCapacity *float64
// The code execution progress of the session.
Progress float64
// The name or Amazon Resource Name (ARN) of the IAM role associated with the
// Session.
Role *string
// The name of the SecurityConfiguration structure to be used with the session.
SecurityConfiguration *string
// The session status.
Status SessionStatus
noSmithyDocumentSerde
}
// The SessionCommand that runs the job.
type SessionCommand struct {
// Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.
Name *string
// Specifies the Python version. The Python version indicates the version
// supported for jobs of type Spark.
PythonVersion *string
noSmithyDocumentSerde
}
// Specifies skewed values in a table. Skewed values are those that occur with
// very high frequency.
type SkewedInfo struct {
// A list of names of columns that contain skewed values.
SkewedColumnNames []string
// A mapping of skewed values to the columns that contain them.
SkewedColumnValueLocationMaps map[string]string
// A list of values that appear so frequently as to be considered skewed.
SkewedColumnValues []string
noSmithyDocumentSerde
}
// Specifies a field to sort by and a sort order.
type SortCriterion struct {
// The name of the field on which to sort.
FieldName *string
// An ascending or descending sort.
Sort Sort
noSmithyDocumentSerde
}
// The details for a source control configuration for a job, allowing
// synchronization of job artifacts to or from a remote repository.
type SourceControlDetails struct {
// The type of authentication, which can be an authentication token stored in
// Amazon Web Services Secrets Manager, or a personal access token.
AuthStrategy SourceControlAuthStrategy
// The value of an authorization token.
AuthToken *string
// An optional branch in the remote repository.
Branch *string
// An optional folder in the remote repository.
Folder *string
// The last commit ID for a commit in the remote repository.
LastCommitId *string
// The owner of the remote repository that contains the job artifacts.
Owner *string
// The provider for the remote repository.
Provider SourceControlProvider
// The name of the remote repository that contains the job artifacts.
Repository *string
noSmithyDocumentSerde
}
// Specifies a connector to an Apache Spark data source.
type SparkConnectorSource struct {
// The name of the connection that is associated with the connector.
//
// This member is required.
ConnectionName *string
// The type of connection, such as marketplace.spark or custom.spark, designating
// a connection to an Apache Spark data store.
//
// This member is required.
ConnectionType *string
// The name of a connector that assists with accessing the data store in Glue
// Studio.
//
// This member is required.
ConnectorName *string
// The name of the data source.
//
// This member is required.
Name *string
// Additional connection options for the connector.
AdditionalOptions map[string]string
// Specifies data schema for the custom spark source.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies a target that uses an Apache Spark connector.
type SparkConnectorTarget struct {
// The name of a connection for an Apache Spark connector.
//
// This member is required.
ConnectionName *string
// The type of connection, such as marketplace.spark or custom.spark, designating
// a connection to an Apache Spark data store.
//
// This member is required.
ConnectionType *string
// The name of an Apache Spark connector.
//
// This member is required.
ConnectorName *string
// The nodes that are inputs to the data target.
//
// This member is required.
Inputs []string
// The name of the data target.
//
// This member is required.
Name *string
// Additional connection options for the connector.
AdditionalOptions map[string]string
// Specifies the data schema for the custom spark target.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies a transform where you enter a SQL query using Spark SQL syntax to
// transform the data. The output is a single DynamicFrame .
type SparkSQL struct {
// The data inputs identified by their node names. You can associate a table name
// with each input node to use in the SQL query. The name you choose must meet the
// Spark SQL naming restrictions.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A list of aliases. An alias allows you to specify what name to use in the SQL
// for a given input. For example, you have a datasource named "MyDataSource". If
// you specify From as MyDataSource, and Alias as SqlName, then in your SQL you
// can do: select * from SqlName and that gets data from MyDataSource.
//
// This member is required.
SqlAliases []SqlAlias
// A SQL query that must use Spark SQL syntax and return a single data set.
//
// This member is required.
SqlQuery *string
// Specifies the data schema for the SparkSQL transform.
OutputSchemas []GlueSchema
noSmithyDocumentSerde
}
// Specifies a transform that writes samples of the data to an Amazon S3 bucket.
type Spigot struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A path in Amazon S3 where the transform will write a subset of records from the
// dataset to a JSON file in an Amazon S3 bucket.
//
// This member is required.
Path *string
// The probability (a decimal value with a maximum value of 1) of picking any
// given record. A value of 1 indicates that each row read from the dataset should
// be included in the sample output.
Prob *float64
// Specifies a number of records to write starting from the beginning of the
// dataset.
Topk *int32
noSmithyDocumentSerde
}
// Specifies a transform that splits data property keys into two DynamicFrames .
// The output is a collection of DynamicFrames : one with selected data property
// keys, and one with the remaining data property keys.
type SplitFields struct {
// The data inputs identified by their node names.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// A JSON path to a variable in the data structure.
//
// This member is required.
Paths [][]string
noSmithyDocumentSerde
}
// Represents a single entry in the list of values for SqlAliases .
type SqlAlias struct {
// A temporary name given to a table, or a column in a table.
//
// This member is required.
Alias *string
// A table, or a column in a table.
//
// This member is required.
From *string
noSmithyDocumentSerde
}
// The batch condition that started the workflow run. Either the number of events
// in the batch size arrived, in which case the BatchSize member is non-zero, or
// the batch window expired, in which case the BatchWindow member is non-zero.
type StartingEventBatchCondition struct {
// Number of events in the batch.
BatchSize *int32
// Duration of the batch window in seconds.
BatchWindow *int32
noSmithyDocumentSerde
}
// The statement or request for a particular action to occur in a session.
type Statement struct {
// The execution code of the statement.
Code *string
// The unix time and date that the job definition was completed.
CompletedOn int64
// The ID of the statement.
Id int32
// The output in JSON.
Output *StatementOutput
// The code execution progress.
Progress float64
// The unix time and date that the job definition was started.
StartedOn int64
// The state while request is actioned.
State StatementState
noSmithyDocumentSerde
}
// The code execution output in JSON format.
type StatementOutput struct {
// The code execution output.
Data *StatementOutputData
// The name of the error in the output.
ErrorName *string
// The error value of the output.
ErrorValue *string
// The execution count of the output.
ExecutionCount int32
// The status of the code execution output.
Status StatementState
// The traceback of the output.
Traceback []string
noSmithyDocumentSerde
}
// The code execution output in JSON format.
type StatementOutputData struct {
// The code execution output in text format.
TextPlain *string
noSmithyDocumentSerde
}
// Describes the physical storage of table data.
type StorageDescriptor struct {
// A list of locations that point to the path where a Delta table is located.
AdditionalLocations []string
// A list of reducer grouping columns, clustering columns, and bucketing columns
// in the table.
BucketColumns []string
// A list of the Columns in the table.
Columns []Column
// True if the data in the table is compressed, or False if not.
Compressed bool
// The input format: SequenceFileInputFormat (binary), or TextInputFormat , or a
// custom format.
InputFormat *string
// The physical location of the table. By default, this takes the form of the
// warehouse location, followed by the database location in the warehouse, followed
// by the table name.
Location *string
// Must be specified if the table contains any dimension columns.
NumberOfBuckets int32
// The output format: SequenceFileOutputFormat (binary), or
// IgnoreKeyTextOutputFormat , or a custom format.
OutputFormat *string
// The user-supplied properties in key-value form.
Parameters map[string]string
// An object that references a schema stored in the Glue Schema Registry. When
// creating a table, you can pass an empty list of columns for the schema, and
// instead use a schema reference.
SchemaReference *SchemaReference
// The serialization/deserialization (SerDe) information.
SerdeInfo *SerDeInfo
// The information about values that appear frequently in a column (skewed values).
SkewedInfo *SkewedInfo
// A list specifying the sort order of each bucket in the table.
SortColumns []Order
// True if the table data is stored in subdirectories, or False if not.
StoredAsSubDirectories bool
noSmithyDocumentSerde
}
// Specifies options related to data preview for viewing a sample of your data.
type StreamingDataPreviewOptions struct {
// The polling time in milliseconds.
PollingTime *int64
// The limit to the number of records polled.
RecordPollingLimit *int64
noSmithyDocumentSerde
}
// Defines column statistics supported for character sequence data values.
type StringColumnStatisticsData struct {
// The average string length in the column.
//
// This member is required.
AverageLength float64
// The size of the longest string in the column.
//
// This member is required.
MaximumLength int64
// The number of distinct values in a column.
//
// This member is required.
NumberOfDistinctValues int64
// The number of null values in the column.
//
// This member is required.
NumberOfNulls int64
noSmithyDocumentSerde
}
// Represents a collection of related data organized in columns and rows.
type Table struct {
// The table name. For Hive compatibility, this must be entirely lowercase.
//
// This member is required.
Name *string
// The ID of the Data Catalog in which the table resides.
CatalogId *string
// The time when the table definition was created in the Data Catalog.
CreateTime *time.Time
// The person or entity who created the table.
CreatedBy *string
// The name of the database where the table metadata resides. For Hive
// compatibility, this must be all lowercase.
DatabaseName *string
// A description of the table.
Description *string
// A FederatedTable structure that references an entity outside the Glue Data
// Catalog.
FederatedTable *FederatedTable
// Indicates whether the table has been registered with Lake Formation.
IsRegisteredWithLakeFormation bool
// The last time that the table was accessed. This is usually taken from HDFS, and
// might not be reliable.
LastAccessTime *time.Time
// The last time that column statistics were computed for this table.
LastAnalyzedTime *time.Time
// The owner of the table.
Owner *string
// These key-value pairs define properties associated with the table.
Parameters map[string]string
// A list of columns by which the table is partitioned. Only primitive types are
// supported as partition keys. When you create a table used by Amazon Athena, and
// you do not specify any partitionKeys , you must at least set the value of
// partitionKeys to an empty list. For example: "PartitionKeys": []
PartitionKeys []Column
// The retention time for this table.
Retention int32
// A storage descriptor containing information about the physical storage of this
// table.
StorageDescriptor *StorageDescriptor
// The type of this table. Glue will create tables with the EXTERNAL_TABLE type.
// Other services, such as Athena, may create tables with additional table types.
// Glue related table types: EXTERNAL_TABLE Hive compatible attribute - indicates a
// non-Hive managed table. GOVERNED Used by Lake Formation. The Glue Data Catalog
// understands GOVERNED .
TableType *string
// A TableIdentifier structure that describes a target table for resource linking.
TargetTable *TableIdentifier
// The last time that the table was updated.
UpdateTime *time.Time
// The ID of the table version.
VersionId *string
// Included for Apache Hive compatibility. Not used in the normal course of Glue
// operations.
ViewExpandedText *string
// Included for Apache Hive compatibility. Not used in the normal course of Glue
// operations. If the table is a VIRTUAL_VIEW , certain Athena configuration
// encoded in base64.
ViewOriginalText *string
noSmithyDocumentSerde
}
// An error record for table operations.
type TableError struct {
// The details about the error.
ErrorDetail *ErrorDetail
// The name of the table. For Hive compatibility, this must be entirely lowercase.
TableName *string
noSmithyDocumentSerde
}
// A structure that describes a target table for resource linking.
type TableIdentifier struct {
// The ID of the Data Catalog in which the table resides.
CatalogId *string
// The name of the catalog database that contains the target table.
DatabaseName *string
// The name of the target table.
Name *string
// Region of the target table.
Region *string
noSmithyDocumentSerde
}
// A structure used to define a table.
type TableInput struct {
// The table name. For Hive compatibility, this is folded to lowercase when it is
// stored.
//
// This member is required.
Name *string
// A description of the table.
Description *string
// The last time that the table was accessed.
LastAccessTime *time.Time
// The last time that column statistics were computed for this table.
LastAnalyzedTime *time.Time
// The table owner. Included for Apache Hive compatibility. Not used in the normal
// course of Glue operations.
Owner *string
// These key-value pairs define properties associated with the table.
Parameters map[string]string
// A list of columns by which the table is partitioned. Only primitive types are
// supported as partition keys. When you create a table used by Amazon Athena, and
// you do not specify any partitionKeys , you must at least set the value of
// partitionKeys to an empty list. For example: "PartitionKeys": []
PartitionKeys []Column
// The retention time for this table.
Retention int32
// A storage descriptor containing information about the physical storage of this
// table.
StorageDescriptor *StorageDescriptor
// The type of this table. Glue will create tables with the EXTERNAL_TABLE type.
// Other services, such as Athena, may create tables with additional table types.
// Glue related table types: EXTERNAL_TABLE Hive compatible attribute - indicates a
// non-Hive managed table. GOVERNED Used by Lake Formation. The Glue Data Catalog
// understands GOVERNED .
TableType *string
// A TableIdentifier structure that describes a target table for resource linking.
TargetTable *TableIdentifier
// Included for Apache Hive compatibility. Not used in the normal course of Glue
// operations.
ViewExpandedText *string
// Included for Apache Hive compatibility. Not used in the normal course of Glue
// operations. If the table is a VIRTUAL_VIEW , certain Athena configuration
// encoded in base64.
ViewOriginalText *string
noSmithyDocumentSerde
}
// Specifies a version of a table.
type TableVersion struct {
// The table in question.
Table *Table
// The ID value that identifies this table version. A VersionId is a string
// representation of an integer. Each version is incremented by 1.
VersionId *string
noSmithyDocumentSerde
}
// An error record for table-version operations.
type TableVersionError struct {
// The details about the error.
ErrorDetail *ErrorDetail
// The name of the table in question.
TableName *string
// The ID value of the version in question. A VersionID is a string representation
// of an integer. Each version is incremented by 1.
VersionId *string
noSmithyDocumentSerde
}
// The sampling parameters that are associated with the machine learning transform.
type TaskRun struct {
// The last point in time that the requested task run was completed.
CompletedOn *time.Time
// The list of error strings associated with this task run.
ErrorString *string
// The amount of time (in seconds) that the task run consumed resources.
ExecutionTime int32
// The last point in time that the requested task run was updated.
LastModifiedOn *time.Time
// The names of the log group for secure logging, associated with this task run.
LogGroupName *string
// Specifies configuration properties associated with this task run.
Properties *TaskRunProperties
// The date and time that this task run started.
StartedOn *time.Time
// The current status of the requested task run.
Status TaskStatusType
// The unique identifier for this task run.
TaskRunId *string
// The unique identifier for the transform.
TransformId *string
noSmithyDocumentSerde
}
// The criteria that are used to filter the task runs for the machine learning
// transform.
type TaskRunFilterCriteria struct {
// Filter on task runs started after this date.
StartedAfter *time.Time
// Filter on task runs started before this date.
StartedBefore *time.Time
// The current status of the task run.
Status TaskStatusType
// The type of task run.
TaskRunType TaskType
noSmithyDocumentSerde
}
// The configuration properties for the task run.
type TaskRunProperties struct {
// The configuration properties for an exporting labels task run.
ExportLabelsTaskRunProperties *ExportLabelsTaskRunProperties
// The configuration properties for a find matches task run.
FindMatchesTaskRunProperties *FindMatchesTaskRunProperties
// The configuration properties for an importing labels task run.
ImportLabelsTaskRunProperties *ImportLabelsTaskRunProperties
// The configuration properties for a labeling set generation task run.
LabelingSetGenerationTaskRunProperties *LabelingSetGenerationTaskRunProperties
// The type of task run.
TaskType TaskType
noSmithyDocumentSerde
}
// The sorting criteria that are used to sort the list of task runs for the
// machine learning transform.
type TaskRunSortCriteria struct {
// The column to be used to sort the list of task runs for the machine learning
// transform.
//
// This member is required.
Column TaskRunSortColumnType
// The sort direction to be used to sort the list of task runs for the machine
// learning transform.
//
// This member is required.
SortDirection SortDirectionType
noSmithyDocumentSerde
}
// Specifies the parameters in the config file of the dynamic transform.
type TransformConfigParameter struct {
// Specifies the name of the parameter in the config file of the dynamic transform.
//
// This member is required.
Name *string
// Specifies the parameter type in the config file of the dynamic transform.
//
// This member is required.
Type ParamType
// Specifies whether the parameter is optional or not in the config file of the
// dynamic transform.
IsOptional *bool
// Specifies the list type of the parameter in the config file of the dynamic
// transform.
ListType ParamType
// Specifies the validation message in the config file of the dynamic transform.
ValidationMessage *string
// Specifies the validation rule in the config file of the dynamic transform.
ValidationRule *string
// Specifies the value of the parameter in the config file of the dynamic
// transform.
Value []string
noSmithyDocumentSerde
}
// The encryption-at-rest settings of the transform that apply to accessing user
// data. Machine learning transforms can access user data encrypted in Amazon S3
// using KMS. Additionally, imported labels and trained transforms can now be
// encrypted using a customer provided KMS key.
type TransformEncryption struct {
// An MLUserDataEncryption object containing the encryption mode and
// customer-provided KMS key ID.
MlUserDataEncryption *MLUserDataEncryption
// The name of the security configuration.
TaskRunSecurityConfigurationName *string
noSmithyDocumentSerde
}
// The criteria used to filter the machine learning transforms.
type TransformFilterCriteria struct {
// The time and date after which the transforms were created.
CreatedAfter *time.Time
// The time and date before which the transforms were created.
CreatedBefore *time.Time
// This value determines which version of Glue this machine learning transform is
// compatible with. Glue 1.0 is recommended for most customers. If the value is not
// set, the Glue compatibility defaults to Glue 0.9. For more information, see
// Glue Versions (https://docs.aws.amazon.com/glue/latest/dg/release-notes.html#release-notes-versions)
// in the developer guide.
GlueVersion *string
// Filter on transforms last modified after this date.
LastModifiedAfter *time.Time
// Filter on transforms last modified before this date.
LastModifiedBefore *time.Time
// A unique transform name that is used to filter the machine learning transforms.
Name *string
// Filters on datasets with a specific schema. The Map object is an array of
// key-value pairs representing the schema this transform accepts, where Column is
// the name of a column, and Type is the type of the data such as an integer or
// string. Has an upper bound of 100 columns.
Schema []SchemaColumn
// Filters the list of machine learning transforms by the last known status of the
// transforms (to indicate whether a transform can be used or not). One of
// "NOT_READY", "READY", or "DELETING".
Status TransformStatusType
// The type of machine learning transform that is used to filter the machine
// learning transforms.
TransformType TransformType
noSmithyDocumentSerde
}
// The algorithm-specific parameters that are associated with the machine learning
// transform.
type TransformParameters struct {
// The type of machine learning transform. For information about the types of
// machine learning transforms, see Creating Machine Learning Transforms (https://docs.aws.amazon.com/glue/latest/dg/add-job-machine-learning-transform.html)
// .
//
// This member is required.
TransformType TransformType
// The parameters for the find matches algorithm.
FindMatchesParameters *FindMatchesParameters
noSmithyDocumentSerde
}
// The sorting criteria that are associated with the machine learning transform.
type TransformSortCriteria struct {
// The column to be used in the sorting criteria that are associated with the
// machine learning transform.
//
// This member is required.
Column TransformSortColumnType
// The sort direction to be used in the sorting criteria that are associated with
// the machine learning transform.
//
// This member is required.
SortDirection SortDirectionType
noSmithyDocumentSerde
}
// Information about a specific trigger.
type Trigger struct {
// The actions initiated by this trigger.
Actions []Action
// A description of this trigger.
Description *string
// Batch condition that must be met (specified number of events received or batch
// time window expired) before EventBridge event trigger fires.
EventBatchingCondition *EventBatchingCondition
// Reserved for future use.
Id *string
// The name of the trigger.
Name *string
// The predicate of this trigger, which defines when it will fire.
Predicate *Predicate
// A cron expression used to specify the schedule (see Time-Based Schedules for
// Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html)
// . For example, to run something every day at 12:15 UTC, you would specify:
// cron(15 12 * * ? *) .
Schedule *string
// The current state of the trigger.
State TriggerState
// The type of trigger that this is.
Type TriggerType
// The name of the workflow associated with the trigger.
WorkflowName *string
noSmithyDocumentSerde
}
// The details of a Trigger node present in the workflow.
type TriggerNodeDetails struct {
// The information of the trigger represented by the trigger node.
Trigger *Trigger
noSmithyDocumentSerde
}
// A structure used to provide information used to update a trigger. This object
// updates the previous trigger definition by overwriting it completely.
type TriggerUpdate struct {
// The actions initiated by this trigger.
Actions []Action
// A description of this trigger.
Description *string
// Batch condition that must be met (specified number of events received or batch
// time window expired) before EventBridge event trigger fires.
EventBatchingCondition *EventBatchingCondition
// Reserved for future use.
Name *string
// The predicate of this trigger, which defines when it will fire.
Predicate *Predicate
// A cron expression used to specify the schedule (see Time-Based Schedules for
// Jobs and Crawlers (https://docs.aws.amazon.com/glue/latest/dg/monitor-data-warehouse-schedule.html)
// . For example, to run something every day at 12:15 UTC, you would specify:
// cron(15 12 * * ? *) .
Schedule *string
noSmithyDocumentSerde
}
// A partition that contains unfiltered metadata.
type UnfilteredPartition struct {
// The list of columns the user has permissions to access.
AuthorizedColumns []string
// A Boolean value indicating that the partition location is registered with Lake
// Formation.
IsRegisteredWithLakeFormation bool
// The partition object.
Partition *Partition
noSmithyDocumentSerde
}
// Specifies a transform that combines the rows from two or more datasets into a
// single result.
type Union struct {
// The node ID inputs to the transform.
//
// This member is required.
Inputs []string
// The name of the transform node.
//
// This member is required.
Name *string
// Indicates the type of Union transform. Specify ALL to join all rows from data
// sources to the resulting DynamicFrame. The resulting union does not remove
// duplicate rows. Specify DISTINCT to remove duplicate rows in the resulting
// DynamicFrame.
//
// This member is required.
UnionType UnionType
noSmithyDocumentSerde
}
// Specifies a custom CSV classifier to be updated.
type UpdateCsvClassifierRequest struct {
// The name of the classifier.
//
// This member is required.
Name *string
// Enables the processing of files that contain only one column.
AllowSingleColumn *bool
// Indicates whether the CSV file contains a header.
ContainsHeader CsvHeaderOption
// Specifies the configuration of custom datatypes.
CustomDatatypeConfigured *bool
// Specifies a list of supported custom datatypes.
CustomDatatypes []string
// A custom symbol to denote what separates each column entry in the row.
Delimiter *string
// Specifies not to trim values before identifying the type of column values. The
// default value is true.
DisableValueTrimming *bool
// A list of strings representing column names.
Header []string
// A custom symbol to denote what combines content into a single column value. It
// must be different from the column delimiter.
QuoteSymbol *string
noSmithyDocumentSerde
}
// Specifies a grok classifier to update when passed to UpdateClassifier .
type UpdateGrokClassifierRequest struct {
// The name of the GrokClassifier .
//
// This member is required.
Name *string
// An identifier of the data format that the classifier matches, such as Twitter,
// JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
Classification *string
// Optional custom grok patterns used by this classifier.
CustomPatterns *string
// The grok pattern used by this classifier.
GrokPattern *string
noSmithyDocumentSerde
}
// Specifies a JSON classifier to be updated.
type UpdateJsonClassifierRequest struct {
// The name of the classifier.
//
// This member is required.
Name *string
// A JsonPath string defining the JSON data for the classifier to classify. Glue
// supports a subset of JsonPath, as described in Writing JsonPath Custom
// Classifiers (https://docs.aws.amazon.com/glue/latest/dg/custom-classifier.html#custom-classifier-json)
// .
JsonPath *string
noSmithyDocumentSerde
}
// Specifies an XML classifier to be updated.
type UpdateXMLClassifierRequest struct {
// The name of the classifier.
//
// This member is required.
Name *string
// An identifier of the data format that the classifier matches.
Classification *string
// The XML tag designating the element that contains each record in an XML
// document being parsed. This cannot identify a self-closing element (closed by />
// ). An empty row element that contains only attributes can be parsed as long as
// it ends with a closing tag (for example, is okay, but is not).
RowTag *string
noSmithyDocumentSerde
}
// The options to configure an upsert operation when writing to a Redshift target .
type UpsertRedshiftTargetOptions struct {
// The name of the connection to use to write to Redshift.
ConnectionName *string
// The physical location of the Redshift table.
TableLocation *string
// The keys used to determine whether to perform an update or insert.
UpsertKeys []string
noSmithyDocumentSerde
}
// Represents the equivalent of a Hive user-defined function ( UDF ) definition.
type UserDefinedFunction struct {
// The ID of the Data Catalog in which the function resides.
CatalogId *string
// The Java class that contains the function code.
ClassName *string
// The time at which the function was created.
CreateTime *time.Time
// The name of the catalog database that contains the function.
DatabaseName *string
// The name of the function.
FunctionName *string
// The owner of the function.
OwnerName *string
// The owner type.
OwnerType PrincipalType
// The resource URIs for the function.
ResourceUris []ResourceUri
noSmithyDocumentSerde
}
// A structure used to create or update a user-defined function.
type UserDefinedFunctionInput struct {
// The Java class that contains the function code.
ClassName *string
// The name of the function.
FunctionName *string
// The owner of the function.
OwnerName *string
// The owner type.
OwnerType PrincipalType
// The resource URIs for the function.
ResourceUris []ResourceUri
noSmithyDocumentSerde
}
// A workflow is a collection of multiple dependent Glue jobs and crawlers that
// are run to complete a complex ETL task. A workflow manages the execution and
// monitoring of all its jobs and crawlers.
type Workflow struct {
// This structure indicates the details of the blueprint that this particular
// workflow is created from.
BlueprintDetails *BlueprintDetails
// The date and time when the workflow was created.
CreatedOn *time.Time
// A collection of properties to be used as part of each execution of the
// workflow. The run properties are made available to each job in the workflow. A
// job can modify the properties for the next jobs in the flow.
DefaultRunProperties map[string]string
// A description of the workflow.
Description *string
// The graph representing all the Glue components that belong to the workflow as
// nodes and directed connections between them as edges.
Graph *WorkflowGraph
// The date and time when the workflow was last modified.
LastModifiedOn *time.Time
// The information about the last execution of the workflow.
LastRun *WorkflowRun
// You can use this parameter to prevent unwanted multiple updates to data, to
// control costs, or in some cases, to prevent exceeding the maximum number of
// concurrent runs of any of the component jobs. If you leave this parameter blank,
// there is no limit to the number of concurrent workflow runs.
MaxConcurrentRuns *int32
// The name of the workflow.
Name *string
noSmithyDocumentSerde
}
// A workflow graph represents the complete workflow containing all the Glue
// components present in the workflow and all the directed connections between
// them.
type WorkflowGraph struct {
// A list of all the directed connections between the nodes belonging to the
// workflow.
Edges []Edge
// A list of the the Glue components belong to the workflow represented as nodes.
Nodes []Node
noSmithyDocumentSerde
}
// A workflow run is an execution of a workflow providing all the runtime
// information.
type WorkflowRun struct {
// The date and time when the workflow run completed.
CompletedOn *time.Time
// This error message describes any error that may have occurred in starting the
// workflow run. Currently the only error message is "Concurrent runs exceeded for
// workflow: foo ."
ErrorMessage *string
// The graph representing all the Glue components that belong to the workflow as
// nodes and directed connections between them as edges.
Graph *WorkflowGraph
// Name of the workflow that was run.
Name *string
// The ID of the previous workflow run.
PreviousRunId *string
// The date and time when the workflow run was started.
StartedOn *time.Time
// The batch condition that started the workflow run.
StartingEventBatchCondition *StartingEventBatchCondition
// The statistics of the run.
Statistics *WorkflowRunStatistics
// The status of the workflow run.
Status WorkflowRunStatus
// The ID of this workflow run.
WorkflowRunId *string
// The workflow run properties which were set during the run.
WorkflowRunProperties map[string]string
noSmithyDocumentSerde
}
// Workflow run statistics provides statistics about the workflow run.
type WorkflowRunStatistics struct {
// Indicates the count of job runs in the ERROR state in the workflow run.
ErroredActions int32
// Total number of Actions that have failed.
FailedActions int32
// Total number Actions in running state.
RunningActions int32
// Total number of Actions that have stopped.
StoppedActions int32
// Total number of Actions that have succeeded.
SucceededActions int32
// Total number of Actions that timed out.
TimeoutActions int32
// Total number of Actions in the workflow run.
TotalActions int32
// Indicates the count of job runs in WAITING state in the workflow run.
WaitingActions int32
noSmithyDocumentSerde
}
// A classifier for XML content.
type XMLClassifier struct {
// An identifier of the data format that the classifier matches.
//
// This member is required.
Classification *string
// The name of the classifier.
//
// This member is required.
Name *string
// The time that this classifier was registered.
CreationTime *time.Time
// The time that this classifier was last updated.
LastUpdated *time.Time
// The XML tag designating the element that contains each record in an XML
// document being parsed. This can't identify a self-closing element (closed by />
// ). An empty row element that contains only attributes can be parsed as long as
// it ends with a closing tag (for example, is okay, but is not).
RowTag *string
// The version of this classifier.
Version int64
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
| 7,861 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
cryptorand "crypto/rand"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/defaults"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/retry"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
smithy "github.com/aws/smithy-go"
smithydocument "github.com/aws/smithy-go/document"
"github.com/aws/smithy-go/logging"
"github.com/aws/smithy-go/middleware"
smithyrand "github.com/aws/smithy-go/rand"
smithyhttp "github.com/aws/smithy-go/transport/http"
"net"
"net/http"
"time"
)
const ServiceID = "grafana"
const ServiceAPIVersion = "2020-08-18"
// Client provides the API client to make operations call for Amazon Managed
// Grafana.
type Client struct {
options Options
}
// New returns an initialized Client based on the functional options. Provide
// additional functional options to further configure the behavior of the client,
// such as changing the client's endpoint or adding custom middleware behavior.
func New(options Options, optFns ...func(*Options)) *Client {
options = options.Copy()
resolveDefaultLogger(&options)
setResolvedDefaultsMode(&options)
resolveRetryer(&options)
resolveHTTPClient(&options)
resolveHTTPSignerV4(&options)
resolveDefaultEndpointConfiguration(&options)
resolveIdempotencyTokenProvider(&options)
for _, fn := range optFns {
fn(&options)
}
client := &Client{
options: options,
}
return client
}
type Options struct {
// Set of options to modify how an operation is invoked. These apply to all
// operations invoked for this client. Use functional options on operation call to
// modify this list for per operation behavior.
APIOptions []func(*middleware.Stack) error
// Configures the events that will be sent to the configured logger.
ClientLogMode aws.ClientLogMode
// The credentials object to use when signing requests.
Credentials aws.CredentialsProvider
// The configuration DefaultsMode that the SDK should use when constructing the
// clients initial default settings.
DefaultsMode aws.DefaultsMode
// The endpoint options to be used when attempting to resolve an endpoint.
EndpointOptions EndpointResolverOptions
// The service endpoint resolver.
EndpointResolver EndpointResolver
// Signature Version 4 (SigV4) Signer
HTTPSignerV4 HTTPSignerV4
// Provides idempotency tokens values that will be automatically populated into
// idempotent API operations.
IdempotencyTokenProvider IdempotencyTokenProvider
// The logger writer interface to write logging messages to.
Logger logging.Logger
// The region to send requests to. (Required)
Region string
// RetryMaxAttempts specifies the maximum number attempts an API client will call
// an operation that fails with a retryable error. A value of 0 is ignored, and
// will not be used to configure the API client created default retryer, or modify
// per operation call's retry max attempts. When creating a new API Clients this
// member will only be used if the Retryer Options member is nil. This value will
// be ignored if Retryer is not nil. If specified in an operation call's functional
// options with a value that is different than the constructed client's Options,
// the Client's Retryer will be wrapped to use the operation's specific
// RetryMaxAttempts value.
RetryMaxAttempts int
// RetryMode specifies the retry mode the API client will be created with, if
// Retryer option is not also specified. When creating a new API Clients this
// member will only be used if the Retryer Options member is nil. This value will
// be ignored if Retryer is not nil. Currently does not support per operation call
// overrides, may in the future.
RetryMode aws.RetryMode
// Retryer guides how HTTP requests should be retried in case of recoverable
// failures. When nil the API client will use a default retryer. The kind of
// default retry created by the API client can be changed with the RetryMode
// option.
Retryer aws.Retryer
// The RuntimeEnvironment configuration, only populated if the DefaultsMode is set
// to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You
// should not populate this structure programmatically, or rely on the values here
// within your applications.
RuntimeEnvironment aws.RuntimeEnvironment
// The initial DefaultsMode used when the client options were constructed. If the
// DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved
// value was at that point in time. Currently does not support per operation call
// overrides, may in the future.
resolvedDefaultsMode aws.DefaultsMode
// The HTTP client to invoke API calls with. Defaults to client's default HTTP
// implementation if nil.
HTTPClient HTTPClient
}
// WithAPIOptions returns a functional option for setting the Client's APIOptions
// option.
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) {
return func(o *Options) {
o.APIOptions = append(o.APIOptions, optFns...)
}
}
// WithEndpointResolver returns a functional option for setting the Client's
// EndpointResolver option.
func WithEndpointResolver(v EndpointResolver) func(*Options) {
return func(o *Options) {
o.EndpointResolver = v
}
}
type HTTPClient interface {
Do(*http.Request) (*http.Response, error)
}
// Copy creates a clone where the APIOptions list is deep copied.
func (o Options) Copy() Options {
to := o
to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions))
copy(to.APIOptions, o.APIOptions)
return to
}
func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) {
ctx = middleware.ClearStackValues(ctx)
stack := middleware.NewStack(opID, smithyhttp.NewStackRequest)
options := c.options.Copy()
for _, fn := range optFns {
fn(&options)
}
finalizeRetryMaxAttemptOptions(&options, *c)
finalizeClientEndpointResolverOptions(&options)
for _, fn := range stackFns {
if err := fn(stack, options); err != nil {
return nil, metadata, err
}
}
for _, fn := range options.APIOptions {
if err := fn(stack); err != nil {
return nil, metadata, err
}
}
handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack)
result, metadata, err = handler.Handle(ctx, params)
if err != nil {
err = &smithy.OperationError{
ServiceID: ServiceID,
OperationName: opID,
Err: err,
}
}
return result, metadata, err
}
type noSmithyDocumentSerde = smithydocument.NoSerde
func resolveDefaultLogger(o *Options) {
if o.Logger != nil {
return
}
o.Logger = logging.Nop{}
}
func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error {
return middleware.AddSetLoggerMiddleware(stack, o.Logger)
}
func setResolvedDefaultsMode(o *Options) {
if len(o.resolvedDefaultsMode) > 0 {
return
}
var mode aws.DefaultsMode
mode.SetFromString(string(o.DefaultsMode))
if mode == aws.DefaultsModeAuto {
mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment)
}
o.resolvedDefaultsMode = mode
}
// NewFromConfig returns a new client from the provided config.
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
opts := Options{
Region: cfg.Region,
DefaultsMode: cfg.DefaultsMode,
RuntimeEnvironment: cfg.RuntimeEnvironment,
HTTPClient: cfg.HTTPClient,
Credentials: cfg.Credentials,
APIOptions: cfg.APIOptions,
Logger: cfg.Logger,
ClientLogMode: cfg.ClientLogMode,
}
resolveAWSRetryerProvider(cfg, &opts)
resolveAWSRetryMaxAttempts(cfg, &opts)
resolveAWSRetryMode(cfg, &opts)
resolveAWSEndpointResolver(cfg, &opts)
resolveUseDualStackEndpoint(cfg, &opts)
resolveUseFIPSEndpoint(cfg, &opts)
return New(opts, optFns...)
}
func resolveHTTPClient(o *Options) {
var buildable *awshttp.BuildableClient
if o.HTTPClient != nil {
var ok bool
buildable, ok = o.HTTPClient.(*awshttp.BuildableClient)
if !ok {
return
}
} else {
buildable = awshttp.NewBuildableClient()
}
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
if err == nil {
buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) {
if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok {
dialer.Timeout = dialerTimeout
}
})
buildable = buildable.WithTransportOptions(func(transport *http.Transport) {
if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok {
transport.TLSHandshakeTimeout = tlsHandshakeTimeout
}
})
}
o.HTTPClient = buildable
}
func resolveRetryer(o *Options) {
if o.Retryer != nil {
return
}
if len(o.RetryMode) == 0 {
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
if err == nil {
o.RetryMode = modeConfig.RetryMode
}
}
if len(o.RetryMode) == 0 {
o.RetryMode = aws.RetryModeStandard
}
var standardOptions []func(*retry.StandardOptions)
if v := o.RetryMaxAttempts; v != 0 {
standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
so.MaxAttempts = v
})
}
switch o.RetryMode {
case aws.RetryModeAdaptive:
var adaptiveOptions []func(*retry.AdaptiveModeOptions)
if len(standardOptions) != 0 {
adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) {
ao.StandardOptions = append(ao.StandardOptions, standardOptions...)
})
}
o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...)
default:
o.Retryer = retry.NewStandard(standardOptions...)
}
}
func resolveAWSRetryerProvider(cfg aws.Config, o *Options) {
if cfg.Retryer == nil {
return
}
o.Retryer = cfg.Retryer()
}
func resolveAWSRetryMode(cfg aws.Config, o *Options) {
if len(cfg.RetryMode) == 0 {
return
}
o.RetryMode = cfg.RetryMode
}
func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) {
if cfg.RetryMaxAttempts == 0 {
return
}
o.RetryMaxAttempts = cfg.RetryMaxAttempts
}
func finalizeRetryMaxAttemptOptions(o *Options, client Client) {
if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts {
return
}
o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
}
func resolveAWSEndpointResolver(cfg aws.Config, o *Options) {
if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil {
return
}
o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions, NewDefaultEndpointResolver())
}
func addClientUserAgent(stack *middleware.Stack) error {
return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "grafana", goModuleVersion)(stack)
}
func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error {
mw := v4.NewSignHTTPRequestMiddleware(v4.SignHTTPRequestMiddlewareOptions{
CredentialsProvider: o.Credentials,
Signer: o.HTTPSignerV4,
LogSigning: o.ClientLogMode.IsSigning(),
})
return stack.Finalize.Add(mw, middleware.After)
}
type HTTPSignerV4 interface {
SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error
}
func resolveHTTPSignerV4(o *Options) {
if o.HTTPSignerV4 != nil {
return
}
o.HTTPSignerV4 = newDefaultV4Signer(*o)
}
func newDefaultV4Signer(o Options) *v4.Signer {
return v4.NewSigner(func(so *v4.SignerOptions) {
so.Logger = o.Logger
so.LogSigning = o.ClientLogMode.IsSigning()
})
}
func resolveIdempotencyTokenProvider(o *Options) {
if o.IdempotencyTokenProvider != nil {
return
}
o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader)
}
func addRetryMiddlewares(stack *middleware.Stack, o Options) error {
mo := retry.AddRetryMiddlewaresOptions{
Retryer: o.Retryer,
LogRetryAttempts: o.ClientLogMode.IsRetries(),
}
return retry.AddRetryMiddlewares(stack, mo)
}
// resolves dual-stack endpoint configuration
func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error {
if len(cfg.ConfigSources) == 0 {
return nil
}
value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources)
if err != nil {
return err
}
if found {
o.EndpointOptions.UseDualStackEndpoint = value
}
return nil
}
// resolves FIPS endpoint configuration
func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error {
if len(cfg.ConfigSources) == 0 {
return nil
}
value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources)
if err != nil {
return err
}
if found {
o.EndpointOptions.UseFIPSEndpoint = value
}
return nil
}
// IdempotencyTokenProvider interface for providing idempotency token
type IdempotencyTokenProvider interface {
GetIdempotencyToken() (string, error)
}
func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error {
return awsmiddleware.AddRequestIDRetrieverMiddleware(stack)
}
func addResponseErrorMiddleware(stack *middleware.Stack) error {
return awshttp.AddResponseErrorMiddleware(stack)
}
func addRequestResponseLogging(stack *middleware.Stack, o Options) error {
return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{
LogRequest: o.ClientLogMode.IsRequest(),
LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(),
LogResponse: o.ClientLogMode.IsResponse(),
LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(),
}, middleware.After)
}
| 455 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"io/ioutil"
"net/http"
"strings"
"testing"
)
func TestClient_resolveRetryOptions(t *testing.T) {
nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) {
return &http.Response{
StatusCode: 200,
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader("")),
}, nil
})
cases := map[string]struct {
defaultsMode aws.DefaultsMode
retryer aws.Retryer
retryMaxAttempts int
opRetryMaxAttempts *int
retryMode aws.RetryMode
expectClientRetryMode aws.RetryMode
expectClientMaxAttempts int
expectOpMaxAttempts int
}{
"defaults": {
defaultsMode: aws.DefaultsModeStandard,
expectClientRetryMode: aws.RetryModeStandard,
expectClientMaxAttempts: 3,
expectOpMaxAttempts: 3,
},
"custom default retry": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 10,
},
"custom op max attempts": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
opRetryMaxAttempts: aws.Int(2),
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 2,
},
"custom op no change max attempts": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
opRetryMaxAttempts: aws.Int(10),
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 10,
},
"custom op 0 max attempts": {
retryMode: aws.RetryModeAdaptive,
retryMaxAttempts: 10,
opRetryMaxAttempts: aws.Int(0),
expectClientRetryMode: aws.RetryModeAdaptive,
expectClientMaxAttempts: 10,
expectOpMaxAttempts: 10,
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
client := NewFromConfig(aws.Config{
DefaultsMode: c.defaultsMode,
Retryer: func() func() aws.Retryer {
if c.retryer == nil {
return nil
}
return func() aws.Retryer { return c.retryer }
}(),
HTTPClient: nopClient,
RetryMaxAttempts: c.retryMaxAttempts,
RetryMode: c.retryMode,
})
if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a {
t.Errorf("expect %v retry mode, got %v", e, a)
}
if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a {
t.Errorf("expect %v max attempts, got %v", e, a)
}
_, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{},
[]func(*Options){
func(o *Options) {
if c.opRetryMaxAttempts == nil {
return
}
o.RetryMaxAttempts = *c.opRetryMaxAttempts
},
},
func(s *middleware.Stack, o Options) error {
s.Initialize.Clear()
s.Serialize.Clear()
s.Build.Clear()
s.Finalize.Clear()
s.Deserialize.Clear()
if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a {
t.Errorf("expect %v op max attempts, got %v", e, a)
}
return nil
})
if err != nil {
t.Fatalf("expect no operation error, got %v", err)
}
})
}
}
| 124 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Assigns a Grafana Enterprise license to a workspace. Upgrading to Grafana
// Enterprise incurs additional fees. For more information, see Upgrade a
// workspace to Grafana Enterprise (https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html)
// .
func (c *Client) AssociateLicense(ctx context.Context, params *AssociateLicenseInput, optFns ...func(*Options)) (*AssociateLicenseOutput, error) {
if params == nil {
params = &AssociateLicenseInput{}
}
result, metadata, err := c.invokeOperation(ctx, "AssociateLicense", params, optFns, c.addOperationAssociateLicenseMiddlewares)
if err != nil {
return nil, err
}
out := result.(*AssociateLicenseOutput)
out.ResultMetadata = metadata
return out, nil
}
type AssociateLicenseInput struct {
// The type of license to associate with the workspace.
//
// This member is required.
LicenseType types.LicenseType
// The ID of the workspace to associate the license with.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type AssociateLicenseOutput struct {
// A structure containing data about the workspace.
//
// This member is required.
Workspace *types.WorkspaceDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationAssociateLicenseMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpAssociateLicense{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpAssociateLicense{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpAssociateLicenseValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateLicense(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opAssociateLicense(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "AssociateLicense",
}
}
| 135 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Creates a workspace. In a workspace, you can create Grafana dashboards and
// visualizations to analyze your metrics, logs, and traces. You don't have to
// build, package, or deploy any hardware to run the Grafana server. Don't use
// CreateWorkspace to modify an existing workspace. Instead, use UpdateWorkspace (https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateWorkspace.html)
// .
func (c *Client) CreateWorkspace(ctx context.Context, params *CreateWorkspaceInput, optFns ...func(*Options)) (*CreateWorkspaceOutput, error) {
if params == nil {
params = &CreateWorkspaceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "CreateWorkspace", params, optFns, c.addOperationCreateWorkspaceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*CreateWorkspaceOutput)
out.ResultMetadata = metadata
return out, nil
}
type CreateWorkspaceInput struct {
// Specifies whether the workspace can access Amazon Web Services resources in
// this Amazon Web Services account only, or whether it can also access Amazon Web
// Services resources in other accounts in the same organization. If you specify
// ORGANIZATION , you must specify which organizational units the workspace can
// access in the workspaceOrganizationalUnits parameter.
//
// This member is required.
AccountAccessType types.AccountAccessType
// Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor
// to Single Sign-On), or both to authenticate users for using the Grafana console
// within a workspace. For more information, see User authentication in Amazon
// Managed Grafana (https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html)
// .
//
// This member is required.
AuthenticationProviders []types.AuthenticationProviderTypes
// When creating a workspace through the Amazon Web Services API, CLI or Amazon
// Web Services CloudFormation, you must manage IAM roles and provision the
// permissions that the workspace needs to use Amazon Web Services data sources and
// notification channels. You must also specify a workspaceRoleArn for a role that
// you will manage for the workspace to use when accessing those datasources and
// notification channels. The ability for Amazon Managed Grafana to create and
// update IAM roles on behalf of the user is supported only in the Amazon Managed
// Grafana console, where this value may be set to SERVICE_MANAGED . Use only the
// CUSTOMER_MANAGED permission type when creating a workspace with the API, CLI or
// Amazon Web Services CloudFormation. For more information, see Amazon Managed
// Grafana permissions and policies for Amazon Web Services data sources and
// notification channels (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html)
// .
//
// This member is required.
PermissionType types.PermissionType
// A unique, case-sensitive, user-provided identifier to ensure the idempotency of
// the request.
ClientToken *string
// The configuration string for the workspace that you create. For more
// information about the format and configuration options available, see Working
// in your Grafana workspace (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html)
// .
//
// This value conforms to the media type: application/json
Configuration *string
// Specifies the version of Grafana to support in the new workspace. Supported
// values are 8.4 and 9.4 .
GrafanaVersion *string
// Configuration for network access to your workspace. When this is configured,
// only listed IP addresses and VPC endpoints will be able to access your
// workspace. Standard Grafana authentication and authorization will still be
// required. If this is not configured, or is removed, then all IP addresses and
// VPC endpoints will be allowed. Standard Grafana authentication and authorization
// will still be required.
NetworkAccessControl *types.NetworkAccessConfiguration
// The name of an IAM role that already exists to use with Organizations to access
// Amazon Web Services data sources and notification channels in other accounts in
// an organization.
OrganizationRoleName *string
// The name of the CloudFormation stack set to use to generate IAM roles to be
// used for this workspace.
StackSetName *string
// The list of tags associated with the workspace.
Tags map[string]string
// The configuration settings for an Amazon VPC that contains data sources for
// your Grafana workspace to connect to.
VpcConfiguration *types.VpcConfiguration
// This parameter is for internal use only, and should not be used.
WorkspaceDataSources []types.DataSourceType
// A description for the workspace. This is used only to help you identify this
// workspace. Pattern: ^[\\p{L}\\p{Z}\\p{N}\\p{P}]{0,2048}$
WorkspaceDescription *string
// The name for the workspace. It does not have to be unique.
WorkspaceName *string
// Specify the Amazon Web Services notification channels that you plan to use in
// this workspace. Specifying these data sources here enables Amazon Managed
// Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to
// use these channels.
WorkspaceNotificationDestinations []types.NotificationDestinationType
// Specifies the organizational units that this workspace is allowed to use data
// sources from, if this workspace is in an account that is part of an
// organization.
WorkspaceOrganizationalUnits []string
// Specified the IAM role that grants permissions to the Amazon Web Services
// resources that the workspace will view data from, including both data sources
// and notification channels. You are responsible for managing the permissions for
// this role as new data sources or notification channels are added.
WorkspaceRoleArn *string
noSmithyDocumentSerde
}
type CreateWorkspaceOutput struct {
// A structure containing data about the workspace that was created.
//
// This member is required.
Workspace *types.WorkspaceDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationCreateWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateWorkspace{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateWorkspace{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addIdempotencyToken_opCreateWorkspaceMiddleware(stack, options); err != nil {
return err
}
if err = addOpCreateWorkspaceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateWorkspace(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
type idempotencyToken_initializeOpCreateWorkspace struct {
tokenProvider IdempotencyTokenProvider
}
func (*idempotencyToken_initializeOpCreateWorkspace) ID() string {
return "OperationIdempotencyTokenAutoFill"
}
func (m *idempotencyToken_initializeOpCreateWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
if m.tokenProvider == nil {
return next.HandleInitialize(ctx, in)
}
input, ok := in.Parameters.(*CreateWorkspaceInput)
if !ok {
return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateWorkspaceInput ")
}
if input.ClientToken == nil {
t, err := m.tokenProvider.GetIdempotencyToken()
if err != nil {
return out, metadata, err
}
input.ClientToken = &t
}
return next.HandleInitialize(ctx, in)
}
func addIdempotencyToken_opCreateWorkspaceMiddleware(stack *middleware.Stack, cfg Options) error {
return stack.Initialize.Add(&idempotencyToken_initializeOpCreateWorkspace{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
}
func newServiceMetadataMiddleware_opCreateWorkspace(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "CreateWorkspace",
}
}
| 265 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Creates a Grafana API key for the workspace. This key can be used to
// authenticate requests sent to the workspace's HTTP API. See
// https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html (https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html)
// for available APIs and example requests.
func (c *Client) CreateWorkspaceApiKey(ctx context.Context, params *CreateWorkspaceApiKeyInput, optFns ...func(*Options)) (*CreateWorkspaceApiKeyOutput, error) {
if params == nil {
params = &CreateWorkspaceApiKeyInput{}
}
result, metadata, err := c.invokeOperation(ctx, "CreateWorkspaceApiKey", params, optFns, c.addOperationCreateWorkspaceApiKeyMiddlewares)
if err != nil {
return nil, err
}
out := result.(*CreateWorkspaceApiKeyOutput)
out.ResultMetadata = metadata
return out, nil
}
type CreateWorkspaceApiKeyInput struct {
// Specifies the name of the key. Keynames must be unique to the workspace.
//
// This member is required.
KeyName *string
// Specifies the permission level of the key. Valid values: VIEWER | EDITOR | ADMIN
//
// This member is required.
KeyRole *string
// Specifies the time in seconds until the key expires. Keys can be valid for up
// to 30 days.
//
// This member is required.
SecondsToLive *int32
// The ID of the workspace to create an API key.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type CreateWorkspaceApiKeyOutput struct {
// The key token. Use this value as a bearer token to authenticate HTTP requests
// to the workspace.
//
// This member is required.
Key *string
// The name of the key that was created.
//
// This member is required.
KeyName *string
// The ID of the workspace that the key is valid for.
//
// This member is required.
WorkspaceId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationCreateWorkspaceApiKeyMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateWorkspaceApiKey{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateWorkspaceApiKey{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpCreateWorkspaceApiKeyValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateWorkspaceApiKey(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opCreateWorkspaceApiKey(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "CreateWorkspaceApiKey",
}
}
| 156 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Deletes an Amazon Managed Grafana workspace.
func (c *Client) DeleteWorkspace(ctx context.Context, params *DeleteWorkspaceInput, optFns ...func(*Options)) (*DeleteWorkspaceOutput, error) {
if params == nil {
params = &DeleteWorkspaceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DeleteWorkspace", params, optFns, c.addOperationDeleteWorkspaceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DeleteWorkspaceOutput)
out.ResultMetadata = metadata
return out, nil
}
type DeleteWorkspaceInput struct {
// The ID of the workspace to delete.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type DeleteWorkspaceOutput struct {
// A structure containing information about the workspace that was deleted.
//
// This member is required.
Workspace *types.WorkspaceDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDeleteWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteWorkspace{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteWorkspace{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDeleteWorkspaceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteWorkspace(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDeleteWorkspace(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "DeleteWorkspace",
}
}
| 127 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Deletes a Grafana API key for the workspace.
func (c *Client) DeleteWorkspaceApiKey(ctx context.Context, params *DeleteWorkspaceApiKeyInput, optFns ...func(*Options)) (*DeleteWorkspaceApiKeyOutput, error) {
if params == nil {
params = &DeleteWorkspaceApiKeyInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DeleteWorkspaceApiKey", params, optFns, c.addOperationDeleteWorkspaceApiKeyMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DeleteWorkspaceApiKeyOutput)
out.ResultMetadata = metadata
return out, nil
}
type DeleteWorkspaceApiKeyInput struct {
// The name of the API key to delete.
//
// This member is required.
KeyName *string
// The ID of the workspace to delete.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type DeleteWorkspaceApiKeyOutput struct {
// The name of the key that was deleted.
//
// This member is required.
KeyName *string
// The ID of the workspace where the key was deleted.
//
// This member is required.
WorkspaceId *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDeleteWorkspaceApiKeyMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteWorkspaceApiKey{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteWorkspaceApiKey{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDeleteWorkspaceApiKeyValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteWorkspaceApiKey(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDeleteWorkspaceApiKey(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "DeleteWorkspaceApiKey",
}
}
| 136 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Displays information about one Amazon Managed Grafana workspace.
func (c *Client) DescribeWorkspace(ctx context.Context, params *DescribeWorkspaceInput, optFns ...func(*Options)) (*DescribeWorkspaceOutput, error) {
if params == nil {
params = &DescribeWorkspaceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeWorkspace", params, optFns, c.addOperationDescribeWorkspaceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeWorkspaceOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeWorkspaceInput struct {
// The ID of the workspace to display information about.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type DescribeWorkspaceOutput struct {
// A structure containing information about the workspace.
//
// This member is required.
Workspace *types.WorkspaceDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeWorkspace{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeWorkspace{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeWorkspaceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeWorkspace(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDescribeWorkspace(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "DescribeWorkspace",
}
}
| 127 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Displays information about the authentication methods used in one Amazon
// Managed Grafana workspace.
func (c *Client) DescribeWorkspaceAuthentication(ctx context.Context, params *DescribeWorkspaceAuthenticationInput, optFns ...func(*Options)) (*DescribeWorkspaceAuthenticationOutput, error) {
if params == nil {
params = &DescribeWorkspaceAuthenticationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeWorkspaceAuthentication", params, optFns, c.addOperationDescribeWorkspaceAuthenticationMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeWorkspaceAuthenticationOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeWorkspaceAuthenticationInput struct {
// The ID of the workspace to return authentication information about.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type DescribeWorkspaceAuthenticationOutput struct {
// A structure containing information about the authentication methods used in the
// workspace.
//
// This member is required.
Authentication *types.AuthenticationDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeWorkspaceAuthenticationMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeWorkspaceAuthentication{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeWorkspaceAuthentication{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeWorkspaceAuthenticationValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeWorkspaceAuthentication(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDescribeWorkspaceAuthentication(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "DescribeWorkspaceAuthentication",
}
}
| 129 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Gets the current configuration string for the given workspace.
func (c *Client) DescribeWorkspaceConfiguration(ctx context.Context, params *DescribeWorkspaceConfigurationInput, optFns ...func(*Options)) (*DescribeWorkspaceConfigurationOutput, error) {
if params == nil {
params = &DescribeWorkspaceConfigurationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeWorkspaceConfiguration", params, optFns, c.addOperationDescribeWorkspaceConfigurationMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DescribeWorkspaceConfigurationOutput)
out.ResultMetadata = metadata
return out, nil
}
type DescribeWorkspaceConfigurationInput struct {
// The ID of the workspace to get configuration information for.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type DescribeWorkspaceConfigurationOutput struct {
// The configuration string for the workspace that you requested. For more
// information about the format and configuration options available, see Working
// in your Grafana workspace (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html)
// .
//
// This value conforms to the media type: application/json
//
// This member is required.
Configuration *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDescribeWorkspaceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeWorkspaceConfiguration{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeWorkspaceConfiguration{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDescribeWorkspaceConfigurationValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeWorkspaceConfiguration(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDescribeWorkspaceConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "DescribeWorkspaceConfiguration",
}
}
| 131 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Removes the Grafana Enterprise license from a workspace.
func (c *Client) DisassociateLicense(ctx context.Context, params *DisassociateLicenseInput, optFns ...func(*Options)) (*DisassociateLicenseOutput, error) {
if params == nil {
params = &DisassociateLicenseInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DisassociateLicense", params, optFns, c.addOperationDisassociateLicenseMiddlewares)
if err != nil {
return nil, err
}
out := result.(*DisassociateLicenseOutput)
out.ResultMetadata = metadata
return out, nil
}
type DisassociateLicenseInput struct {
// The type of license to remove from the workspace.
//
// This member is required.
LicenseType types.LicenseType
// The ID of the workspace to remove the Grafana Enterprise license from.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type DisassociateLicenseOutput struct {
// A structure containing information about the workspace.
//
// This member is required.
Workspace *types.WorkspaceDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationDisassociateLicenseMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpDisassociateLicense{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDisassociateLicense{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpDisassociateLicenseValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateLicense(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opDisassociateLicense(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "DisassociateLicense",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Lists the users and groups who have the Grafana Admin and Editor roles in this
// workspace. If you use this operation without specifying userId or groupId , the
// operation returns the roles of all users and groups. If you specify a userId or
// a groupId , only the roles for that user or group are returned. If you do this,
// you can specify only one userId or one groupId .
func (c *Client) ListPermissions(ctx context.Context, params *ListPermissionsInput, optFns ...func(*Options)) (*ListPermissionsOutput, error) {
if params == nil {
params = &ListPermissionsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListPermissions", params, optFns, c.addOperationListPermissionsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListPermissionsOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListPermissionsInput struct {
// The ID of the workspace to list permissions for. This parameter is required.
//
// This member is required.
WorkspaceId *string
// (Optional) Limits the results to only the group that matches this ID.
GroupId *string
// The maximum number of results to include in the response.
MaxResults *int32
// The token to use when requesting the next set of results. You received this
// token from a previous ListPermissions operation.
NextToken *string
// (Optional) Limits the results to only the user that matches this ID.
UserId *string
// (Optional) If you specify SSO_USER , then only the permissions of IAM Identity
// Center users are returned. If you specify SSO_GROUP , only the permissions of
// IAM Identity Center groups are returned.
UserType types.UserType
noSmithyDocumentSerde
}
type ListPermissionsOutput struct {
// The permissions returned by the operation.
//
// This member is required.
Permissions []types.PermissionEntry
// The token to use in a subsequent ListPermissions operation to return the next
// set of results.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListPermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpListPermissions{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListPermissions{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListPermissionsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListPermissions(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListPermissionsAPIClient is a client that implements the ListPermissions
// operation.
type ListPermissionsAPIClient interface {
ListPermissions(context.Context, *ListPermissionsInput, ...func(*Options)) (*ListPermissionsOutput, error)
}
var _ ListPermissionsAPIClient = (*Client)(nil)
// ListPermissionsPaginatorOptions is the paginator options for ListPermissions
type ListPermissionsPaginatorOptions struct {
// The maximum number of results to include in the response.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListPermissionsPaginator is a paginator for ListPermissions
type ListPermissionsPaginator struct {
options ListPermissionsPaginatorOptions
client ListPermissionsAPIClient
params *ListPermissionsInput
nextToken *string
firstPage bool
}
// NewListPermissionsPaginator returns a new ListPermissionsPaginator
func NewListPermissionsPaginator(client ListPermissionsAPIClient, params *ListPermissionsInput, optFns ...func(*ListPermissionsPaginatorOptions)) *ListPermissionsPaginator {
if params == nil {
params = &ListPermissionsInput{}
}
options := ListPermissionsPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListPermissionsPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListPermissionsPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListPermissions page.
func (p *ListPermissionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListPermissionsOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListPermissions(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListPermissions(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "ListPermissions",
}
}
| 244 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// The ListTagsForResource operation returns the tags that are associated with the
// Amazon Managed Service for Grafana resource specified by the resourceArn .
// Currently, the only resource that can be tagged is a workspace.
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) {
if params == nil {
params = &ListTagsForResourceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListTagsForResourceOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListTagsForResourceInput struct {
// The ARN of the resource the list of tags are associated with.
//
// This member is required.
ResourceArn *string
noSmithyDocumentSerde
}
type ListTagsForResourceOutput struct {
// The list of tags that are associated with the resource.
Tags map[string]string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "ListTagsForResource",
}
}
| 126 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Returns a list of Amazon Managed Grafana workspaces in the account, with some
// information about each workspace. For more complete information about one
// workspace, use DescribeWorkspace (https://docs.aws.amazon.com/AAMG/latest/APIReference/API_DescribeWorkspace.html)
// .
func (c *Client) ListWorkspaces(ctx context.Context, params *ListWorkspacesInput, optFns ...func(*Options)) (*ListWorkspacesOutput, error) {
if params == nil {
params = &ListWorkspacesInput{}
}
result, metadata, err := c.invokeOperation(ctx, "ListWorkspaces", params, optFns, c.addOperationListWorkspacesMiddlewares)
if err != nil {
return nil, err
}
out := result.(*ListWorkspacesOutput)
out.ResultMetadata = metadata
return out, nil
}
type ListWorkspacesInput struct {
// The maximum number of workspaces to include in the results.
MaxResults *int32
// The token for the next set of workspaces to return. (You receive this token
// from a previous ListWorkspaces operation.)
NextToken *string
noSmithyDocumentSerde
}
type ListWorkspacesOutput struct {
// An array of structures that contain some information about the workspaces in
// the account.
//
// This member is required.
Workspaces []types.WorkspaceSummary
// The token to use when requesting the next set of workspaces.
NextToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationListWorkspacesMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpListWorkspaces{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListWorkspaces{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListWorkspaces(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
// ListWorkspacesAPIClient is a client that implements the ListWorkspaces
// operation.
type ListWorkspacesAPIClient interface {
ListWorkspaces(context.Context, *ListWorkspacesInput, ...func(*Options)) (*ListWorkspacesOutput, error)
}
var _ ListWorkspacesAPIClient = (*Client)(nil)
// ListWorkspacesPaginatorOptions is the paginator options for ListWorkspaces
type ListWorkspacesPaginatorOptions struct {
// The maximum number of workspaces to include in the results.
Limit int32
// Set to true if pagination should stop if the service returns a pagination token
// that matches the most recent token provided to the service.
StopOnDuplicateToken bool
}
// ListWorkspacesPaginator is a paginator for ListWorkspaces
type ListWorkspacesPaginator struct {
options ListWorkspacesPaginatorOptions
client ListWorkspacesAPIClient
params *ListWorkspacesInput
nextToken *string
firstPage bool
}
// NewListWorkspacesPaginator returns a new ListWorkspacesPaginator
func NewListWorkspacesPaginator(client ListWorkspacesAPIClient, params *ListWorkspacesInput, optFns ...func(*ListWorkspacesPaginatorOptions)) *ListWorkspacesPaginator {
if params == nil {
params = &ListWorkspacesInput{}
}
options := ListWorkspacesPaginatorOptions{}
if params.MaxResults != nil {
options.Limit = *params.MaxResults
}
for _, fn := range optFns {
fn(&options)
}
return &ListWorkspacesPaginator{
options: options,
client: client,
params: params,
firstPage: true,
nextToken: params.NextToken,
}
}
// HasMorePages returns a boolean indicating whether more pages are available
func (p *ListWorkspacesPaginator) HasMorePages() bool {
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
}
// NextPage retrieves the next ListWorkspaces page.
func (p *ListWorkspacesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListWorkspacesOutput, error) {
if !p.HasMorePages() {
return nil, fmt.Errorf("no more pages available")
}
params := *p.params
params.NextToken = p.nextToken
var limit *int32
if p.options.Limit > 0 {
limit = &p.options.Limit
}
params.MaxResults = limit
result, err := p.client.ListWorkspaces(ctx, ¶ms, optFns...)
if err != nil {
return nil, err
}
p.firstPage = false
prevToken := p.nextToken
p.nextToken = result.NextToken
if p.options.StopOnDuplicateToken &&
prevToken != nil &&
p.nextToken != nil &&
*prevToken == *p.nextToken {
p.nextToken = nil
}
return result, nil
}
func newServiceMetadataMiddleware_opListWorkspaces(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "ListWorkspaces",
}
}
| 224 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// The TagResource operation associates tags with an Amazon Managed Grafana
// resource. Currently, the only resource that can be tagged is workspaces. If you
// specify a new tag key for the resource, this tag is appended to the list of tags
// associated with the resource. If you specify a tag key that is already
// associated with the resource, the new tag value that you specify replaces the
// previous value for that tag.
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) {
if params == nil {
params = &TagResourceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*TagResourceOutput)
out.ResultMetadata = metadata
return out, nil
}
type TagResourceInput struct {
// The ARN of the resource the tag is associated with.
//
// This member is required.
ResourceArn *string
// The list of tag keys and values to associate with the resource. You can
// associate tag keys only, tags (key and values) only or a combination of tag keys
// and tags.
//
// This member is required.
Tags map[string]string
noSmithyDocumentSerde
}
type TagResourceOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpTagResourceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "TagResource",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// The UntagResource operation removes the association of the tag with the Amazon
// Managed Grafana resource.
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) {
if params == nil {
params = &UntagResourceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UntagResourceOutput)
out.ResultMetadata = metadata
return out, nil
}
type UntagResourceInput struct {
// The ARN of the resource the tag association is removed from.
//
// This member is required.
ResourceArn *string
// The key values of the tag to be removed from the resource.
//
// This member is required.
TagKeys []string
noSmithyDocumentSerde
}
type UntagResourceOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUntagResourceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "UntagResource",
}
}
| 126 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates which users in a workspace have the Grafana Admin or Editor roles.
func (c *Client) UpdatePermissions(ctx context.Context, params *UpdatePermissionsInput, optFns ...func(*Options)) (*UpdatePermissionsOutput, error) {
if params == nil {
params = &UpdatePermissionsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdatePermissions", params, optFns, c.addOperationUpdatePermissionsMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdatePermissionsOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdatePermissionsInput struct {
// An array of structures that contain the permission updates to make.
//
// This member is required.
UpdateInstructionBatch []types.UpdateInstruction
// The ID of the workspace to update.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type UpdatePermissionsOutput struct {
// An array of structures that contain the errors from the operation, if any.
//
// This member is required.
Errors []types.UpdateError
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdatePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdatePermissions{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdatePermissions{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdatePermissionsValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePermissions(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdatePermissions(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "UpdatePermissions",
}
}
| 132 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Modifies an existing Amazon Managed Grafana workspace. If you use this
// operation and omit any optional parameters, the existing values of those
// parameters are not changed. To modify the user authentication methods that the
// workspace uses, such as SAML or IAM Identity Center, use
// UpdateWorkspaceAuthentication (https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateWorkspaceAuthentication.html)
// . To modify which users in the workspace have the Admin and Editor Grafana
// roles, use UpdatePermissions (https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdatePermissions.html)
// .
func (c *Client) UpdateWorkspace(ctx context.Context, params *UpdateWorkspaceInput, optFns ...func(*Options)) (*UpdateWorkspaceOutput, error) {
if params == nil {
params = &UpdateWorkspaceInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateWorkspace", params, optFns, c.addOperationUpdateWorkspaceMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateWorkspaceOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateWorkspaceInput struct {
// The ID of the workspace to update.
//
// This member is required.
WorkspaceId *string
// Specifies whether the workspace can access Amazon Web Services resources in
// this Amazon Web Services account only, or whether it can also access Amazon Web
// Services resources in other accounts in the same organization. If you specify
// ORGANIZATION , you must specify which organizational units the workspace can
// access in the workspaceOrganizationalUnits parameter.
AccountAccessType types.AccountAccessType
// The configuration settings for network access to your workspace. When this is
// configured, only listed IP addresses and VPC endpoints will be able to access
// your workspace. Standard Grafana authentication and authorization will still be
// required. If this is not configured, or is removed, then all IP addresses and
// VPC endpoints will be allowed. Standard Grafana authentication and authorization
// will still be required.
NetworkAccessControl *types.NetworkAccessConfiguration
// The name of an IAM role that already exists to use to access resources through
// Organizations. This can only be used with a workspace that has the
// permissionType set to CUSTOMER_MANAGED .
OrganizationRoleName *string
// Use this parameter if you want to change a workspace from SERVICE_MANAGED to
// CUSTOMER_MANAGED . This allows you to manage the permissions that the workspace
// uses to access datasources and notification channels. If the workspace is in a
// member Amazon Web Services account of an organization, and that account is not a
// delegated administrator account, and you want the workspace to access data
// sources in other Amazon Web Services accounts in the organization, you must
// choose CUSTOMER_MANAGED . If you specify this as CUSTOMER_MANAGED , you must
// also specify a workspaceRoleArn that the workspace will use for accessing
// Amazon Web Services resources. For more information on the role and permissions
// needed, see Amazon Managed Grafana permissions and policies for Amazon Web
// Services data sources and notification channels (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html)
// Do not use this to convert a CUSTOMER_MANAGED workspace to SERVICE_MANAGED . Do
// not include this parameter if you want to leave the workspace as SERVICE_MANAGED
// . You can convert a CUSTOMER_MANAGED workspace to SERVICE_MANAGED using the
// Amazon Managed Grafana console. For more information, see Managing permissions
// for data sources and notification channels (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-datasource-and-notification.html)
// .
PermissionType types.PermissionType
// Whether to remove the network access configuration from the workspace. Setting
// this to true and providing a networkAccessControl to set will return an error.
// If you remove this configuration by setting this to true , then all IP addresses
// and VPC endpoints will be allowed. Standard Grafana authentication and
// authorization will still be required.
RemoveNetworkAccessConfiguration *bool
// Whether to remove the VPC configuration from the workspace. Setting this to true
// and providing a vpcConfiguration to set will return an error.
RemoveVpcConfiguration *bool
// The name of the CloudFormation stack set to use to generate IAM roles to be
// used for this workspace.
StackSetName *string
// The configuration settings for an Amazon VPC that contains data sources for
// your Grafana workspace to connect to.
VpcConfiguration *types.VpcConfiguration
// This parameter is for internal use only, and should not be used.
WorkspaceDataSources []types.DataSourceType
// A description for the workspace. This is used only to help you identify this
// workspace.
WorkspaceDescription *string
// A new name for the workspace to update.
WorkspaceName *string
// Specify the Amazon Web Services notification channels that you plan to use in
// this workspace. Specifying these data sources here enables Amazon Managed
// Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to
// use these channels.
WorkspaceNotificationDestinations []types.NotificationDestinationType
// Specifies the organizational units that this workspace is allowed to use data
// sources from, if this workspace is in an account that is part of an
// organization.
WorkspaceOrganizationalUnits []string
// Specifies an IAM role that grants permissions to Amazon Web Services resources
// that the workspace accesses, such as data sources and notification channels. If
// this workspace has permissionType CUSTOMER_MANAGED , then this role is required.
WorkspaceRoleArn *string
noSmithyDocumentSerde
}
type UpdateWorkspaceOutput struct {
// A structure containing data about the workspace that was created.
//
// This member is required.
Workspace *types.WorkspaceDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateWorkspaceMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateWorkspace{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateWorkspace{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateWorkspaceValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateWorkspace(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateWorkspace(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "UpdateWorkspace",
}
}
| 218 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Use this operation to define the identity provider (IdP) that this workspace
// authenticates users from, using SAML. You can also map SAML assertion attributes
// to workspace user information and define which groups in the assertion attribute
// are to have the Admin and Editor roles in the workspace. Changes to the
// authentication method for a workspace may take a few minutes to take effect.
func (c *Client) UpdateWorkspaceAuthentication(ctx context.Context, params *UpdateWorkspaceAuthenticationInput, optFns ...func(*Options)) (*UpdateWorkspaceAuthenticationOutput, error) {
if params == nil {
params = &UpdateWorkspaceAuthenticationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateWorkspaceAuthentication", params, optFns, c.addOperationUpdateWorkspaceAuthenticationMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateWorkspaceAuthenticationOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateWorkspaceAuthenticationInput struct {
// Specifies whether this workspace uses SAML 2.0, IAM Identity Center (successor
// to Single Sign-On), or both to authenticate users for using the Grafana console
// within a workspace. For more information, see User authentication in Amazon
// Managed Grafana (https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html)
// .
//
// This member is required.
AuthenticationProviders []types.AuthenticationProviderTypes
// The ID of the workspace to update the authentication for.
//
// This member is required.
WorkspaceId *string
// If the workspace uses SAML, use this structure to map SAML assertion attributes
// to workspace user information and define which groups in the assertion attribute
// are to have the Admin and Editor roles in the workspace.
SamlConfiguration *types.SamlConfiguration
noSmithyDocumentSerde
}
type UpdateWorkspaceAuthenticationOutput struct {
// A structure that describes the user authentication for this workspace after the
// update is made.
//
// This member is required.
Authentication *types.AuthenticationDescription
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateWorkspaceAuthenticationMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateWorkspaceAuthentication{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateWorkspaceAuthentication{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateWorkspaceAuthenticationValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateWorkspaceAuthentication(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateWorkspaceAuthentication(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "UpdateWorkspaceAuthentication",
}
}
| 146 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Updates the configuration string for the given workspace
func (c *Client) UpdateWorkspaceConfiguration(ctx context.Context, params *UpdateWorkspaceConfigurationInput, optFns ...func(*Options)) (*UpdateWorkspaceConfigurationOutput, error) {
if params == nil {
params = &UpdateWorkspaceConfigurationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "UpdateWorkspaceConfiguration", params, optFns, c.addOperationUpdateWorkspaceConfigurationMiddlewares)
if err != nil {
return nil, err
}
out := result.(*UpdateWorkspaceConfigurationOutput)
out.ResultMetadata = metadata
return out, nil
}
type UpdateWorkspaceConfigurationInput struct {
// The new configuration string for the workspace. For more information about the
// format and configuration options available, see Working in your Grafana
// workspace (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html)
// .
//
// This value conforms to the media type: application/json
//
// This member is required.
Configuration *string
// The ID of the workspace to update.
//
// This member is required.
WorkspaceId *string
noSmithyDocumentSerde
}
type UpdateWorkspaceConfigurationOutput struct {
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationUpdateWorkspaceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateWorkspaceConfiguration{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateWorkspaceConfiguration{}, middleware.After)
if err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil {
return err
}
if err = addRetryMiddlewares(stack, options); err != nil {
return err
}
if err = addHTTPSignerV4Middleware(stack, options); err != nil {
return err
}
if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil {
return err
}
if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addOpUpdateWorkspaceConfigurationValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateWorkspaceConfiguration(options.Region), middleware.Before); err != nil {
return err
}
if err = awsmiddleware.AddRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opUpdateWorkspaceConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
SigningName: "grafana",
OperationName: "UpdateWorkspaceConfiguration",
}
}
| 130 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"bytes"
"context"
"encoding/json"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws/protocol/restjson"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
smithy "github.com/aws/smithy-go"
smithyio "github.com/aws/smithy-go/io"
"github.com/aws/smithy-go/middleware"
"github.com/aws/smithy-go/ptr"
smithytime "github.com/aws/smithy-go/time"
smithyhttp "github.com/aws/smithy-go/transport/http"
"io"
"strconv"
"strings"
)
type awsRestjson1_deserializeOpAssociateLicense struct {
}
func (*awsRestjson1_deserializeOpAssociateLicense) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpAssociateLicense) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorAssociateLicense(response, &metadata)
}
output := &AssociateLicenseOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentAssociateLicenseOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorAssociateLicense(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentAssociateLicenseOutput(v **AssociateLicenseOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *AssociateLicenseOutput
if *v == nil {
sv = &AssociateLicenseOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "workspace":
if err := awsRestjson1_deserializeDocumentWorkspaceDescription(&sv.Workspace, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpCreateWorkspace struct {
}
func (*awsRestjson1_deserializeOpCreateWorkspace) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpCreateWorkspace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorCreateWorkspace(response, &metadata)
}
output := &CreateWorkspaceOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentCreateWorkspaceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorCreateWorkspace(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsRestjson1_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ServiceQuotaExceededException", errorCode):
return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentCreateWorkspaceOutput(v **CreateWorkspaceOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *CreateWorkspaceOutput
if *v == nil {
sv = &CreateWorkspaceOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "workspace":
if err := awsRestjson1_deserializeDocumentWorkspaceDescription(&sv.Workspace, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpCreateWorkspaceApiKey struct {
}
func (*awsRestjson1_deserializeOpCreateWorkspaceApiKey) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpCreateWorkspaceApiKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorCreateWorkspaceApiKey(response, &metadata)
}
output := &CreateWorkspaceApiKeyOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentCreateWorkspaceApiKeyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorCreateWorkspaceApiKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsRestjson1_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ServiceQuotaExceededException", errorCode):
return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentCreateWorkspaceApiKeyOutput(v **CreateWorkspaceApiKeyOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *CreateWorkspaceApiKeyOutput
if *v == nil {
sv = &CreateWorkspaceApiKeyOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "key":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected ApiKeyToken to be of type string, got %T instead", value)
}
sv.Key = ptr.String(jtv)
}
case "keyName":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected ApiKeyName to be of type string, got %T instead", value)
}
sv.KeyName = ptr.String(jtv)
}
case "workspaceId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value)
}
sv.WorkspaceId = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpDeleteWorkspace struct {
}
func (*awsRestjson1_deserializeOpDeleteWorkspace) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpDeleteWorkspace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorDeleteWorkspace(response, &metadata)
}
output := &DeleteWorkspaceOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentDeleteWorkspaceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorDeleteWorkspace(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsRestjson1_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentDeleteWorkspaceOutput(v **DeleteWorkspaceOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *DeleteWorkspaceOutput
if *v == nil {
sv = &DeleteWorkspaceOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "workspace":
if err := awsRestjson1_deserializeDocumentWorkspaceDescription(&sv.Workspace, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpDeleteWorkspaceApiKey struct {
}
func (*awsRestjson1_deserializeOpDeleteWorkspaceApiKey) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpDeleteWorkspaceApiKey) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorDeleteWorkspaceApiKey(response, &metadata)
}
output := &DeleteWorkspaceApiKeyOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentDeleteWorkspaceApiKeyOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorDeleteWorkspaceApiKey(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsRestjson1_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentDeleteWorkspaceApiKeyOutput(v **DeleteWorkspaceApiKeyOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *DeleteWorkspaceApiKeyOutput
if *v == nil {
sv = &DeleteWorkspaceApiKeyOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "keyName":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected ApiKeyName to be of type string, got %T instead", value)
}
sv.KeyName = ptr.String(jtv)
}
case "workspaceId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value)
}
sv.WorkspaceId = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpDescribeWorkspace struct {
}
func (*awsRestjson1_deserializeOpDescribeWorkspace) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpDescribeWorkspace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorDescribeWorkspace(response, &metadata)
}
output := &DescribeWorkspaceOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentDescribeWorkspaceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorDescribeWorkspace(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentDescribeWorkspaceOutput(v **DescribeWorkspaceOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *DescribeWorkspaceOutput
if *v == nil {
sv = &DescribeWorkspaceOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "workspace":
if err := awsRestjson1_deserializeDocumentWorkspaceDescription(&sv.Workspace, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpDescribeWorkspaceAuthentication struct {
}
func (*awsRestjson1_deserializeOpDescribeWorkspaceAuthentication) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpDescribeWorkspaceAuthentication) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorDescribeWorkspaceAuthentication(response, &metadata)
}
output := &DescribeWorkspaceAuthenticationOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentDescribeWorkspaceAuthenticationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorDescribeWorkspaceAuthentication(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentDescribeWorkspaceAuthenticationOutput(v **DescribeWorkspaceAuthenticationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *DescribeWorkspaceAuthenticationOutput
if *v == nil {
sv = &DescribeWorkspaceAuthenticationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "authentication":
if err := awsRestjson1_deserializeDocumentAuthenticationDescription(&sv.Authentication, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpDescribeWorkspaceConfiguration struct {
}
func (*awsRestjson1_deserializeOpDescribeWorkspaceConfiguration) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpDescribeWorkspaceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorDescribeWorkspaceConfiguration(response, &metadata)
}
output := &DescribeWorkspaceConfigurationOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentDescribeWorkspaceConfigurationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorDescribeWorkspaceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentDescribeWorkspaceConfigurationOutput(v **DescribeWorkspaceConfigurationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *DescribeWorkspaceConfigurationOutput
if *v == nil {
sv = &DescribeWorkspaceConfigurationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "configuration":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected OverridableConfigurationJson to be of type string, got %T instead", value)
}
sv.Configuration = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpDisassociateLicense struct {
}
func (*awsRestjson1_deserializeOpDisassociateLicense) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpDisassociateLicense) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorDisassociateLicense(response, &metadata)
}
output := &DisassociateLicenseOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentDisassociateLicenseOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorDisassociateLicense(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentDisassociateLicenseOutput(v **DisassociateLicenseOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *DisassociateLicenseOutput
if *v == nil {
sv = &DisassociateLicenseOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "workspace":
if err := awsRestjson1_deserializeDocumentWorkspaceDescription(&sv.Workspace, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpListPermissions struct {
}
func (*awsRestjson1_deserializeOpListPermissions) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpListPermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorListPermissions(response, &metadata)
}
output := &ListPermissionsOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentListPermissionsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorListPermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentListPermissionsOutput(v **ListPermissionsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *ListPermissionsOutput
if *v == nil {
sv = &ListPermissionsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "nextToken":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value)
}
sv.NextToken = ptr.String(jtv)
}
case "permissions":
if err := awsRestjson1_deserializeDocumentPermissionEntryList(&sv.Permissions, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpListTagsForResource struct {
}
func (*awsRestjson1_deserializeOpListTagsForResource) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata)
}
output := &ListTagsForResourceOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *ListTagsForResourceOutput
if *v == nil {
sv = &ListTagsForResourceOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "tags":
if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpListWorkspaces struct {
}
func (*awsRestjson1_deserializeOpListWorkspaces) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpListWorkspaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorListWorkspaces(response, &metadata)
}
output := &ListWorkspacesOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentListWorkspacesOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorListWorkspaces(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentListWorkspacesOutput(v **ListWorkspacesOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *ListWorkspacesOutput
if *v == nil {
sv = &ListWorkspacesOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "nextToken":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value)
}
sv.NextToken = ptr.String(jtv)
}
case "workspaces":
if err := awsRestjson1_deserializeDocumentWorkspaceList(&sv.Workspaces, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpTagResource struct {
}
func (*awsRestjson1_deserializeOpTagResource) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata)
}
output := &TagResourceOutput{}
out.Result = output
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
type awsRestjson1_deserializeOpUntagResource struct {
}
func (*awsRestjson1_deserializeOpUntagResource) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata)
}
output := &UntagResourceOutput{}
out.Result = output
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
type awsRestjson1_deserializeOpUpdatePermissions struct {
}
func (*awsRestjson1_deserializeOpUpdatePermissions) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpUpdatePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorUpdatePermissions(response, &metadata)
}
output := &UpdatePermissionsOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentUpdatePermissionsOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorUpdatePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentUpdatePermissionsOutput(v **UpdatePermissionsOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *UpdatePermissionsOutput
if *v == nil {
sv = &UpdatePermissionsOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "errors":
if err := awsRestjson1_deserializeDocumentUpdateErrorList(&sv.Errors, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpUpdateWorkspace struct {
}
func (*awsRestjson1_deserializeOpUpdateWorkspace) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpUpdateWorkspace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorUpdateWorkspace(response, &metadata)
}
output := &UpdateWorkspaceOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentUpdateWorkspaceOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorUpdateWorkspace(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsRestjson1_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentUpdateWorkspaceOutput(v **UpdateWorkspaceOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *UpdateWorkspaceOutput
if *v == nil {
sv = &UpdateWorkspaceOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "workspace":
if err := awsRestjson1_deserializeDocumentWorkspaceDescription(&sv.Workspace, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpUpdateWorkspaceAuthentication struct {
}
func (*awsRestjson1_deserializeOpUpdateWorkspaceAuthentication) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpUpdateWorkspaceAuthentication) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorUpdateWorkspaceAuthentication(response, &metadata)
}
output := &UpdateWorkspaceAuthenticationOutput{}
out.Result = output
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(response.Body, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return out, metadata, err
}
err = awsRestjson1_deserializeOpDocumentUpdateWorkspaceAuthenticationOutput(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
return out, metadata, &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err),
Snapshot: snapshot.Bytes(),
}
}
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorUpdateWorkspaceAuthentication(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsRestjson1_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpDocumentUpdateWorkspaceAuthenticationOutput(v **UpdateWorkspaceAuthenticationOutput, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *UpdateWorkspaceAuthenticationOutput
if *v == nil {
sv = &UpdateWorkspaceAuthenticationOutput{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "authentication":
if err := awsRestjson1_deserializeDocumentAuthenticationDescription(&sv.Authentication, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
type awsRestjson1_deserializeOpUpdateWorkspaceConfiguration struct {
}
func (*awsRestjson1_deserializeOpUpdateWorkspaceConfiguration) ID() string {
return "OperationDeserializer"
}
func (m *awsRestjson1_deserializeOpUpdateWorkspaceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
) {
out, metadata, err = next.HandleDeserialize(ctx, in)
if err != nil {
return out, metadata, err
}
response, ok := out.RawResponse.(*smithyhttp.Response)
if !ok {
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
}
if response.StatusCode < 200 || response.StatusCode >= 300 {
return out, metadata, awsRestjson1_deserializeOpErrorUpdateWorkspaceConfiguration(response, &metadata)
}
output := &UpdateWorkspaceConfigurationOutput{}
out.Result = output
return out, metadata, err
}
func awsRestjson1_deserializeOpErrorUpdateWorkspaceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error {
var errorBuffer bytes.Buffer
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
}
errorBody := bytes.NewReader(errorBuffer.Bytes())
errorCode := "UnknownError"
errorMessage := errorCode
headerCode := response.Header.Get("X-Amzn-ErrorType")
if len(headerCode) != 0 {
errorCode = restjson.SanitizeErrorCode(headerCode)
}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
jsonCode, message, err := restjson.GetErrorInfo(decoder)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if len(headerCode) == 0 && len(jsonCode) != 0 {
errorCode = restjson.SanitizeErrorCode(jsonCode)
}
if len(message) != 0 {
errorMessage = message
}
switch {
case strings.EqualFold("AccessDeniedException", errorCode):
return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody)
case strings.EqualFold("ConflictException", errorCode):
return awsRestjson1_deserializeErrorConflictException(response, errorBody)
case strings.EqualFold("InternalServerException", errorCode):
return awsRestjson1_deserializeErrorInternalServerException(response, errorBody)
case strings.EqualFold("ResourceNotFoundException", errorCode):
return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody)
case strings.EqualFold("ThrottlingException", errorCode):
return awsRestjson1_deserializeErrorThrottlingException(response, errorBody)
case strings.EqualFold("ValidationException", errorCode):
return awsRestjson1_deserializeErrorValidationException(response, errorBody)
default:
genericError := &smithy.GenericAPIError{
Code: errorCode,
Message: errorMessage,
}
return genericError
}
}
func awsRestjson1_deserializeOpHttpBindingsInternalServerException(v *types.InternalServerException, response *smithyhttp.Response) error {
if v == nil {
return fmt.Errorf("unsupported deserialization for nil %T", v)
}
if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 {
headerValues[0] = strings.TrimSpace(headerValues[0])
vv, err := strconv.ParseInt(headerValues[0], 0, 32)
if err != nil {
return err
}
v.RetryAfterSeconds = ptr.Int32(int32(vv))
}
return nil
}
func awsRestjson1_deserializeOpHttpBindingsThrottlingException(v *types.ThrottlingException, response *smithyhttp.Response) error {
if v == nil {
return fmt.Errorf("unsupported deserialization for nil %T", v)
}
if headerValues := response.Header.Values("Retry-After"); len(headerValues) != 0 {
headerValues[0] = strings.TrimSpace(headerValues[0])
vv, err := strconv.ParseInt(headerValues[0], 0, 32)
if err != nil {
return err
}
v.RetryAfterSeconds = ptr.Int32(int32(vv))
}
return nil
}
func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
output := &types.AccessDeniedException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
return output
}
func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
output := &types.ConflictException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
err := awsRestjson1_deserializeDocumentConflictException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
return output
}
func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
output := &types.InternalServerException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if err := awsRestjson1_deserializeOpHttpBindingsInternalServerException(output, response); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)}
}
return output
}
func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
output := &types.ResourceNotFoundException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
return output
}
func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
output := &types.ServiceQuotaExceededException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
return output
}
func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
output := &types.ThrottlingException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
if err := awsRestjson1_deserializeOpHttpBindingsThrottlingException(output, response); err != nil {
return &smithy.DeserializationError{Err: fmt.Errorf("failed to decode response error with invalid HTTP bindings, %w", err)}
}
return output
}
func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error {
output := &types.ValidationException{}
var buff [1024]byte
ringBuffer := smithyio.NewRingBuffer(buff[:])
body := io.TeeReader(errorBody, ringBuffer)
decoder := json.NewDecoder(body)
decoder.UseNumber()
var shape interface{}
if err := decoder.Decode(&shape); err != nil && err != io.EOF {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
err := awsRestjson1_deserializeDocumentValidationException(&output, shape)
if err != nil {
var snapshot bytes.Buffer
io.Copy(&snapshot, ringBuffer)
err = &smithy.DeserializationError{
Err: fmt.Errorf("failed to decode response body, %w", err),
Snapshot: snapshot.Bytes(),
}
return err
}
errorBody.Seek(0, io.SeekStart)
return output
}
func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.AccessDeniedException
if *v == nil {
sv = &types.AccessDeniedException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentAllowedOrganizations(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []string
if *v == nil {
cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AllowedOrganization to be of type string, got %T instead", value)
}
col = jtv
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentAssertionAttributes(v **types.AssertionAttributes, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.AssertionAttributes
if *v == nil {
sv = &types.AssertionAttributes{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "email":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AssertionAttribute to be of type string, got %T instead", value)
}
sv.Email = ptr.String(jtv)
}
case "groups":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AssertionAttribute to be of type string, got %T instead", value)
}
sv.Groups = ptr.String(jtv)
}
case "login":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AssertionAttribute to be of type string, got %T instead", value)
}
sv.Login = ptr.String(jtv)
}
case "name":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AssertionAttribute to be of type string, got %T instead", value)
}
sv.Name = ptr.String(jtv)
}
case "org":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AssertionAttribute to be of type string, got %T instead", value)
}
sv.Org = ptr.String(jtv)
}
case "role":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AssertionAttribute to be of type string, got %T instead", value)
}
sv.Role = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentAuthenticationDescription(v **types.AuthenticationDescription, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.AuthenticationDescription
if *v == nil {
sv = &types.AuthenticationDescription{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "awsSso":
if err := awsRestjson1_deserializeDocumentAwsSsoAuthentication(&sv.AwsSso, value); err != nil {
return err
}
case "providers":
if err := awsRestjson1_deserializeDocumentAuthenticationProviders(&sv.Providers, value); err != nil {
return err
}
case "saml":
if err := awsRestjson1_deserializeDocumentSamlAuthentication(&sv.Saml, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentAuthenticationProviders(v *[]types.AuthenticationProviderTypes, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.AuthenticationProviderTypes
if *v == nil {
cv = []types.AuthenticationProviderTypes{}
} else {
cv = *v
}
for _, value := range shape {
var col types.AuthenticationProviderTypes
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AuthenticationProviderTypes to be of type string, got %T instead", value)
}
col = types.AuthenticationProviderTypes(jtv)
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentAuthenticationSummary(v **types.AuthenticationSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.AuthenticationSummary
if *v == nil {
sv = &types.AuthenticationSummary{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "providers":
if err := awsRestjson1_deserializeDocumentAuthenticationProviders(&sv.Providers, value); err != nil {
return err
}
case "samlConfigurationStatus":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected SamlConfigurationStatus to be of type string, got %T instead", value)
}
sv.SamlConfigurationStatus = types.SamlConfigurationStatus(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentAwsSsoAuthentication(v **types.AwsSsoAuthentication, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.AwsSsoAuthentication
if *v == nil {
sv = &types.AwsSsoAuthentication{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "ssoClientId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected SSOClientId to be of type string, got %T instead", value)
}
sv.SsoClientId = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.ConflictException
if *v == nil {
sv = &types.ConflictException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
case "resourceId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ResourceId = ptr.String(jtv)
}
case "resourceType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ResourceType = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentDataSourceTypesList(v *[]types.DataSourceType, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.DataSourceType
if *v == nil {
cv = []types.DataSourceType{}
} else {
cv = *v
}
for _, value := range shape {
var col types.DataSourceType
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected DataSourceType to be of type string, got %T instead", value)
}
col = types.DataSourceType(jtv)
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentIdpMetadata(v *types.IdpMetadata, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var uv types.IdpMetadata
loop:
for key, value := range shape {
if value == nil {
continue
}
switch key {
case "url":
var mv string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected IdpMetadataUrl to be of type string, got %T instead", value)
}
mv = jtv
}
uv = &types.IdpMetadataMemberUrl{Value: mv}
break loop
case "xml":
var mv string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
mv = jtv
}
uv = &types.IdpMetadataMemberXml{Value: mv}
break loop
default:
uv = &types.UnknownUnionMember{Tag: key}
break loop
}
}
*v = uv
return nil
}
func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.InternalServerException
if *v == nil {
sv = &types.InternalServerException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
case "retryAfterSeconds":
if value != nil {
jtv, ok := value.(json.Number)
if !ok {
return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
}
i64, err := jtv.Int64()
if err != nil {
return err
}
sv.RetryAfterSeconds = ptr.Int32(int32(i64))
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentNetworkAccessConfiguration(v **types.NetworkAccessConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.NetworkAccessConfiguration
if *v == nil {
sv = &types.NetworkAccessConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "prefixListIds":
if err := awsRestjson1_deserializeDocumentPrefixListIds(&sv.PrefixListIds, value); err != nil {
return err
}
case "vpceIds":
if err := awsRestjson1_deserializeDocumentVpceIds(&sv.VpceIds, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentNotificationDestinationsList(v *[]types.NotificationDestinationType, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.NotificationDestinationType
if *v == nil {
cv = []types.NotificationDestinationType{}
} else {
cv = *v
}
for _, value := range shape {
var col types.NotificationDestinationType
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected NotificationDestinationType to be of type string, got %T instead", value)
}
col = types.NotificationDestinationType(jtv)
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentOrganizationalUnitList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []string
if *v == nil {
cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected OrganizationalUnit to be of type string, got %T instead", value)
}
col = jtv
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentPermissionEntry(v **types.PermissionEntry, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.PermissionEntry
if *v == nil {
sv = &types.PermissionEntry{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "role":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected Role to be of type string, got %T instead", value)
}
sv.Role = types.Role(jtv)
}
case "user":
if err := awsRestjson1_deserializeDocumentUser(&sv.User, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentPermissionEntryList(v *[]types.PermissionEntry, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.PermissionEntry
if *v == nil {
cv = []types.PermissionEntry{}
} else {
cv = *v
}
for _, value := range shape {
var col types.PermissionEntry
destAddr := &col
if err := awsRestjson1_deserializeDocumentPermissionEntry(&destAddr, value); err != nil {
return err
}
col = *destAddr
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentPrefixListIds(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []string
if *v == nil {
cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected PrefixListId to be of type string, got %T instead", value)
}
col = jtv
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.ResourceNotFoundException
if *v == nil {
sv = &types.ResourceNotFoundException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
case "resourceId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ResourceId = ptr.String(jtv)
}
case "resourceType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ResourceType = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentRoleValueList(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []string
if *v == nil {
cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected RoleValue to be of type string, got %T instead", value)
}
col = jtv
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentRoleValues(v **types.RoleValues, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.RoleValues
if *v == nil {
sv = &types.RoleValues{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "admin":
if err := awsRestjson1_deserializeDocumentRoleValueList(&sv.Admin, value); err != nil {
return err
}
case "editor":
if err := awsRestjson1_deserializeDocumentRoleValueList(&sv.Editor, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentSamlAuthentication(v **types.SamlAuthentication, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.SamlAuthentication
if *v == nil {
sv = &types.SamlAuthentication{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "configuration":
if err := awsRestjson1_deserializeDocumentSamlConfiguration(&sv.Configuration, value); err != nil {
return err
}
case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected SamlConfigurationStatus to be of type string, got %T instead", value)
}
sv.Status = types.SamlConfigurationStatus(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentSamlConfiguration(v **types.SamlConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.SamlConfiguration
if *v == nil {
sv = &types.SamlConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "allowedOrganizations":
if err := awsRestjson1_deserializeDocumentAllowedOrganizations(&sv.AllowedOrganizations, value); err != nil {
return err
}
case "assertionAttributes":
if err := awsRestjson1_deserializeDocumentAssertionAttributes(&sv.AssertionAttributes, value); err != nil {
return err
}
case "idpMetadata":
if err := awsRestjson1_deserializeDocumentIdpMetadata(&sv.IdpMetadata, value); err != nil {
return err
}
case "loginValidityDuration":
if value != nil {
jtv, ok := value.(json.Number)
if !ok {
return fmt.Errorf("expected LoginValidityDuration to be json.Number, got %T instead", value)
}
i64, err := jtv.Int64()
if err != nil {
return err
}
sv.LoginValidityDuration = int32(i64)
}
case "roleValues":
if err := awsRestjson1_deserializeDocumentRoleValues(&sv.RoleValues, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []string
if *v == nil {
cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected SecurityGroupId to be of type string, got %T instead", value)
}
col = jtv
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.ServiceQuotaExceededException
if *v == nil {
sv = &types.ServiceQuotaExceededException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
case "quotaCode":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.QuotaCode = ptr.String(jtv)
}
case "resourceId":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ResourceId = ptr.String(jtv)
}
case "resourceType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ResourceType = ptr.String(jtv)
}
case "serviceCode":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ServiceCode = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentSubnetIds(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []string
if *v == nil {
cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected SubnetId to be of type string, got %T instead", value)
}
col = jtv
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentTagMap(v *map[string]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var mv map[string]string
if *v == nil {
mv = map[string]string{}
} else {
mv = *v
}
for key, value := range shape {
var parsedVal string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected TagValue to be of type string, got %T instead", value)
}
parsedVal = jtv
}
mv[key] = parsedVal
}
*v = mv
return nil
}
func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.ThrottlingException
if *v == nil {
sv = &types.ThrottlingException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
case "quotaCode":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.QuotaCode = ptr.String(jtv)
}
case "retryAfterSeconds":
if value != nil {
jtv, ok := value.(json.Number)
if !ok {
return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
}
i64, err := jtv.Int64()
if err != nil {
return err
}
sv.RetryAfterSeconds = ptr.Int32(int32(i64))
}
case "serviceCode":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.ServiceCode = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentUpdateError(v **types.UpdateError, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.UpdateError
if *v == nil {
sv = &types.UpdateError{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "causedBy":
if err := awsRestjson1_deserializeDocumentUpdateInstruction(&sv.CausedBy, value); err != nil {
return err
}
case "code":
if value != nil {
jtv, ok := value.(json.Number)
if !ok {
return fmt.Errorf("expected Integer to be json.Number, got %T instead", value)
}
i64, err := jtv.Int64()
if err != nil {
return err
}
sv.Code = ptr.Int32(int32(i64))
}
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentUpdateErrorList(v *[]types.UpdateError, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.UpdateError
if *v == nil {
cv = []types.UpdateError{}
} else {
cv = *v
}
for _, value := range shape {
var col types.UpdateError
destAddr := &col
if err := awsRestjson1_deserializeDocumentUpdateError(&destAddr, value); err != nil {
return err
}
col = *destAddr
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentUpdateInstruction(v **types.UpdateInstruction, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.UpdateInstruction
if *v == nil {
sv = &types.UpdateInstruction{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "action":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected UpdateAction to be of type string, got %T instead", value)
}
sv.Action = types.UpdateAction(jtv)
}
case "role":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected Role to be of type string, got %T instead", value)
}
sv.Role = types.Role(jtv)
}
case "users":
if err := awsRestjson1_deserializeDocumentUserList(&sv.Users, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentUser(v **types.User, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.User
if *v == nil {
sv = &types.User{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "id":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected SsoId to be of type string, got %T instead", value)
}
sv.Id = ptr.String(jtv)
}
case "type":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected UserType to be of type string, got %T instead", value)
}
sv.Type = types.UserType(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentUserList(v *[]types.User, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.User
if *v == nil {
cv = []types.User{}
} else {
cv = *v
}
for _, value := range shape {
var col types.User
destAddr := &col
if err := awsRestjson1_deserializeDocumentUser(&destAddr, value); err != nil {
return err
}
col = *destAddr
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.ValidationException
if *v == nil {
sv = &types.ValidationException{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "fieldList":
if err := awsRestjson1_deserializeDocumentValidationExceptionFieldList(&sv.FieldList, value); err != nil {
return err
}
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
case "reason":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected ValidationExceptionReason to be of type string, got %T instead", value)
}
sv.Reason = types.ValidationExceptionReason(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentValidationExceptionField(v **types.ValidationExceptionField, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.ValidationExceptionField
if *v == nil {
sv = &types.ValidationExceptionField{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "message":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Message = ptr.String(jtv)
}
case "name":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected String to be of type string, got %T instead", value)
}
sv.Name = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentValidationExceptionFieldList(v *[]types.ValidationExceptionField, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.ValidationExceptionField
if *v == nil {
cv = []types.ValidationExceptionField{}
} else {
cv = *v
}
for _, value := range shape {
var col types.ValidationExceptionField
destAddr := &col
if err := awsRestjson1_deserializeDocumentValidationExceptionField(&destAddr, value); err != nil {
return err
}
col = *destAddr
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentVpcConfiguration(v **types.VpcConfiguration, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.VpcConfiguration
if *v == nil {
sv = &types.VpcConfiguration{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "securityGroupIds":
if err := awsRestjson1_deserializeDocumentSecurityGroupIds(&sv.SecurityGroupIds, value); err != nil {
return err
}
case "subnetIds":
if err := awsRestjson1_deserializeDocumentSubnetIds(&sv.SubnetIds, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentVpceIds(v *[]string, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []string
if *v == nil {
cv = []string{}
} else {
cv = *v
}
for _, value := range shape {
var col string
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected VpceId to be of type string, got %T instead", value)
}
col = jtv
}
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentWorkspaceDescription(v **types.WorkspaceDescription, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.WorkspaceDescription
if *v == nil {
sv = &types.WorkspaceDescription{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "accountAccessType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected AccountAccessType to be of type string, got %T instead", value)
}
sv.AccountAccessType = types.AccountAccessType(jtv)
}
case "authentication":
if err := awsRestjson1_deserializeDocumentAuthenticationSummary(&sv.Authentication, value); err != nil {
return err
}
case "created":
if value != nil {
switch jtv := value.(type) {
case json.Number:
f64, err := jtv.Float64()
if err != nil {
return err
}
sv.Created = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
case "dataSources":
if err := awsRestjson1_deserializeDocumentDataSourceTypesList(&sv.DataSources, value); err != nil {
return err
}
case "description":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected Description to be of type string, got %T instead", value)
}
sv.Description = ptr.String(jtv)
}
case "endpoint":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected Endpoint to be of type string, got %T instead", value)
}
sv.Endpoint = ptr.String(jtv)
}
case "freeTrialConsumed":
if value != nil {
jtv, ok := value.(bool)
if !ok {
return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value)
}
sv.FreeTrialConsumed = ptr.Bool(jtv)
}
case "freeTrialExpiration":
if value != nil {
switch jtv := value.(type) {
case json.Number:
f64, err := jtv.Float64()
if err != nil {
return err
}
sv.FreeTrialExpiration = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
case "grafanaVersion":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected GrafanaVersion to be of type string, got %T instead", value)
}
sv.GrafanaVersion = ptr.String(jtv)
}
case "id":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value)
}
sv.Id = ptr.String(jtv)
}
case "licenseExpiration":
if value != nil {
switch jtv := value.(type) {
case json.Number:
f64, err := jtv.Float64()
if err != nil {
return err
}
sv.LicenseExpiration = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
case "licenseType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected LicenseType to be of type string, got %T instead", value)
}
sv.LicenseType = types.LicenseType(jtv)
}
case "modified":
if value != nil {
switch jtv := value.(type) {
case json.Number:
f64, err := jtv.Float64()
if err != nil {
return err
}
sv.Modified = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
case "name":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceName to be of type string, got %T instead", value)
}
sv.Name = ptr.String(jtv)
}
case "networkAccessControl":
if err := awsRestjson1_deserializeDocumentNetworkAccessConfiguration(&sv.NetworkAccessControl, value); err != nil {
return err
}
case "notificationDestinations":
if err := awsRestjson1_deserializeDocumentNotificationDestinationsList(&sv.NotificationDestinations, value); err != nil {
return err
}
case "organizationalUnits":
if err := awsRestjson1_deserializeDocumentOrganizationalUnitList(&sv.OrganizationalUnits, value); err != nil {
return err
}
case "organizationRoleName":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected OrganizationRoleName to be of type string, got %T instead", value)
}
sv.OrganizationRoleName = ptr.String(jtv)
}
case "permissionType":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected PermissionType to be of type string, got %T instead", value)
}
sv.PermissionType = types.PermissionType(jtv)
}
case "stackSetName":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected StackSetName to be of type string, got %T instead", value)
}
sv.StackSetName = ptr.String(jtv)
}
case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceStatus to be of type string, got %T instead", value)
}
sv.Status = types.WorkspaceStatus(jtv)
}
case "tags":
if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
return err
}
case "vpcConfiguration":
if err := awsRestjson1_deserializeDocumentVpcConfiguration(&sv.VpcConfiguration, value); err != nil {
return err
}
case "workspaceRoleArn":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value)
}
sv.WorkspaceRoleArn = ptr.String(jtv)
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
func awsRestjson1_deserializeDocumentWorkspaceList(v *[]types.WorkspaceSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.([]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var cv []types.WorkspaceSummary
if *v == nil {
cv = []types.WorkspaceSummary{}
} else {
cv = *v
}
for _, value := range shape {
var col types.WorkspaceSummary
destAddr := &col
if err := awsRestjson1_deserializeDocumentWorkspaceSummary(&destAddr, value); err != nil {
return err
}
col = *destAddr
cv = append(cv, col)
}
*v = cv
return nil
}
func awsRestjson1_deserializeDocumentWorkspaceSummary(v **types.WorkspaceSummary, value interface{}) error {
if v == nil {
return fmt.Errorf("unexpected nil of type %T", v)
}
if value == nil {
return nil
}
shape, ok := value.(map[string]interface{})
if !ok {
return fmt.Errorf("unexpected JSON type %v", value)
}
var sv *types.WorkspaceSummary
if *v == nil {
sv = &types.WorkspaceSummary{}
} else {
sv = *v
}
for key, value := range shape {
switch key {
case "authentication":
if err := awsRestjson1_deserializeDocumentAuthenticationSummary(&sv.Authentication, value); err != nil {
return err
}
case "created":
if value != nil {
switch jtv := value.(type) {
case json.Number:
f64, err := jtv.Float64()
if err != nil {
return err
}
sv.Created = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
case "description":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected Description to be of type string, got %T instead", value)
}
sv.Description = ptr.String(jtv)
}
case "endpoint":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected Endpoint to be of type string, got %T instead", value)
}
sv.Endpoint = ptr.String(jtv)
}
case "grafanaVersion":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected GrafanaVersion to be of type string, got %T instead", value)
}
sv.GrafanaVersion = ptr.String(jtv)
}
case "id":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceId to be of type string, got %T instead", value)
}
sv.Id = ptr.String(jtv)
}
case "modified":
if value != nil {
switch jtv := value.(type) {
case json.Number:
f64, err := jtv.Float64()
if err != nil {
return err
}
sv.Modified = ptr.Time(smithytime.ParseEpochSeconds(f64))
default:
return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value)
}
}
case "name":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceName to be of type string, got %T instead", value)
}
sv.Name = ptr.String(jtv)
}
case "notificationDestinations":
if err := awsRestjson1_deserializeDocumentNotificationDestinationsList(&sv.NotificationDestinations, value); err != nil {
return err
}
case "status":
if value != nil {
jtv, ok := value.(string)
if !ok {
return fmt.Errorf("expected WorkspaceStatus to be of type string, got %T instead", value)
}
sv.Status = types.WorkspaceStatus(jtv)
}
case "tags":
if err := awsRestjson1_deserializeDocumentTagMap(&sv.Tags, value); err != nil {
return err
}
default:
_, _ = key, value
}
}
*v = sv
return nil
}
| 5,168 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
// Package grafana provides the API client, operations, and parameter types for
// Amazon Managed Grafana.
//
// Amazon Managed Grafana is a fully managed and secure data visualization service
// that you can use to instantly query, correlate, and visualize operational
// metrics, logs, and traces from multiple sources. Amazon Managed Grafana makes it
// easy to deploy, operate, and scale Grafana, a widely deployed data visualization
// tool that is popular for its extensible data support. With Amazon Managed
// Grafana, you create logically isolated Grafana servers called workspaces. In a
// workspace, you can create Grafana dashboards and visualizations to analyze your
// metrics, logs, and traces without having to build, package, or deploy any
// hardware to run Grafana servers.
package grafana
| 16 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
"errors"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
internalendpoints "github.com/aws/aws-sdk-go-v2/service/grafana/internal/endpoints"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"net/url"
"strings"
)
// EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverOptions = internalendpoints.Options
// EndpointResolver interface for resolving service endpoints.
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
var _ EndpointResolver = &internalendpoints.Resolver{}
// NewDefaultEndpointResolver constructs a new service endpoint resolver
func NewDefaultEndpointResolver() *internalendpoints.Resolver {
return internalendpoints.New()
}
// EndpointResolverFunc is a helper utility that wraps a function so it satisfies
// the EndpointResolver interface. This is useful when you want to add additional
// endpoint resolving logic, or stub out specific endpoints with custom values.
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
return fn(region, options)
}
func resolveDefaultEndpointConfiguration(o *Options) {
if o.EndpointResolver != nil {
return
}
o.EndpointResolver = NewDefaultEndpointResolver()
}
// EndpointResolverFromURL returns an EndpointResolver configured using the
// provided endpoint url. By default, the resolved endpoint resolver uses the
// client region as signing region, and the endpoint source is set to
// EndpointSourceCustom.You can provide functional options to configure endpoint
// values for the resolved endpoint.
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver {
e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom}
for _, fn := range optFns {
fn(&e)
}
return EndpointResolverFunc(
func(region string, options EndpointResolverOptions) (aws.Endpoint, error) {
if len(e.SigningRegion) == 0 {
e.SigningRegion = region
}
return e, nil
},
)
}
type ResolveEndpoint struct {
Resolver EndpointResolver
Options EndpointResolverOptions
}
func (*ResolveEndpoint) ID() string {
return "ResolveEndpoint"
}
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
req, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
}
if m.Resolver == nil {
return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
}
eo := m.Options
eo.Logger = middleware.GetLogger(ctx)
var endpoint aws.Endpoint
endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo)
if err != nil {
return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
}
req.URL, err = url.Parse(endpoint.URL)
if err != nil {
return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err)
}
if len(awsmiddleware.GetSigningName(ctx)) == 0 {
signingName := endpoint.SigningName
if len(signingName) == 0 {
signingName = "grafana"
}
ctx = awsmiddleware.SetSigningName(ctx, signingName)
}
ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source)
ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable)
ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion)
ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID)
return next.HandleSerialize(ctx, in)
}
func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error {
return stack.Serialize.Insert(&ResolveEndpoint{
Resolver: o.EndpointResolver,
Options: o.EndpointOptions,
}, "OperationSerializer", middleware.Before)
}
func removeResolveEndpointMiddleware(stack *middleware.Stack) error {
_, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID())
return err
}
type wrappedEndpointResolver struct {
awsResolver aws.EndpointResolverWithOptions
resolver EndpointResolver
}
func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
if w.awsResolver == nil {
goto fallback
}
endpoint, err = w.awsResolver.ResolveEndpoint(ServiceID, region, options)
if err == nil {
return endpoint, nil
}
if nf := (&aws.EndpointNotFoundError{}); !errors.As(err, &nf) {
return endpoint, err
}
fallback:
if w.resolver == nil {
return endpoint, fmt.Errorf("default endpoint resolver provided was nil")
}
return w.resolver.ResolveEndpoint(region, options)
}
type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error)
func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) {
return a(service, region)
}
var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil)
// withEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver.
// If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided
// fallbackResolver for resolution.
//
// fallbackResolver must not be nil
func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions, fallbackResolver EndpointResolver) EndpointResolver {
var resolver aws.EndpointResolverWithOptions
if awsResolverWithOptions != nil {
resolver = awsResolverWithOptions
} else if awsResolver != nil {
resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint)
}
return &wrappedEndpointResolver{
awsResolver: resolver,
resolver: fallbackResolver,
}
}
func finalizeClientEndpointResolverOptions(options *Options) {
options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage()
if len(options.EndpointOptions.ResolvedRegion) == 0 {
const fipsInfix = "-fips-"
const fipsPrefix = "fips-"
const fipsSuffix = "-fips"
if strings.Contains(options.Region, fipsInfix) ||
strings.Contains(options.Region, fipsPrefix) ||
strings.Contains(options.Region, fipsSuffix) {
options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(
options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "")
options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled
}
}
}
| 201 |
aws-sdk-go-v2 | aws | Go | // Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
package grafana
// goModuleVersion is the tagged release for this module
const goModuleVersion = "1.13.3"
| 7 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
| 4 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"bytes"
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
smithy "github.com/aws/smithy-go"
"github.com/aws/smithy-go/encoding/httpbinding"
smithyjson "github.com/aws/smithy-go/encoding/json"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
type awsRestjson1_serializeOpAssociateLicense struct {
}
func (*awsRestjson1_serializeOpAssociateLicense) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpAssociateLicense) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*AssociateLicenseInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/licenses/{licenseType}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsAssociateLicenseInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsAssociateLicenseInput(v *AssociateLicenseInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if len(v.LicenseType) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member licenseType must not be empty")}
}
if len(v.LicenseType) > 0 {
if err := encoder.SetURI("licenseType").String(string(v.LicenseType)); err != nil {
return err
}
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpCreateWorkspace struct {
}
func (*awsRestjson1_serializeOpCreateWorkspace) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpCreateWorkspace) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateWorkspaceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
if err := awsRestjson1_serializeOpDocumentCreateWorkspaceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsCreateWorkspaceInput(v *CreateWorkspaceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
return nil
}
func awsRestjson1_serializeOpDocumentCreateWorkspaceInput(v *CreateWorkspaceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.AccountAccessType) > 0 {
ok := object.Key("accountAccessType")
ok.String(string(v.AccountAccessType))
}
if v.AuthenticationProviders != nil {
ok := object.Key("authenticationProviders")
if err := awsRestjson1_serializeDocumentAuthenticationProviders(v.AuthenticationProviders, ok); err != nil {
return err
}
}
if v.ClientToken != nil {
ok := object.Key("clientToken")
ok.String(*v.ClientToken)
}
if v.Configuration != nil {
ok := object.Key("configuration")
ok.String(*v.Configuration)
}
if v.GrafanaVersion != nil {
ok := object.Key("grafanaVersion")
ok.String(*v.GrafanaVersion)
}
if v.NetworkAccessControl != nil {
ok := object.Key("networkAccessControl")
if err := awsRestjson1_serializeDocumentNetworkAccessConfiguration(v.NetworkAccessControl, ok); err != nil {
return err
}
}
if v.OrganizationRoleName != nil {
ok := object.Key("organizationRoleName")
ok.String(*v.OrganizationRoleName)
}
if len(v.PermissionType) > 0 {
ok := object.Key("permissionType")
ok.String(string(v.PermissionType))
}
if v.StackSetName != nil {
ok := object.Key("stackSetName")
ok.String(*v.StackSetName)
}
if v.Tags != nil {
ok := object.Key("tags")
if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
return err
}
}
if v.VpcConfiguration != nil {
ok := object.Key("vpcConfiguration")
if err := awsRestjson1_serializeDocumentVpcConfiguration(v.VpcConfiguration, ok); err != nil {
return err
}
}
if v.WorkspaceDataSources != nil {
ok := object.Key("workspaceDataSources")
if err := awsRestjson1_serializeDocumentDataSourceTypesList(v.WorkspaceDataSources, ok); err != nil {
return err
}
}
if v.WorkspaceDescription != nil {
ok := object.Key("workspaceDescription")
ok.String(*v.WorkspaceDescription)
}
if v.WorkspaceName != nil {
ok := object.Key("workspaceName")
ok.String(*v.WorkspaceName)
}
if v.WorkspaceNotificationDestinations != nil {
ok := object.Key("workspaceNotificationDestinations")
if err := awsRestjson1_serializeDocumentNotificationDestinationsList(v.WorkspaceNotificationDestinations, ok); err != nil {
return err
}
}
if v.WorkspaceOrganizationalUnits != nil {
ok := object.Key("workspaceOrganizationalUnits")
if err := awsRestjson1_serializeDocumentOrganizationalUnitList(v.WorkspaceOrganizationalUnits, ok); err != nil {
return err
}
}
if v.WorkspaceRoleArn != nil {
ok := object.Key("workspaceRoleArn")
ok.String(*v.WorkspaceRoleArn)
}
return nil
}
type awsRestjson1_serializeOpCreateWorkspaceApiKey struct {
}
func (*awsRestjson1_serializeOpCreateWorkspaceApiKey) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpCreateWorkspaceApiKey) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*CreateWorkspaceApiKeyInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/apikeys")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsCreateWorkspaceApiKeyInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
if err := awsRestjson1_serializeOpDocumentCreateWorkspaceApiKeyInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsCreateWorkspaceApiKeyInput(v *CreateWorkspaceApiKeyInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeOpDocumentCreateWorkspaceApiKeyInput(v *CreateWorkspaceApiKeyInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.KeyName != nil {
ok := object.Key("keyName")
ok.String(*v.KeyName)
}
if v.KeyRole != nil {
ok := object.Key("keyRole")
ok.String(*v.KeyRole)
}
if v.SecondsToLive != nil {
ok := object.Key("secondsToLive")
ok.Integer(*v.SecondsToLive)
}
return nil
}
type awsRestjson1_serializeOpDeleteWorkspace struct {
}
func (*awsRestjson1_serializeOpDeleteWorkspace) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpDeleteWorkspace) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteWorkspaceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "DELETE"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsDeleteWorkspaceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsDeleteWorkspaceInput(v *DeleteWorkspaceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpDeleteWorkspaceApiKey struct {
}
func (*awsRestjson1_serializeOpDeleteWorkspaceApiKey) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpDeleteWorkspaceApiKey) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DeleteWorkspaceApiKeyInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/apikeys/{keyName}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "DELETE"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsDeleteWorkspaceApiKeyInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsDeleteWorkspaceApiKeyInput(v *DeleteWorkspaceApiKeyInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.KeyName == nil || len(*v.KeyName) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member keyName must not be empty")}
}
if v.KeyName != nil {
if err := encoder.SetURI("keyName").String(*v.KeyName); err != nil {
return err
}
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpDescribeWorkspace struct {
}
func (*awsRestjson1_serializeOpDescribeWorkspace) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpDescribeWorkspace) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeWorkspaceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsDescribeWorkspaceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsDescribeWorkspaceInput(v *DescribeWorkspaceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpDescribeWorkspaceAuthentication struct {
}
func (*awsRestjson1_serializeOpDescribeWorkspaceAuthentication) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpDescribeWorkspaceAuthentication) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeWorkspaceAuthenticationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/authentication")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsDescribeWorkspaceAuthenticationInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsDescribeWorkspaceAuthenticationInput(v *DescribeWorkspaceAuthenticationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpDescribeWorkspaceConfiguration struct {
}
func (*awsRestjson1_serializeOpDescribeWorkspaceConfiguration) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpDescribeWorkspaceConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DescribeWorkspaceConfigurationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/configuration")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsDescribeWorkspaceConfigurationInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsDescribeWorkspaceConfigurationInput(v *DescribeWorkspaceConfigurationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpDisassociateLicense struct {
}
func (*awsRestjson1_serializeOpDisassociateLicense) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpDisassociateLicense) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*DisassociateLicenseInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/licenses/{licenseType}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "DELETE"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsDisassociateLicenseInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsDisassociateLicenseInput(v *DisassociateLicenseInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if len(v.LicenseType) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member licenseType must not be empty")}
}
if len(v.LicenseType) > 0 {
if err := encoder.SetURI("licenseType").String(string(v.LicenseType)); err != nil {
return err
}
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpListPermissions struct {
}
func (*awsRestjson1_serializeOpListPermissions) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpListPermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListPermissionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/permissions")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsListPermissionsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsListPermissionsInput(v *ListPermissionsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.GroupId != nil {
encoder.SetQuery("groupId").String(*v.GroupId)
}
if v.MaxResults != nil {
encoder.SetQuery("maxResults").Integer(*v.MaxResults)
}
if v.NextToken != nil {
encoder.SetQuery("nextToken").String(*v.NextToken)
}
if v.UserId != nil {
encoder.SetQuery("userId").String(*v.UserId)
}
if len(v.UserType) > 0 {
encoder.SetQuery("userType").String(string(v.UserType))
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpListTagsForResource struct {
}
func (*awsRestjson1_serializeOpListTagsForResource) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListTagsForResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")}
}
if v.ResourceArn != nil {
if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpListWorkspaces struct {
}
func (*awsRestjson1_serializeOpListWorkspaces) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpListWorkspaces) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*ListWorkspacesInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "GET"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsListWorkspacesInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsListWorkspacesInput(v *ListWorkspacesInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.MaxResults != nil {
encoder.SetQuery("maxResults").Integer(*v.MaxResults)
}
if v.NextToken != nil {
encoder.SetQuery("nextToken").String(*v.NextToken)
}
return nil
}
type awsRestjson1_serializeOpTagResource struct {
}
func (*awsRestjson1_serializeOpTagResource) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*TagResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")}
}
if v.ResourceArn != nil {
if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Tags != nil {
ok := object.Key("tags")
if err := awsRestjson1_serializeDocumentTagMap(v.Tags, ok); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpUntagResource struct {
}
func (*awsRestjson1_serializeOpUntagResource) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UntagResourceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "DELETE"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.ResourceArn == nil || len(*v.ResourceArn) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")}
}
if v.ResourceArn != nil {
if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil {
return err
}
}
if v.TagKeys != nil {
for i := range v.TagKeys {
encoder.AddQuery("tagKeys").String(v.TagKeys[i])
}
}
return nil
}
type awsRestjson1_serializeOpUpdatePermissions struct {
}
func (*awsRestjson1_serializeOpUpdatePermissions) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpUpdatePermissions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdatePermissionsInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/permissions")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "PATCH"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsUpdatePermissionsInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
if err := awsRestjson1_serializeOpDocumentUpdatePermissionsInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsUpdatePermissionsInput(v *UpdatePermissionsInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeOpDocumentUpdatePermissionsInput(v *UpdatePermissionsInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.UpdateInstructionBatch != nil {
ok := object.Key("updateInstructionBatch")
if err := awsRestjson1_serializeDocumentUpdateInstructionBatch(v.UpdateInstructionBatch, ok); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpUpdateWorkspace struct {
}
func (*awsRestjson1_serializeOpUpdateWorkspace) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpUpdateWorkspace) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateWorkspaceInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "PUT"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
if err := awsRestjson1_serializeOpDocumentUpdateWorkspaceInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceInput(v *UpdateWorkspaceInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeOpDocumentUpdateWorkspaceInput(v *UpdateWorkspaceInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.AccountAccessType) > 0 {
ok := object.Key("accountAccessType")
ok.String(string(v.AccountAccessType))
}
if v.NetworkAccessControl != nil {
ok := object.Key("networkAccessControl")
if err := awsRestjson1_serializeDocumentNetworkAccessConfiguration(v.NetworkAccessControl, ok); err != nil {
return err
}
}
if v.OrganizationRoleName != nil {
ok := object.Key("organizationRoleName")
ok.String(*v.OrganizationRoleName)
}
if len(v.PermissionType) > 0 {
ok := object.Key("permissionType")
ok.String(string(v.PermissionType))
}
if v.RemoveNetworkAccessConfiguration != nil {
ok := object.Key("removeNetworkAccessConfiguration")
ok.Boolean(*v.RemoveNetworkAccessConfiguration)
}
if v.RemoveVpcConfiguration != nil {
ok := object.Key("removeVpcConfiguration")
ok.Boolean(*v.RemoveVpcConfiguration)
}
if v.StackSetName != nil {
ok := object.Key("stackSetName")
ok.String(*v.StackSetName)
}
if v.VpcConfiguration != nil {
ok := object.Key("vpcConfiguration")
if err := awsRestjson1_serializeDocumentVpcConfiguration(v.VpcConfiguration, ok); err != nil {
return err
}
}
if v.WorkspaceDataSources != nil {
ok := object.Key("workspaceDataSources")
if err := awsRestjson1_serializeDocumentDataSourceTypesList(v.WorkspaceDataSources, ok); err != nil {
return err
}
}
if v.WorkspaceDescription != nil {
ok := object.Key("workspaceDescription")
ok.String(*v.WorkspaceDescription)
}
if v.WorkspaceName != nil {
ok := object.Key("workspaceName")
ok.String(*v.WorkspaceName)
}
if v.WorkspaceNotificationDestinations != nil {
ok := object.Key("workspaceNotificationDestinations")
if err := awsRestjson1_serializeDocumentNotificationDestinationsList(v.WorkspaceNotificationDestinations, ok); err != nil {
return err
}
}
if v.WorkspaceOrganizationalUnits != nil {
ok := object.Key("workspaceOrganizationalUnits")
if err := awsRestjson1_serializeDocumentOrganizationalUnitList(v.WorkspaceOrganizationalUnits, ok); err != nil {
return err
}
}
if v.WorkspaceRoleArn != nil {
ok := object.Key("workspaceRoleArn")
ok.String(*v.WorkspaceRoleArn)
}
return nil
}
type awsRestjson1_serializeOpUpdateWorkspaceAuthentication struct {
}
func (*awsRestjson1_serializeOpUpdateWorkspaceAuthentication) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpUpdateWorkspaceAuthentication) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateWorkspaceAuthenticationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/authentication")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "POST"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceAuthenticationInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
if err := awsRestjson1_serializeOpDocumentUpdateWorkspaceAuthenticationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceAuthenticationInput(v *UpdateWorkspaceAuthenticationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeOpDocumentUpdateWorkspaceAuthenticationInput(v *UpdateWorkspaceAuthenticationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AuthenticationProviders != nil {
ok := object.Key("authenticationProviders")
if err := awsRestjson1_serializeDocumentAuthenticationProviders(v.AuthenticationProviders, ok); err != nil {
return err
}
}
if v.SamlConfiguration != nil {
ok := object.Key("samlConfiguration")
if err := awsRestjson1_serializeDocumentSamlConfiguration(v.SamlConfiguration, ok); err != nil {
return err
}
}
return nil
}
type awsRestjson1_serializeOpUpdateWorkspaceConfiguration struct {
}
func (*awsRestjson1_serializeOpUpdateWorkspaceConfiguration) ID() string {
return "OperationSerializer"
}
func (m *awsRestjson1_serializeOpUpdateWorkspaceConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
) {
request, ok := in.Request.(*smithyhttp.Request)
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
}
input, ok := in.Parameters.(*UpdateWorkspaceConfigurationInput)
_ = input
if !ok {
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
}
opPath, opQuery := httpbinding.SplitURI("/workspaces/{workspaceId}/configuration")
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
request.Method = "PUT"
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
if err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if err := awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceConfigurationInput(input, restEncoder); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
restEncoder.SetHeader("Content-Type").String("application/json")
jsonEncoder := smithyjson.NewEncoder()
if err := awsRestjson1_serializeOpDocumentUpdateWorkspaceConfigurationInput(input, jsonEncoder.Value); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
return out, metadata, &smithy.SerializationError{Err: err}
}
in.Request = request
return next.HandleSerialize(ctx, in)
}
func awsRestjson1_serializeOpHttpBindingsUpdateWorkspaceConfigurationInput(v *UpdateWorkspaceConfigurationInput, encoder *httpbinding.Encoder) error {
if v == nil {
return fmt.Errorf("unsupported serialization of nil %T", v)
}
if v.WorkspaceId == nil || len(*v.WorkspaceId) == 0 {
return &smithy.SerializationError{Err: fmt.Errorf("input member workspaceId must not be empty")}
}
if v.WorkspaceId != nil {
if err := encoder.SetURI("workspaceId").String(*v.WorkspaceId); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeOpDocumentUpdateWorkspaceConfigurationInput(v *UpdateWorkspaceConfigurationInput, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Configuration != nil {
ok := object.Key("configuration")
ok.String(*v.Configuration)
}
return nil
}
func awsRestjson1_serializeDocumentAllowedOrganizations(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsRestjson1_serializeDocumentAssertionAttributes(v *types.AssertionAttributes, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Email != nil {
ok := object.Key("email")
ok.String(*v.Email)
}
if v.Groups != nil {
ok := object.Key("groups")
ok.String(*v.Groups)
}
if v.Login != nil {
ok := object.Key("login")
ok.String(*v.Login)
}
if v.Name != nil {
ok := object.Key("name")
ok.String(*v.Name)
}
if v.Org != nil {
ok := object.Key("org")
ok.String(*v.Org)
}
if v.Role != nil {
ok := object.Key("role")
ok.String(*v.Role)
}
return nil
}
func awsRestjson1_serializeDocumentAuthenticationProviders(v []types.AuthenticationProviderTypes, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(string(v[i]))
}
return nil
}
func awsRestjson1_serializeDocumentDataSourceTypesList(v []types.DataSourceType, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(string(v[i]))
}
return nil
}
func awsRestjson1_serializeDocumentIdpMetadata(v types.IdpMetadata, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
switch uv := v.(type) {
case *types.IdpMetadataMemberUrl:
av := object.Key("url")
av.String(uv.Value)
case *types.IdpMetadataMemberXml:
av := object.Key("xml")
av.String(uv.Value)
default:
return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v)
}
return nil
}
func awsRestjson1_serializeDocumentNetworkAccessConfiguration(v *types.NetworkAccessConfiguration, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.PrefixListIds != nil {
ok := object.Key("prefixListIds")
if err := awsRestjson1_serializeDocumentPrefixListIds(v.PrefixListIds, ok); err != nil {
return err
}
}
if v.VpceIds != nil {
ok := object.Key("vpceIds")
if err := awsRestjson1_serializeDocumentVpceIds(v.VpceIds, ok); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeDocumentNotificationDestinationsList(v []types.NotificationDestinationType, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(string(v[i]))
}
return nil
}
func awsRestjson1_serializeDocumentOrganizationalUnitList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsRestjson1_serializeDocumentPrefixListIds(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsRestjson1_serializeDocumentRoleValueList(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsRestjson1_serializeDocumentRoleValues(v *types.RoleValues, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Admin != nil {
ok := object.Key("admin")
if err := awsRestjson1_serializeDocumentRoleValueList(v.Admin, ok); err != nil {
return err
}
}
if v.Editor != nil {
ok := object.Key("editor")
if err := awsRestjson1_serializeDocumentRoleValueList(v.Editor, ok); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeDocumentSamlConfiguration(v *types.SamlConfiguration, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.AllowedOrganizations != nil {
ok := object.Key("allowedOrganizations")
if err := awsRestjson1_serializeDocumentAllowedOrganizations(v.AllowedOrganizations, ok); err != nil {
return err
}
}
if v.AssertionAttributes != nil {
ok := object.Key("assertionAttributes")
if err := awsRestjson1_serializeDocumentAssertionAttributes(v.AssertionAttributes, ok); err != nil {
return err
}
}
if v.IdpMetadata != nil {
ok := object.Key("idpMetadata")
if err := awsRestjson1_serializeDocumentIdpMetadata(v.IdpMetadata, ok); err != nil {
return err
}
}
if v.LoginValidityDuration != 0 {
ok := object.Key("loginValidityDuration")
ok.Integer(v.LoginValidityDuration)
}
if v.RoleValues != nil {
ok := object.Key("roleValues")
if err := awsRestjson1_serializeDocumentRoleValues(v.RoleValues, ok); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeDocumentSecurityGroupIds(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsRestjson1_serializeDocumentSubnetIds(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
func awsRestjson1_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
for key := range v {
om := object.Key(key)
om.String(v[key])
}
return nil
}
func awsRestjson1_serializeDocumentUpdateInstruction(v *types.UpdateInstruction, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if len(v.Action) > 0 {
ok := object.Key("action")
ok.String(string(v.Action))
}
if len(v.Role) > 0 {
ok := object.Key("role")
ok.String(string(v.Role))
}
if v.Users != nil {
ok := object.Key("users")
if err := awsRestjson1_serializeDocumentUserList(v.Users, ok); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeDocumentUpdateInstructionBatch(v []types.UpdateInstruction, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsRestjson1_serializeDocumentUpdateInstruction(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeDocumentUser(v *types.User, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.Id != nil {
ok := object.Key("id")
ok.String(*v.Id)
}
if len(v.Type) > 0 {
ok := object.Key("type")
ok.String(string(v.Type))
}
return nil
}
func awsRestjson1_serializeDocumentUserList(v []types.User, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
if err := awsRestjson1_serializeDocumentUser(&v[i], av); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeDocumentVpcConfiguration(v *types.VpcConfiguration, value smithyjson.Value) error {
object := value.Object()
defer object.Close()
if v.SecurityGroupIds != nil {
ok := object.Key("securityGroupIds")
if err := awsRestjson1_serializeDocumentSecurityGroupIds(v.SecurityGroupIds, ok); err != nil {
return err
}
}
if v.SubnetIds != nil {
ok := object.Key("subnetIds")
if err := awsRestjson1_serializeDocumentSubnetIds(v.SubnetIds, ok); err != nil {
return err
}
}
return nil
}
func awsRestjson1_serializeDocumentVpceIds(v []string, value smithyjson.Value) error {
array := value.Array()
defer array.Close()
for i := range v {
av := array.Value()
av.String(v[i])
}
return nil
}
| 1,800 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
smithy "github.com/aws/smithy-go"
"github.com/aws/smithy-go/middleware"
)
type validateOpAssociateLicense struct {
}
func (*validateOpAssociateLicense) ID() string {
return "OperationInputValidation"
}
func (m *validateOpAssociateLicense) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*AssociateLicenseInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpAssociateLicenseInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateWorkspaceApiKey struct {
}
func (*validateOpCreateWorkspaceApiKey) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateWorkspaceApiKey) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateWorkspaceApiKeyInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateWorkspaceApiKeyInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpCreateWorkspace struct {
}
func (*validateOpCreateWorkspace) ID() string {
return "OperationInputValidation"
}
func (m *validateOpCreateWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*CreateWorkspaceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpCreateWorkspaceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteWorkspaceApiKey struct {
}
func (*validateOpDeleteWorkspaceApiKey) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteWorkspaceApiKey) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteWorkspaceApiKeyInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteWorkspaceApiKeyInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDeleteWorkspace struct {
}
func (*validateOpDeleteWorkspace) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDeleteWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DeleteWorkspaceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDeleteWorkspaceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeWorkspaceAuthentication struct {
}
func (*validateOpDescribeWorkspaceAuthentication) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeWorkspaceAuthentication) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeWorkspaceAuthenticationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeWorkspaceAuthenticationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeWorkspaceConfiguration struct {
}
func (*validateOpDescribeWorkspaceConfiguration) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeWorkspaceConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeWorkspaceConfigurationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeWorkspaceConfigurationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDescribeWorkspace struct {
}
func (*validateOpDescribeWorkspace) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDescribeWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DescribeWorkspaceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDescribeWorkspaceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpDisassociateLicense struct {
}
func (*validateOpDisassociateLicense) ID() string {
return "OperationInputValidation"
}
func (m *validateOpDisassociateLicense) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*DisassociateLicenseInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpDisassociateLicenseInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListPermissions struct {
}
func (*validateOpListPermissions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListPermissions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListPermissionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListPermissionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpListTagsForResource struct {
}
func (*validateOpListTagsForResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*ListTagsForResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpListTagsForResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpTagResource struct {
}
func (*validateOpTagResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*TagResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpTagResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUntagResource struct {
}
func (*validateOpUntagResource) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UntagResourceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUntagResourceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdatePermissions struct {
}
func (*validateOpUpdatePermissions) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdatePermissions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdatePermissionsInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdatePermissionsInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateWorkspaceAuthentication struct {
}
func (*validateOpUpdateWorkspaceAuthentication) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateWorkspaceAuthentication) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateWorkspaceAuthenticationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateWorkspaceAuthenticationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateWorkspaceConfiguration struct {
}
func (*validateOpUpdateWorkspaceConfiguration) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateWorkspaceConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateWorkspaceConfigurationInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateWorkspaceConfigurationInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
type validateOpUpdateWorkspace struct {
}
func (*validateOpUpdateWorkspace) ID() string {
return "OperationInputValidation"
}
func (m *validateOpUpdateWorkspace) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
) {
input, ok := in.Parameters.(*UpdateWorkspaceInput)
if !ok {
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
}
if err := validateOpUpdateWorkspaceInput(input); err != nil {
return out, metadata, err
}
return next.HandleInitialize(ctx, in)
}
func addOpAssociateLicenseValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpAssociateLicense{}, middleware.After)
}
func addOpCreateWorkspaceApiKeyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateWorkspaceApiKey{}, middleware.After)
}
func addOpCreateWorkspaceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpCreateWorkspace{}, middleware.After)
}
func addOpDeleteWorkspaceApiKeyValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteWorkspaceApiKey{}, middleware.After)
}
func addOpDeleteWorkspaceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDeleteWorkspace{}, middleware.After)
}
func addOpDescribeWorkspaceAuthenticationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeWorkspaceAuthentication{}, middleware.After)
}
func addOpDescribeWorkspaceConfigurationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeWorkspaceConfiguration{}, middleware.After)
}
func addOpDescribeWorkspaceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDescribeWorkspace{}, middleware.After)
}
func addOpDisassociateLicenseValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpDisassociateLicense{}, middleware.After)
}
func addOpListPermissionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListPermissions{}, middleware.After)
}
func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After)
}
func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpTagResource{}, middleware.After)
}
func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After)
}
func addOpUpdatePermissionsValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdatePermissions{}, middleware.After)
}
func addOpUpdateWorkspaceAuthenticationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateWorkspaceAuthentication{}, middleware.After)
}
func addOpUpdateWorkspaceConfigurationValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateWorkspaceConfiguration{}, middleware.After)
}
func addOpUpdateWorkspaceValidationMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(&validateOpUpdateWorkspace{}, middleware.After)
}
func validateNetworkAccessConfiguration(v *types.NetworkAccessConfiguration) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "NetworkAccessConfiguration"}
if v.PrefixListIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("PrefixListIds"))
}
if v.VpceIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("VpceIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateSamlConfiguration(v *types.SamlConfiguration) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "SamlConfiguration"}
if v.IdpMetadata == nil {
invalidParams.Add(smithy.NewErrParamRequired("IdpMetadata"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUpdateInstruction(v *types.UpdateInstruction) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateInstruction"}
if len(v.Action) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Action"))
}
if len(v.Role) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Role"))
}
if v.Users == nil {
invalidParams.Add(smithy.NewErrParamRequired("Users"))
} else if v.Users != nil {
if err := validateUserList(v.Users); err != nil {
invalidParams.AddNested("Users", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUpdateInstructionBatch(v []types.UpdateInstruction) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateInstructionBatch"}
for i := range v {
if err := validateUpdateInstruction(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUser(v *types.User) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "User"}
if v.Id == nil {
invalidParams.Add(smithy.NewErrParamRequired("Id"))
}
if len(v.Type) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("Type"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateUserList(v []types.User) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UserList"}
for i := range v {
if err := validateUser(&v[i]); err != nil {
invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateVpcConfiguration(v *types.VpcConfiguration) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "VpcConfiguration"}
if v.SecurityGroupIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("SecurityGroupIds"))
}
if v.SubnetIds == nil {
invalidParams.Add(smithy.NewErrParamRequired("SubnetIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpAssociateLicenseInput(v *AssociateLicenseInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "AssociateLicenseInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if len(v.LicenseType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("LicenseType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateWorkspaceApiKeyInput(v *CreateWorkspaceApiKeyInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateWorkspaceApiKeyInput"}
if v.KeyName == nil {
invalidParams.Add(smithy.NewErrParamRequired("KeyName"))
}
if v.KeyRole == nil {
invalidParams.Add(smithy.NewErrParamRequired("KeyRole"))
}
if v.SecondsToLive == nil {
invalidParams.Add(smithy.NewErrParamRequired("SecondsToLive"))
}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpCreateWorkspaceInput(v *CreateWorkspaceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "CreateWorkspaceInput"}
if len(v.AccountAccessType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("AccountAccessType"))
}
if len(v.PermissionType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("PermissionType"))
}
if v.AuthenticationProviders == nil {
invalidParams.Add(smithy.NewErrParamRequired("AuthenticationProviders"))
}
if v.VpcConfiguration != nil {
if err := validateVpcConfiguration(v.VpcConfiguration); err != nil {
invalidParams.AddNested("VpcConfiguration", err.(smithy.InvalidParamsError))
}
}
if v.NetworkAccessControl != nil {
if err := validateNetworkAccessConfiguration(v.NetworkAccessControl); err != nil {
invalidParams.AddNested("NetworkAccessControl", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteWorkspaceApiKeyInput(v *DeleteWorkspaceApiKeyInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteWorkspaceApiKeyInput"}
if v.KeyName == nil {
invalidParams.Add(smithy.NewErrParamRequired("KeyName"))
}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDeleteWorkspaceInput(v *DeleteWorkspaceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DeleteWorkspaceInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeWorkspaceAuthenticationInput(v *DescribeWorkspaceAuthenticationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeWorkspaceAuthenticationInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeWorkspaceConfigurationInput(v *DescribeWorkspaceConfigurationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeWorkspaceConfigurationInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDescribeWorkspaceInput(v *DescribeWorkspaceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DescribeWorkspaceInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpDisassociateLicenseInput(v *DisassociateLicenseInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "DisassociateLicenseInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if len(v.LicenseType) == 0 {
invalidParams.Add(smithy.NewErrParamRequired("LicenseType"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListPermissionsInput(v *ListPermissionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListPermissionsInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpTagResourceInput(v *TagResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if v.Tags == nil {
invalidParams.Add(smithy.NewErrParamRequired("Tags"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUntagResourceInput(v *UntagResourceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"}
if v.ResourceArn == nil {
invalidParams.Add(smithy.NewErrParamRequired("ResourceArn"))
}
if v.TagKeys == nil {
invalidParams.Add(smithy.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdatePermissionsInput(v *UpdatePermissionsInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdatePermissionsInput"}
if v.UpdateInstructionBatch == nil {
invalidParams.Add(smithy.NewErrParamRequired("UpdateInstructionBatch"))
} else if v.UpdateInstructionBatch != nil {
if err := validateUpdateInstructionBatch(v.UpdateInstructionBatch); err != nil {
invalidParams.AddNested("UpdateInstructionBatch", err.(smithy.InvalidParamsError))
}
}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateWorkspaceAuthenticationInput(v *UpdateWorkspaceAuthenticationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateWorkspaceAuthenticationInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if v.AuthenticationProviders == nil {
invalidParams.Add(smithy.NewErrParamRequired("AuthenticationProviders"))
}
if v.SamlConfiguration != nil {
if err := validateSamlConfiguration(v.SamlConfiguration); err != nil {
invalidParams.AddNested("SamlConfiguration", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateWorkspaceConfigurationInput(v *UpdateWorkspaceConfigurationInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateWorkspaceConfigurationInput"}
if v.Configuration == nil {
invalidParams.Add(smithy.NewErrParamRequired("Configuration"))
}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
func validateOpUpdateWorkspaceInput(v *UpdateWorkspaceInput) error {
if v == nil {
return nil
}
invalidParams := smithy.InvalidParamsError{Context: "UpdateWorkspaceInput"}
if v.WorkspaceId == nil {
invalidParams.Add(smithy.NewErrParamRequired("WorkspaceId"))
}
if v.VpcConfiguration != nil {
if err := validateVpcConfiguration(v.VpcConfiguration); err != nil {
invalidParams.AddNested("VpcConfiguration", err.(smithy.InvalidParamsError))
}
}
if v.NetworkAccessControl != nil {
if err := validateNetworkAccessConfiguration(v.NetworkAccessControl); err != nil {
invalidParams.AddNested("NetworkAccessControl", err.(smithy.InvalidParamsError))
}
}
if invalidParams.Len() > 0 {
return invalidParams
} else {
return nil
}
}
| 871 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package endpoints
import (
"github.com/aws/aws-sdk-go-v2/aws"
endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2"
"github.com/aws/smithy-go/logging"
"regexp"
)
// Options is the endpoint resolver configuration options
type Options struct {
// Logger is a logging implementation that log events should be sent to.
Logger logging.Logger
// LogDeprecated indicates that deprecated endpoints should be logged to the
// provided logger.
LogDeprecated bool
// ResolvedRegion is used to override the region to be resolved, rather then the
// using the value passed to the ResolveEndpoint method. This value is used by the
// SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative
// name. You must not set this value directly in your application.
ResolvedRegion string
// DisableHTTPS informs the resolver to return an endpoint that does not use the
// HTTPS scheme.
DisableHTTPS bool
// UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint.
UseDualStackEndpoint aws.DualStackEndpointState
// UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint.
UseFIPSEndpoint aws.FIPSEndpointState
}
func (o Options) GetResolvedRegion() string {
return o.ResolvedRegion
}
func (o Options) GetDisableHTTPS() bool {
return o.DisableHTTPS
}
func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState {
return o.UseDualStackEndpoint
}
func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState {
return o.UseFIPSEndpoint
}
func transformToSharedOptions(options Options) endpoints.Options {
return endpoints.Options{
Logger: options.Logger,
LogDeprecated: options.LogDeprecated,
ResolvedRegion: options.ResolvedRegion,
DisableHTTPS: options.DisableHTTPS,
UseDualStackEndpoint: options.UseDualStackEndpoint,
UseFIPSEndpoint: options.UseFIPSEndpoint,
}
}
// Resolver grafana endpoint resolver
type Resolver struct {
partitions endpoints.Partitions
}
// ResolveEndpoint resolves the service endpoint for the given region and options
func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) {
if len(region) == 0 {
return endpoint, &aws.MissingRegionError{}
}
opt := transformToSharedOptions(options)
return r.partitions.ResolveEndpoint(region, opt)
}
// New returns a new Resolver
func New() *Resolver {
return &Resolver{
partitions: defaultPartitions,
}
}
var partitionRegexp = struct {
Aws *regexp.Regexp
AwsCn *regexp.Regexp
AwsIso *regexp.Regexp
AwsIsoB *regexp.Regexp
AwsIsoE *regexp.Regexp
AwsIsoF *regexp.Regexp
AwsUsGov *regexp.Regexp
}{
Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"),
AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"),
AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"),
AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"),
AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"),
AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"),
AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"),
}
var defaultPartitions = endpoints.Partitions{
{
ID: "aws",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "grafana.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "grafana-fips.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "grafana-fips.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "grafana.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.Aws,
IsRegionalized: true,
Endpoints: endpoints.Endpoints{
endpoints.EndpointKey{
Region: "ap-northeast-1",
}: endpoints.Endpoint{
Hostname: "grafana.ap-northeast-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "ap-northeast-1",
},
},
endpoints.EndpointKey{
Region: "ap-northeast-2",
}: endpoints.Endpoint{
Hostname: "grafana.ap-northeast-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "ap-northeast-2",
},
},
endpoints.EndpointKey{
Region: "ap-southeast-1",
}: endpoints.Endpoint{
Hostname: "grafana.ap-southeast-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "ap-southeast-1",
},
},
endpoints.EndpointKey{
Region: "ap-southeast-2",
}: endpoints.Endpoint{
Hostname: "grafana.ap-southeast-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "ap-southeast-2",
},
},
endpoints.EndpointKey{
Region: "eu-central-1",
}: endpoints.Endpoint{
Hostname: "grafana.eu-central-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "eu-central-1",
},
},
endpoints.EndpointKey{
Region: "eu-west-1",
}: endpoints.Endpoint{
Hostname: "grafana.eu-west-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "eu-west-1",
},
},
endpoints.EndpointKey{
Region: "eu-west-2",
}: endpoints.Endpoint{
Hostname: "grafana.eu-west-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "eu-west-2",
},
},
endpoints.EndpointKey{
Region: "us-east-1",
}: endpoints.Endpoint{
Hostname: "grafana.us-east-1.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-east-1",
},
},
endpoints.EndpointKey{
Region: "us-east-2",
}: endpoints.Endpoint{
Hostname: "grafana.us-east-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-east-2",
},
},
endpoints.EndpointKey{
Region: "us-west-2",
}: endpoints.Endpoint{
Hostname: "grafana.us-west-2.amazonaws.com",
CredentialScope: endpoints.CredentialScope{
Region: "us-west-2",
},
},
},
},
{
ID: "aws-cn",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "grafana.{region}.api.amazonwebservices.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "grafana-fips.{region}.amazonaws.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "grafana-fips.{region}.api.amazonwebservices.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "grafana.{region}.amazonaws.com.cn",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsCn,
IsRegionalized: true,
},
{
ID: "aws-iso",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "grafana-fips.{region}.c2s.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "grafana.{region}.c2s.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIso,
IsRegionalized: true,
},
{
ID: "aws-iso-b",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "grafana-fips.{region}.sc2s.sgov.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "grafana.{region}.sc2s.sgov.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoB,
IsRegionalized: true,
},
{
ID: "aws-iso-e",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "grafana-fips.{region}.cloud.adc-e.uk",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "grafana.{region}.cloud.adc-e.uk",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoE,
IsRegionalized: true,
},
{
ID: "aws-iso-f",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "grafana-fips.{region}.csp.hci.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "grafana.{region}.csp.hci.ic.gov",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsIsoF,
IsRegionalized: true,
},
{
ID: "aws-us-gov",
Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{
{
Variant: endpoints.DualStackVariant,
}: {
Hostname: "grafana.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant,
}: {
Hostname: "grafana-fips.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: endpoints.FIPSVariant | endpoints.DualStackVariant,
}: {
Hostname: "grafana-fips.{region}.api.aws",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
{
Variant: 0,
}: {
Hostname: "grafana.{region}.amazonaws.com",
Protocols: []string{"https"},
SignatureVersions: []string{"v4"},
},
},
RegionRegex: partitionRegexp.AwsUsGov,
IsRegionalized: true,
},
}
| 379 |
aws-sdk-go-v2 | aws | Go | // Code generated by smithy-go-codegen DO NOT EDIT.
package endpoints
import (
"testing"
)
func TestRegexCompile(t *testing.T) {
_ = defaultPartitions
}
| 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.