From 2fc1c0dab14dff82fc2c2465cb7c40a4157196a0 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Mon, 20 Nov 2023 20:20:35 +0000 Subject: [PATCH] Regenerated Clients --- .../54083e6546a04a5d932f73d895e9b10d.json | 8 + .../846a7d69726142f2a891803f03972406.json | 8 + .../d8cb591c3a424a399662abf0415380c7.json | 8 + .../codestarconnections/api_op_CreateHost.go | 2 - .../api_op_CreateRepositoryLink.go | 159 - .../api_op_CreateSyncConfiguration.go | 175 - .../api_op_DeleteRepositoryLink.go | 133 - .../api_op_DeleteSyncConfiguration.go | 139 - .../api_op_GetRepositoryLink.go | 140 - .../api_op_GetRepositorySyncStatus.go | 150 - .../api_op_GetResourceSyncStatus.go | 154 - .../api_op_GetSyncBlockerSummary.go | 145 - .../api_op_GetSyncConfiguration.go | 150 - .../api_op_ListRepositoryLinks.go | 229 - .../api_op_ListRepositorySyncDefinitions.go | 152 - .../api_op_ListSyncConfigurations.go | 242 - .../api_op_UpdateRepositoryLink.go | 150 - .../api_op_UpdateSyncBlocker.go | 163 - .../api_op_UpdateSyncConfiguration.go | 158 - service/codestarconnections/deserializers.go | 5564 ++--------------- service/codestarconnections/generated.json | 15 - service/codestarconnections/serializers.go | 1229 +--- service/codestarconnections/types/enums.go | 96 - service/codestarconnections/types/errors.go | 316 - service/codestarconnections/types/types.go | 361 -- service/codestarconnections/validators.go | 608 -- .../detective/internal/endpoints/endpoints.go | 15 + service/docdb/api_op_CreateDBCluster.go | 8 + service/docdb/api_op_ModifyDBCluster.go | 6 + .../api_op_RestoreDBClusterFromSnapshot.go | 6 + .../api_op_RestoreDBClusterToPointInTime.go | 6 + service/docdb/deserializers.go | 39 + service/docdb/serializers.go | 20 + service/docdb/types/types.go | 15 + .../api_op_AuthorizeSecurityGroupEgress.go | 5 +- .../api_op_DescribeSecurityGroupReferences.go | 5 +- .../ec2/api_op_DescribeStaleSecurityGroups.go | 7 +- service/ec2/deserializers.go | 39 + service/ec2/serializers.go | 20 + service/ec2/types/enums.go | 19 + service/ec2/types/types.go | 76 +- .../internal/endpoints/endpoints.go | 6 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + service/osis/internal/endpoints/endpoints.go | 9 + 45 files changed, 902 insertions(+), 10059 deletions(-) create mode 100644 .changelog/54083e6546a04a5d932f73d895e9b10d.json create mode 100644 .changelog/846a7d69726142f2a891803f03972406.json create mode 100644 .changelog/d8cb591c3a424a399662abf0415380c7.json delete mode 100644 service/codestarconnections/api_op_CreateRepositoryLink.go delete mode 100644 service/codestarconnections/api_op_CreateSyncConfiguration.go delete mode 100644 service/codestarconnections/api_op_DeleteRepositoryLink.go delete mode 100644 service/codestarconnections/api_op_DeleteSyncConfiguration.go delete mode 100644 service/codestarconnections/api_op_GetRepositoryLink.go delete mode 100644 service/codestarconnections/api_op_GetRepositorySyncStatus.go delete mode 100644 service/codestarconnections/api_op_GetResourceSyncStatus.go delete mode 100644 service/codestarconnections/api_op_GetSyncBlockerSummary.go delete mode 100644 service/codestarconnections/api_op_GetSyncConfiguration.go delete mode 100644 service/codestarconnections/api_op_ListRepositoryLinks.go delete mode 100644 service/codestarconnections/api_op_ListRepositorySyncDefinitions.go delete mode 100644 service/codestarconnections/api_op_ListSyncConfigurations.go delete mode 100644 service/codestarconnections/api_op_UpdateRepositoryLink.go delete mode 100644 service/codestarconnections/api_op_UpdateSyncBlocker.go delete mode 100644 service/codestarconnections/api_op_UpdateSyncConfiguration.go diff --git a/.changelog/54083e6546a04a5d932f73d895e9b10d.json b/.changelog/54083e6546a04a5d932f73d895e9b10d.json new file mode 100644 index 00000000000..53aec176091 --- /dev/null +++ b/.changelog/54083e6546a04a5d932f73d895e9b10d.json @@ -0,0 +1,8 @@ +{ + "id": "54083e65-46a0-4a5d-932f-73d895e9b10d", + "type": "feature", + "description": "This release adds support for Security group referencing over Transit gateways, enabling you to simplify Security group management and control of instance-to-instance traffic across VPCs that are connected by Transit gateway.", + "modules": [ + "service/ec2" + ] +} \ No newline at end of file diff --git a/.changelog/846a7d69726142f2a891803f03972406.json b/.changelog/846a7d69726142f2a891803f03972406.json new file mode 100644 index 00000000000..e55485a74bc --- /dev/null +++ b/.changelog/846a7d69726142f2a891803f03972406.json @@ -0,0 +1,8 @@ +{ + "id": "846a7d69-7261-42f2-a891-803f03972406", + "type": "feature", + "description": "Amazon DocumentDB updates for new cluster storage configuration: Amazon DocumentDB I/O-Optimized.", + "modules": [ + "service/docdb" + ] +} \ No newline at end of file diff --git a/.changelog/d8cb591c3a424a399662abf0415380c7.json b/.changelog/d8cb591c3a424a399662abf0415380c7.json new file mode 100644 index 00000000000..a5ef4ce2f3b --- /dev/null +++ b/.changelog/d8cb591c3a424a399662abf0415380c7.json @@ -0,0 +1,8 @@ +{ + "id": "d8cb591c-3a42-4a39-9662-abf0415380c7", + "type": "feature", + "description": "This release updates a few CodeStar Connections related APIs.", + "modules": [ + "service/codestarconnections" + ] +} \ No newline at end of file diff --git a/service/codestarconnections/api_op_CreateHost.go b/service/codestarconnections/api_op_CreateHost.go index 76989fd0bc8..c58e8a9a754 100644 --- a/service/codestarconnections/api_op_CreateHost.go +++ b/service/codestarconnections/api_op_CreateHost.go @@ -53,7 +53,6 @@ type CreateHostInput struct { // This member is required. ProviderType types.ProviderType - // Tags for the host to be created. Tags []types.Tag // The VPC configuration to be provisioned for the host. A VPC must be configured @@ -69,7 +68,6 @@ type CreateHostOutput struct { // The Amazon Resource Name (ARN) of the host to be created. HostArn *string - // Tags for the created host. Tags []types.Tag // Metadata pertaining to the operation's result. diff --git a/service/codestarconnections/api_op_CreateRepositoryLink.go b/service/codestarconnections/api_op_CreateRepositoryLink.go deleted file mode 100644 index 3b728276386..00000000000 --- a/service/codestarconnections/api_op_CreateRepositoryLink.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a link to a specified external Git repository. A repository link allows -// Git sync to monitor and sync changes to files in a specified Git repository. -func (c *Client) CreateRepositoryLink(ctx context.Context, params *CreateRepositoryLinkInput, optFns ...func(*Options)) (*CreateRepositoryLinkOutput, error) { - if params == nil { - params = &CreateRepositoryLinkInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateRepositoryLink", params, optFns, c.addOperationCreateRepositoryLinkMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateRepositoryLinkOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateRepositoryLinkInput struct { - - // The Amazon Resource Name (ARN) of the connection to be associated with the - // repository link. - // - // This member is required. - ConnectionArn *string - - // The owner ID for the repository associated with a specific sync configuration, - // such as the owner ID in GitHub. - // - // This member is required. - OwnerId *string - - // The name of the repository to be associated with the repository link. - // - // This member is required. - RepositoryName *string - - // The Amazon Resource Name (ARN) encryption key for the repository to be - // associated with the repository link. - EncryptionKeyArn *string - - // The tags for the repository to be associated with the repository link. - Tags []types.Tag - - noSmithyDocumentSerde -} - -type CreateRepositoryLinkOutput struct { - - // The returned information about the created repository link. - // - // This member is required. - RepositoryLinkInfo *types.RepositoryLinkInfo - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateRepositoryLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpCreateRepositoryLink{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpCreateRepositoryLink{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateRepositoryLink"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpCreateRepositoryLinkValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRepositoryLink(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateRepositoryLink(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateRepositoryLink", - } -} diff --git a/service/codestarconnections/api_op_CreateSyncConfiguration.go b/service/codestarconnections/api_op_CreateSyncConfiguration.go deleted file mode 100644 index 89a31f17f96..00000000000 --- a/service/codestarconnections/api_op_CreateSyncConfiguration.go +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Creates a sync configuration which allows Amazon Web Services to sync content -// from a Git repository to update a specified Amazon Web Services resource. -// Parameters for the sync configuration are determined by the sync type. -func (c *Client) CreateSyncConfiguration(ctx context.Context, params *CreateSyncConfigurationInput, optFns ...func(*Options)) (*CreateSyncConfigurationOutput, error) { - if params == nil { - params = &CreateSyncConfigurationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "CreateSyncConfiguration", params, optFns, c.addOperationCreateSyncConfigurationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*CreateSyncConfigurationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type CreateSyncConfigurationInput struct { - - // The branch in the repository from which changes will be synced. - // - // This member is required. - Branch *string - - // The file name of the configuration file that manages syncing between the - // connection and the repository. This configuration file is stored in the - // repository. - // - // This member is required. - ConfigFile *string - - // The ID of the repository link created for the connection. A repository link - // allows Git sync to monitor and sync changes to files in a specified Git - // repository. - // - // This member is required. - RepositoryLinkId *string - - // The name of the Amazon Web Services resource (for example, a CloudFormation - // stack in the case of CFN_STACK_SYNC) that will be synchronized from the linked - // repository. - // - // This member is required. - ResourceName *string - - // The ARN of the IAM role that grants permission for Amazon Web Services to use - // Git sync to update a given Amazon Web Services resource on your behalf. - // - // This member is required. - RoleArn *string - - // The type of sync configuration. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type CreateSyncConfigurationOutput struct { - - // The created sync configuration for the connection. A sync configuration allows - // Amazon Web Services to sync content from a Git repository to update a specified - // Amazon Web Services resource. - // - // This member is required. - SyncConfiguration *types.SyncConfiguration - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationCreateSyncConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpCreateSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpCreateSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSyncConfiguration"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpCreateSyncConfigurationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSyncConfiguration(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opCreateSyncConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "CreateSyncConfiguration", - } -} diff --git a/service/codestarconnections/api_op_DeleteRepositoryLink.go b/service/codestarconnections/api_op_DeleteRepositoryLink.go deleted file mode 100644 index 9bcd4a00f8e..00000000000 --- a/service/codestarconnections/api_op_DeleteRepositoryLink.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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" -) - -// Deletes the association between your connection and a specified external Git -// repository. -func (c *Client) DeleteRepositoryLink(ctx context.Context, params *DeleteRepositoryLinkInput, optFns ...func(*Options)) (*DeleteRepositoryLinkOutput, error) { - if params == nil { - params = &DeleteRepositoryLinkInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteRepositoryLink", params, optFns, c.addOperationDeleteRepositoryLinkMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteRepositoryLinkOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteRepositoryLinkInput struct { - - // The ID of the repository link to be deleted. - // - // This member is required. - RepositoryLinkId *string - - noSmithyDocumentSerde -} - -type DeleteRepositoryLinkOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteRepositoryLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteRepositoryLink{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteRepositoryLink{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteRepositoryLink"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteRepositoryLinkValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteRepositoryLink(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteRepositoryLink(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteRepositoryLink", - } -} diff --git a/service/codestarconnections/api_op_DeleteSyncConfiguration.go b/service/codestarconnections/api_op_DeleteSyncConfiguration.go deleted file mode 100644 index c9f652e3d66..00000000000 --- a/service/codestarconnections/api_op_DeleteSyncConfiguration.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Deletes the sync configuration for a specified repository and connection. -func (c *Client) DeleteSyncConfiguration(ctx context.Context, params *DeleteSyncConfigurationInput, optFns ...func(*Options)) (*DeleteSyncConfigurationOutput, error) { - if params == nil { - params = &DeleteSyncConfigurationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "DeleteSyncConfiguration", params, optFns, c.addOperationDeleteSyncConfigurationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*DeleteSyncConfigurationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type DeleteSyncConfigurationInput struct { - - // The name of the Amazon Web Services resource associated with the sync - // configuration to be deleted. - // - // This member is required. - ResourceName *string - - // The type of sync configuration to be deleted. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type DeleteSyncConfigurationOutput struct { - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationDeleteSyncConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpDeleteSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDeleteSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSyncConfiguration"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpDeleteSyncConfigurationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSyncConfiguration(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opDeleteSyncConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "DeleteSyncConfiguration", - } -} diff --git a/service/codestarconnections/api_op_GetRepositoryLink.go b/service/codestarconnections/api_op_GetRepositoryLink.go deleted file mode 100644 index 000ee104a35..00000000000 --- a/service/codestarconnections/api_op_GetRepositoryLink.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns details about a repository link. A repository link allows Git sync to -// monitor and sync changes from files in a specified Git repository. -func (c *Client) GetRepositoryLink(ctx context.Context, params *GetRepositoryLinkInput, optFns ...func(*Options)) (*GetRepositoryLinkOutput, error) { - if params == nil { - params = &GetRepositoryLinkInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetRepositoryLink", params, optFns, c.addOperationGetRepositoryLinkMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetRepositoryLinkOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetRepositoryLinkInput struct { - - // The ID of the repository link to get. - // - // This member is required. - RepositoryLinkId *string - - noSmithyDocumentSerde -} - -type GetRepositoryLinkOutput struct { - - // The information returned for a specified repository link. - // - // This member is required. - RepositoryLinkInfo *types.RepositoryLinkInfo - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetRepositoryLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetRepositoryLink{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetRepositoryLink{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetRepositoryLink"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetRepositoryLinkValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRepositoryLink(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetRepositoryLink(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetRepositoryLink", - } -} diff --git a/service/codestarconnections/api_op_GetRepositorySyncStatus.go b/service/codestarconnections/api_op_GetRepositorySyncStatus.go deleted file mode 100644 index 9aa15615049..00000000000 --- a/service/codestarconnections/api_op_GetRepositorySyncStatus.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns details about the sync status for a repository. A repository sync uses -// Git sync to push and pull changes from your remote repository. -func (c *Client) GetRepositorySyncStatus(ctx context.Context, params *GetRepositorySyncStatusInput, optFns ...func(*Options)) (*GetRepositorySyncStatusOutput, error) { - if params == nil { - params = &GetRepositorySyncStatusInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetRepositorySyncStatus", params, optFns, c.addOperationGetRepositorySyncStatusMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetRepositorySyncStatusOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetRepositorySyncStatusInput struct { - - // The branch of the repository link for the requested repository sync status. - // - // This member is required. - Branch *string - - // The repository link ID for the requested repository sync status. - // - // This member is required. - RepositoryLinkId *string - - // The sync type of the requested sync status. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type GetRepositorySyncStatusOutput struct { - - // The status of the latest sync returned for a specified repository and branch. - // - // This member is required. - LatestSync *types.RepositorySyncAttempt - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetRepositorySyncStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetRepositorySyncStatus{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetRepositorySyncStatus{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetRepositorySyncStatus"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetRepositorySyncStatusValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRepositorySyncStatus(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetRepositorySyncStatus(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetRepositorySyncStatus", - } -} diff --git a/service/codestarconnections/api_op_GetResourceSyncStatus.go b/service/codestarconnections/api_op_GetResourceSyncStatus.go deleted file mode 100644 index 32b34c42910..00000000000 --- a/service/codestarconnections/api_op_GetResourceSyncStatus.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns the status of the sync with the Git repository for a specific Amazon -// Web Services resource. -func (c *Client) GetResourceSyncStatus(ctx context.Context, params *GetResourceSyncStatusInput, optFns ...func(*Options)) (*GetResourceSyncStatusOutput, error) { - if params == nil { - params = &GetResourceSyncStatusInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetResourceSyncStatus", params, optFns, c.addOperationGetResourceSyncStatusMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetResourceSyncStatusOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetResourceSyncStatusInput struct { - - // The name of the Amazon Web Services resource for the sync status with the Git - // repository. - // - // This member is required. - ResourceName *string - - // The sync type for the sync status with the Git repository. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type GetResourceSyncStatusOutput struct { - - // The latest sync for the sync status with the Git repository, whether successful - // or not. - // - // This member is required. - LatestSync *types.ResourceSyncAttempt - - // The desired state of the Amazon Web Services resource for the sync status with - // the Git repository. - DesiredState *types.Revision - - // The latest successful sync for the sync status with the Git repository. - LatestSuccessfulSync *types.ResourceSyncAttempt - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetResourceSyncStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetResourceSyncStatus{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetResourceSyncStatus{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetResourceSyncStatus"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetResourceSyncStatusValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetResourceSyncStatus(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetResourceSyncStatus(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetResourceSyncStatus", - } -} diff --git a/service/codestarconnections/api_op_GetSyncBlockerSummary.go b/service/codestarconnections/api_op_GetSyncBlockerSummary.go deleted file mode 100644 index 1228218b030..00000000000 --- a/service/codestarconnections/api_op_GetSyncBlockerSummary.go +++ /dev/null @@ -1,145 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a list of the most recent sync blockers. -func (c *Client) GetSyncBlockerSummary(ctx context.Context, params *GetSyncBlockerSummaryInput, optFns ...func(*Options)) (*GetSyncBlockerSummaryOutput, error) { - if params == nil { - params = &GetSyncBlockerSummaryInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetSyncBlockerSummary", params, optFns, c.addOperationGetSyncBlockerSummaryMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetSyncBlockerSummaryOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetSyncBlockerSummaryInput struct { - - // The name of the Amazon Web Services resource currently blocked from - // automatically being synced from a Git repository. - // - // This member is required. - ResourceName *string - - // The sync type for the sync blocker summary. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type GetSyncBlockerSummaryOutput struct { - - // The list of sync blockers for a specified resource. - // - // This member is required. - SyncBlockerSummary *types.SyncBlockerSummary - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetSyncBlockerSummaryMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetSyncBlockerSummary{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetSyncBlockerSummary{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetSyncBlockerSummary"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetSyncBlockerSummaryValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSyncBlockerSummary(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetSyncBlockerSummary(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetSyncBlockerSummary", - } -} diff --git a/service/codestarconnections/api_op_GetSyncConfiguration.go b/service/codestarconnections/api_op_GetSyncConfiguration.go deleted file mode 100644 index 7ac0950950c..00000000000 --- a/service/codestarconnections/api_op_GetSyncConfiguration.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns details about a sync configuration, including the sync type and -// resource name. A sync configuration allows the configuration to sync (push and -// pull) changes from the remote repository for a specified branch in a Git -// repository. -func (c *Client) GetSyncConfiguration(ctx context.Context, params *GetSyncConfigurationInput, optFns ...func(*Options)) (*GetSyncConfigurationOutput, error) { - if params == nil { - params = &GetSyncConfigurationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "GetSyncConfiguration", params, optFns, c.addOperationGetSyncConfigurationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*GetSyncConfigurationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type GetSyncConfigurationInput struct { - - // The name of the Amazon Web Services resource for the sync configuration for - // which you want to retrieve information. - // - // This member is required. - ResourceName *string - - // The sync type for the sync configuration for which you want to retrieve - // information. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type GetSyncConfigurationOutput struct { - - // The details about the sync configuration for which you want to retrieve - // information. - // - // This member is required. - SyncConfiguration *types.SyncConfiguration - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationGetSyncConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "GetSyncConfiguration"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpGetSyncConfigurationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSyncConfiguration(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opGetSyncConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "GetSyncConfiguration", - } -} diff --git a/service/codestarconnections/api_op_ListRepositoryLinks.go b/service/codestarconnections/api_op_ListRepositoryLinks.go deleted file mode 100644 index c1c3164c6fd..00000000000 --- a/service/codestarconnections/api_op_ListRepositoryLinks.go +++ /dev/null @@ -1,229 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists the repository links created for connections in your account. -func (c *Client) ListRepositoryLinks(ctx context.Context, params *ListRepositoryLinksInput, optFns ...func(*Options)) (*ListRepositoryLinksOutput, error) { - if params == nil { - params = &ListRepositoryLinksInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListRepositoryLinks", params, optFns, c.addOperationListRepositoryLinksMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListRepositoryLinksOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListRepositoryLinksInput struct { - - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults int32 - - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string - - noSmithyDocumentSerde -} - -type ListRepositoryLinksOutput struct { - - // Lists the repository links called by the list repository links operation. - // - // This member is required. - RepositoryLinks []types.RepositoryLinkInfo - - // An enumeration token that allows the operation to batch the results of the - // operation. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListRepositoryLinksMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpListRepositoryLinks{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListRepositoryLinks{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListRepositoryLinks"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRepositoryLinks(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListRepositoryLinksAPIClient is a client that implements the -// ListRepositoryLinks operation. -type ListRepositoryLinksAPIClient interface { - ListRepositoryLinks(context.Context, *ListRepositoryLinksInput, ...func(*Options)) (*ListRepositoryLinksOutput, error) -} - -var _ ListRepositoryLinksAPIClient = (*Client)(nil) - -// ListRepositoryLinksPaginatorOptions is the paginator options for -// ListRepositoryLinks -type ListRepositoryLinksPaginatorOptions struct { - // A non-zero, non-negative integer used to limit the number of returned 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 -} - -// ListRepositoryLinksPaginator is a paginator for ListRepositoryLinks -type ListRepositoryLinksPaginator struct { - options ListRepositoryLinksPaginatorOptions - client ListRepositoryLinksAPIClient - params *ListRepositoryLinksInput - nextToken *string - firstPage bool -} - -// NewListRepositoryLinksPaginator returns a new ListRepositoryLinksPaginator -func NewListRepositoryLinksPaginator(client ListRepositoryLinksAPIClient, params *ListRepositoryLinksInput, optFns ...func(*ListRepositoryLinksPaginatorOptions)) *ListRepositoryLinksPaginator { - if params == nil { - params = &ListRepositoryLinksInput{} - } - - options := ListRepositoryLinksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListRepositoryLinksPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListRepositoryLinksPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListRepositoryLinks page. -func (p *ListRepositoryLinksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListRepositoryLinksOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListRepositoryLinks(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_opListRepositoryLinks(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListRepositoryLinks", - } -} diff --git a/service/codestarconnections/api_op_ListRepositorySyncDefinitions.go b/service/codestarconnections/api_op_ListRepositorySyncDefinitions.go deleted file mode 100644 index b28320a2a65..00000000000 --- a/service/codestarconnections/api_op_ListRepositorySyncDefinitions.go +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Lists the repository sync definitions for repository links in your account. -func (c *Client) ListRepositorySyncDefinitions(ctx context.Context, params *ListRepositorySyncDefinitionsInput, optFns ...func(*Options)) (*ListRepositorySyncDefinitionsOutput, error) { - if params == nil { - params = &ListRepositorySyncDefinitionsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListRepositorySyncDefinitions", params, optFns, c.addOperationListRepositorySyncDefinitionsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListRepositorySyncDefinitionsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListRepositorySyncDefinitionsInput struct { - - // The ID of the repository link for the sync definition for which you want to - // retrieve information. - // - // This member is required. - RepositoryLinkId *string - - // The sync type of the repository link for the the sync definition for which you - // want to retrieve information. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type ListRepositorySyncDefinitionsOutput struct { - - // The list of repository sync definitions returned by the request. A - // RepositorySyncDefinition is a mapping from a repository branch to all the Amazon - // Web Services resources that are being synced from that branch. - // - // This member is required. - RepositorySyncDefinitions []types.RepositorySyncDefinition - - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListRepositorySyncDefinitionsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpListRepositorySyncDefinitions{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListRepositorySyncDefinitions{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListRepositorySyncDefinitions"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpListRepositorySyncDefinitionsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListRepositorySyncDefinitions(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opListRepositorySyncDefinitions(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListRepositorySyncDefinitions", - } -} diff --git a/service/codestarconnections/api_op_ListSyncConfigurations.go b/service/codestarconnections/api_op_ListSyncConfigurations.go deleted file mode 100644 index a85df2d9b67..00000000000 --- a/service/codestarconnections/api_op_ListSyncConfigurations.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Returns a list of sync configurations for a specified repository. -func (c *Client) ListSyncConfigurations(ctx context.Context, params *ListSyncConfigurationsInput, optFns ...func(*Options)) (*ListSyncConfigurationsOutput, error) { - if params == nil { - params = &ListSyncConfigurationsInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "ListSyncConfigurations", params, optFns, c.addOperationListSyncConfigurationsMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*ListSyncConfigurationsOutput) - out.ResultMetadata = metadata - return out, nil -} - -type ListSyncConfigurationsInput struct { - - // The ID of the repository link for the requested list of sync configurations. - // - // This member is required. - RepositoryLinkId *string - - // The sync type for the requested list of sync configurations. - // - // This member is required. - SyncType types.SyncConfigurationType - - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults int32 - - // An enumeration token that allows the operation to batch the results of the - // operation. - NextToken *string - - noSmithyDocumentSerde -} - -type ListSyncConfigurationsOutput struct { - - // The list of repository sync definitions returned by the request. - // - // This member is required. - SyncConfigurations []types.SyncConfiguration - - // An enumeration token that allows the operation to batch the next results of the - // operation. - NextToken *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationListSyncConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpListSyncConfigurations{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpListSyncConfigurations{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "ListSyncConfigurations"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpListSyncConfigurationsValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSyncConfigurations(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -// ListSyncConfigurationsAPIClient is a client that implements the -// ListSyncConfigurations operation. -type ListSyncConfigurationsAPIClient interface { - ListSyncConfigurations(context.Context, *ListSyncConfigurationsInput, ...func(*Options)) (*ListSyncConfigurationsOutput, error) -} - -var _ ListSyncConfigurationsAPIClient = (*Client)(nil) - -// ListSyncConfigurationsPaginatorOptions is the paginator options for -// ListSyncConfigurations -type ListSyncConfigurationsPaginatorOptions struct { - // A non-zero, non-negative integer used to limit the number of returned 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 -} - -// ListSyncConfigurationsPaginator is a paginator for ListSyncConfigurations -type ListSyncConfigurationsPaginator struct { - options ListSyncConfigurationsPaginatorOptions - client ListSyncConfigurationsAPIClient - params *ListSyncConfigurationsInput - nextToken *string - firstPage bool -} - -// NewListSyncConfigurationsPaginator returns a new ListSyncConfigurationsPaginator -func NewListSyncConfigurationsPaginator(client ListSyncConfigurationsAPIClient, params *ListSyncConfigurationsInput, optFns ...func(*ListSyncConfigurationsPaginatorOptions)) *ListSyncConfigurationsPaginator { - if params == nil { - params = &ListSyncConfigurationsInput{} - } - - options := ListSyncConfigurationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults - } - - for _, fn := range optFns { - fn(&options) - } - - return &ListSyncConfigurationsPaginator{ - options: options, - client: client, - params: params, - firstPage: true, - nextToken: params.NextToken, - } -} - -// HasMorePages returns a boolean indicating whether more pages are available -func (p *ListSyncConfigurationsPaginator) HasMorePages() bool { - return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) -} - -// NextPage retrieves the next ListSyncConfigurations page. -func (p *ListSyncConfigurationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSyncConfigurationsOutput, error) { - if !p.HasMorePages() { - return nil, fmt.Errorf("no more pages available") - } - - params := *p.params - params.NextToken = p.nextToken - - params.MaxResults = p.options.Limit - - result, err := p.client.ListSyncConfigurations(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_opListSyncConfigurations(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "ListSyncConfigurations", - } -} diff --git a/service/codestarconnections/api_op_UpdateRepositoryLink.go b/service/codestarconnections/api_op_UpdateRepositoryLink.go deleted file mode 100644 index bc3d63df181..00000000000 --- a/service/codestarconnections/api_op_UpdateRepositoryLink.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates the association between your connection and a specified external Git -// repository. A repository link allows Git sync to monitor and sync changes to -// files in a specified Git repository. -func (c *Client) UpdateRepositoryLink(ctx context.Context, params *UpdateRepositoryLinkInput, optFns ...func(*Options)) (*UpdateRepositoryLinkOutput, error) { - if params == nil { - params = &UpdateRepositoryLinkInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateRepositoryLink", params, optFns, c.addOperationUpdateRepositoryLinkMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateRepositoryLinkOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateRepositoryLinkInput struct { - - // The ID of the repository link to be updated. - // - // This member is required. - RepositoryLinkId *string - - // The Amazon Resource Name (ARN) of the connection for the repository link to be - // updated. The updated connection ARN must have the same providerType (such as - // GitHub) as the original connection ARN for the repo link. - ConnectionArn *string - - // The Amazon Resource Name (ARN) of the encryption key for the repository link to - // be updated. - EncryptionKeyArn *string - - noSmithyDocumentSerde -} - -type UpdateRepositoryLinkOutput struct { - - // Information about the repository link to be updated. - // - // This member is required. - RepositoryLinkInfo *types.RepositoryLinkInfo - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateRepositoryLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateRepositoryLink{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateRepositoryLink{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateRepositoryLink"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateRepositoryLinkValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateRepositoryLink(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateRepositoryLink(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateRepositoryLink", - } -} diff --git a/service/codestarconnections/api_op_UpdateSyncBlocker.go b/service/codestarconnections/api_op_UpdateSyncBlocker.go deleted file mode 100644 index 761214ff502..00000000000 --- a/service/codestarconnections/api_op_UpdateSyncBlocker.go +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Allows you to update the status of a sync blocker, resolving the blocker and -// allowing syncing to continue. -func (c *Client) UpdateSyncBlocker(ctx context.Context, params *UpdateSyncBlockerInput, optFns ...func(*Options)) (*UpdateSyncBlockerOutput, error) { - if params == nil { - params = &UpdateSyncBlockerInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateSyncBlocker", params, optFns, c.addOperationUpdateSyncBlockerMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateSyncBlockerOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateSyncBlockerInput struct { - - // The ID of the sync blocker to be updated. - // - // This member is required. - Id *string - - // The reason for resolving the sync blocker. - // - // This member is required. - ResolvedReason *string - - // The name of the resource for the sync blocker to be updated. - // - // This member is required. - ResourceName *string - - // The sync type of the sync blocker to be updated. - // - // This member is required. - SyncType types.SyncConfigurationType - - noSmithyDocumentSerde -} - -type UpdateSyncBlockerOutput struct { - - // The resource name for the sync blocker. - // - // This member is required. - ResourceName *string - - // Information about the sync blocker to be updated. - // - // This member is required. - SyncBlocker *types.SyncBlocker - - // The parent resource name for the sync blocker. - ParentResourceName *string - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateSyncBlockerMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateSyncBlocker{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateSyncBlocker{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateSyncBlocker"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateSyncBlockerValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSyncBlocker(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateSyncBlocker(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateSyncBlocker", - } -} diff --git a/service/codestarconnections/api_op_UpdateSyncConfiguration.go b/service/codestarconnections/api_op_UpdateSyncConfiguration.go deleted file mode 100644 index 137466a5168..00000000000 --- a/service/codestarconnections/api_op_UpdateSyncConfiguration.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package codestarconnections - -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/codestarconnections/types" - "github.com/aws/smithy-go/middleware" - smithyhttp "github.com/aws/smithy-go/transport/http" -) - -// Updates the sync configuration for your connection and a specified external Git -// repository. -func (c *Client) UpdateSyncConfiguration(ctx context.Context, params *UpdateSyncConfigurationInput, optFns ...func(*Options)) (*UpdateSyncConfigurationOutput, error) { - if params == nil { - params = &UpdateSyncConfigurationInput{} - } - - result, metadata, err := c.invokeOperation(ctx, "UpdateSyncConfiguration", params, optFns, c.addOperationUpdateSyncConfigurationMiddlewares) - if err != nil { - return nil, err - } - - out := result.(*UpdateSyncConfigurationOutput) - out.ResultMetadata = metadata - return out, nil -} - -type UpdateSyncConfigurationInput struct { - - // The name of the Amazon Web Services resource for the sync configuration to be - // updated. - // - // This member is required. - ResourceName *string - - // The sync type for the sync configuration to be updated. - // - // This member is required. - SyncType types.SyncConfigurationType - - // The branch for the sync configuration to be updated. - Branch *string - - // The configuration file for the sync configuration to be updated. - ConfigFile *string - - // The ID of the repository link for the sync configuration to be updated. - RepositoryLinkId *string - - // The ARN of the IAM role for the sync configuration to be updated. - RoleArn *string - - noSmithyDocumentSerde -} - -type UpdateSyncConfigurationOutput struct { - - // The information returned for the sync configuration to be updated. - // - // This member is required. - SyncConfiguration *types.SyncConfiguration - - // Metadata pertaining to the operation's result. - ResultMetadata middleware.Metadata - - noSmithyDocumentSerde -} - -func (c *Client) addOperationUpdateSyncConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { - if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { - return err - } - err = stack.Serialize.Add(&awsAwsjson10_serializeOpUpdateSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpUpdateSyncConfiguration{}, middleware.After) - if err != nil { - return err - } - if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateSyncConfiguration"); err != nil { - return fmt.Errorf("add protocol finalizers: %v", err) - } - - if err = addlegacyEndpointContextSetter(stack, options); 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 = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { - return err - } - if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { - return err - } - if err = addClientUserAgent(stack, options); err != nil { - return err - } - if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { - return err - } - if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { - return err - } - if err = addOpUpdateSyncConfigurationValidationMiddleware(stack); err != nil { - return err - } - if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSyncConfiguration(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 - } - if err = addDisableHTTPSMiddleware(stack, options); err != nil { - return err - } - return nil -} - -func newServiceMetadataMiddleware_opUpdateSyncConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { - return &awsmiddleware.RegisterServiceMetadata{ - Region: region, - ServiceID: ServiceID, - OperationName: "UpdateSyncConfiguration", - } -} diff --git a/service/codestarconnections/deserializers.go b/service/codestarconnections/deserializers.go index d668c8e933e..5e73315c6ed 100644 --- a/service/codestarconnections/deserializers.go +++ b/service/codestarconnections/deserializers.go @@ -13,7 +13,6 @@ import ( 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" "strings" @@ -247,14 +246,14 @@ func awsAwsjson10_deserializeOpErrorCreateHost(response *smithyhttp.Response, me } } -type awsAwsjson10_deserializeOpCreateRepositoryLink struct { +type awsAwsjson10_deserializeOpDeleteConnection struct { } -func (*awsAwsjson10_deserializeOpCreateRepositoryLink) ID() string { +func (*awsAwsjson10_deserializeOpDeleteConnection) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpCreateRepositoryLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpDeleteConnection) 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) @@ -268,9 +267,9 @@ func (m *awsAwsjson10_deserializeOpCreateRepositoryLink) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorCreateRepositoryLink(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorDeleteConnection(response, &metadata) } - output := &CreateRepositoryLinkOutput{} + output := &DeleteConnectionOutput{} out.Result = output var buff [1024]byte @@ -290,7 +289,7 @@ func (m *awsAwsjson10_deserializeOpCreateRepositoryLink) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentCreateRepositoryLinkOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentDeleteConnectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -304,7 +303,7 @@ func (m *awsAwsjson10_deserializeOpCreateRepositoryLink) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson10_deserializeOpErrorCreateRepositoryLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorDeleteConnection(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)} @@ -345,26 +344,8 @@ func awsAwsjson10_deserializeOpErrorCreateRepositoryLink(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson10_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceAlreadyExistsException", errorCode): - return awsAwsjson10_deserializeErrorResourceAlreadyExistsException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -376,14 +357,14 @@ func awsAwsjson10_deserializeOpErrorCreateRepositoryLink(response *smithyhttp.Re } } -type awsAwsjson10_deserializeOpCreateSyncConfiguration struct { +type awsAwsjson10_deserializeOpDeleteHost struct { } -func (*awsAwsjson10_deserializeOpCreateSyncConfiguration) ID() string { +func (*awsAwsjson10_deserializeOpDeleteHost) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpCreateSyncConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpDeleteHost) 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) @@ -397,9 +378,9 @@ func (m *awsAwsjson10_deserializeOpCreateSyncConfiguration) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorCreateSyncConfiguration(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorDeleteHost(response, &metadata) } - output := &CreateSyncConfigurationOutput{} + output := &DeleteHostOutput{} out.Result = output var buff [1024]byte @@ -419,7 +400,7 @@ func (m *awsAwsjson10_deserializeOpCreateSyncConfiguration) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentCreateSyncConfigurationOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentDeleteHostOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -433,7 +414,7 @@ func (m *awsAwsjson10_deserializeOpCreateSyncConfiguration) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson10_deserializeOpErrorCreateSyncConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorDeleteHost(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)} @@ -474,26 +455,11 @@ func awsAwsjson10_deserializeOpErrorCreateSyncConfiguration(response *smithyhttp } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson10_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceAlreadyExistsException", errorCode): - return awsAwsjson10_deserializeErrorResourceAlreadyExistsException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorResourceUnavailableException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -505,14 +471,14 @@ func awsAwsjson10_deserializeOpErrorCreateSyncConfiguration(response *smithyhttp } } -type awsAwsjson10_deserializeOpDeleteConnection struct { +type awsAwsjson10_deserializeOpGetConnection struct { } -func (*awsAwsjson10_deserializeOpDeleteConnection) ID() string { +func (*awsAwsjson10_deserializeOpGetConnection) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpDeleteConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpGetConnection) 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) @@ -526,9 +492,9 @@ func (m *awsAwsjson10_deserializeOpDeleteConnection) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorDeleteConnection(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorGetConnection(response, &metadata) } - output := &DeleteConnectionOutput{} + output := &GetConnectionOutput{} out.Result = output var buff [1024]byte @@ -548,7 +514,7 @@ func (m *awsAwsjson10_deserializeOpDeleteConnection) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentDeleteConnectionOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentGetConnectionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -562,7 +528,7 @@ func (m *awsAwsjson10_deserializeOpDeleteConnection) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson10_deserializeOpErrorDeleteConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorGetConnection(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)} @@ -606,6 +572,9 @@ func awsAwsjson10_deserializeOpErrorDeleteConnection(response *smithyhttp.Respon case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorResourceUnavailableException(response, errorBody) + default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -616,14 +585,14 @@ func awsAwsjson10_deserializeOpErrorDeleteConnection(response *smithyhttp.Respon } } -type awsAwsjson10_deserializeOpDeleteHost struct { +type awsAwsjson10_deserializeOpGetHost struct { } -func (*awsAwsjson10_deserializeOpDeleteHost) ID() string { +func (*awsAwsjson10_deserializeOpGetHost) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpDeleteHost) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpGetHost) 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) @@ -637,9 +606,9 @@ func (m *awsAwsjson10_deserializeOpDeleteHost) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorDeleteHost(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorGetHost(response, &metadata) } - output := &DeleteHostOutput{} + output := &GetHostOutput{} out.Result = output var buff [1024]byte @@ -659,7 +628,7 @@ func (m *awsAwsjson10_deserializeOpDeleteHost) HandleDeserialize(ctx context.Con return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentDeleteHostOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentGetHostOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -673,7 +642,7 @@ func (m *awsAwsjson10_deserializeOpDeleteHost) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsAwsjson10_deserializeOpErrorDeleteHost(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorGetHost(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)} @@ -730,14 +699,14 @@ func awsAwsjson10_deserializeOpErrorDeleteHost(response *smithyhttp.Response, me } } -type awsAwsjson10_deserializeOpDeleteRepositoryLink struct { +type awsAwsjson10_deserializeOpListConnections struct { } -func (*awsAwsjson10_deserializeOpDeleteRepositoryLink) ID() string { +func (*awsAwsjson10_deserializeOpListConnections) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpDeleteRepositoryLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListConnections) 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) @@ -751,9 +720,9 @@ func (m *awsAwsjson10_deserializeOpDeleteRepositoryLink) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorDeleteRepositoryLink(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListConnections(response, &metadata) } - output := &DeleteRepositoryLinkOutput{} + output := &ListConnectionsOutput{} out.Result = output var buff [1024]byte @@ -773,7 +742,7 @@ func (m *awsAwsjson10_deserializeOpDeleteRepositoryLink) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentDeleteRepositoryLinkOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListConnectionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -787,7 +756,7 @@ func (m *awsAwsjson10_deserializeOpDeleteRepositoryLink) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson10_deserializeOpErrorDeleteRepositoryLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListConnections(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)} @@ -828,30 +797,9 @@ func awsAwsjson10_deserializeOpErrorDeleteRepositoryLink(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson10_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("SyncConfigurationStillExistsException", errorCode): - return awsAwsjson10_deserializeErrorSyncConfigurationStillExistsException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("UnsupportedProviderTypeException", errorCode): - return awsAwsjson10_deserializeErrorUnsupportedProviderTypeException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -862,14 +810,14 @@ func awsAwsjson10_deserializeOpErrorDeleteRepositoryLink(response *smithyhttp.Re } } -type awsAwsjson10_deserializeOpDeleteSyncConfiguration struct { +type awsAwsjson10_deserializeOpListHosts struct { } -func (*awsAwsjson10_deserializeOpDeleteSyncConfiguration) ID() string { +func (*awsAwsjson10_deserializeOpListHosts) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpDeleteSyncConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpListHosts) 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) @@ -883,9 +831,9 @@ func (m *awsAwsjson10_deserializeOpDeleteSyncConfiguration) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorDeleteSyncConfiguration(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListHosts(response, &metadata) } - output := &DeleteSyncConfigurationOutput{} + output := &ListHostsOutput{} out.Result = output var buff [1024]byte @@ -905,7 +853,7 @@ func (m *awsAwsjson10_deserializeOpDeleteSyncConfiguration) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentDeleteSyncConfigurationOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListHostsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -919,7 +867,7 @@ func (m *awsAwsjson10_deserializeOpDeleteSyncConfiguration) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson10_deserializeOpErrorDeleteSyncConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorListHosts(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)} @@ -960,24 +908,6 @@ func awsAwsjson10_deserializeOpErrorDeleteSyncConfiguration(response *smithyhttp } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson10_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("LimitExceededException", errorCode): - return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -988,14 +918,14 @@ func awsAwsjson10_deserializeOpErrorDeleteSyncConfiguration(response *smithyhttp } } -type awsAwsjson10_deserializeOpGetConnection struct { +type awsAwsjson10_deserializeOpListTagsForResource struct { } -func (*awsAwsjson10_deserializeOpGetConnection) ID() string { +func (*awsAwsjson10_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpGetConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_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) @@ -1009,9 +939,9 @@ func (m *awsAwsjson10_deserializeOpGetConnection) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorGetConnection(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &GetConnectionOutput{} + output := &ListTagsForResourceOutput{} out.Result = output var buff [1024]byte @@ -1031,7 +961,7 @@ func (m *awsAwsjson10_deserializeOpGetConnection) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentGetConnectionOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1045,7 +975,7 @@ func (m *awsAwsjson10_deserializeOpGetConnection) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson10_deserializeOpErrorGetConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_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)} @@ -1089,9 +1019,6 @@ func awsAwsjson10_deserializeOpErrorGetConnection(response *smithyhttp.Response, case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson10_deserializeErrorResourceUnavailableException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1102,14 +1029,14 @@ func awsAwsjson10_deserializeOpErrorGetConnection(response *smithyhttp.Response, } } -type awsAwsjson10_deserializeOpGetHost struct { +type awsAwsjson10_deserializeOpTagResource struct { } -func (*awsAwsjson10_deserializeOpGetHost) ID() string { +func (*awsAwsjson10_deserializeOpTagResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpGetHost) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_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) @@ -1123,9 +1050,9 @@ func (m *awsAwsjson10_deserializeOpGetHost) HandleDeserialize(ctx context.Contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorGetHost(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorTagResource(response, &metadata) } - output := &GetHostOutput{} + output := &TagResourceOutput{} out.Result = output var buff [1024]byte @@ -1145,7 +1072,7 @@ func (m *awsAwsjson10_deserializeOpGetHost) HandleDeserialize(ctx context.Contex return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentGetHostOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentTagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1159,7 +1086,7 @@ func (m *awsAwsjson10_deserializeOpGetHost) HandleDeserialize(ctx context.Contex return out, metadata, err } -func awsAwsjson10_deserializeOpErrorGetHost(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_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)} @@ -1200,12 +1127,12 @@ func awsAwsjson10_deserializeOpErrorGetHost(response *smithyhttp.Response, metad } switch { + case strings.EqualFold("LimitExceededException", errorCode): + return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson10_deserializeErrorResourceUnavailableException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1216,14 +1143,14 @@ func awsAwsjson10_deserializeOpErrorGetHost(response *smithyhttp.Response, metad } } -type awsAwsjson10_deserializeOpGetRepositoryLink struct { +type awsAwsjson10_deserializeOpUntagResource struct { } -func (*awsAwsjson10_deserializeOpGetRepositoryLink) ID() string { +func (*awsAwsjson10_deserializeOpUntagResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpGetRepositoryLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_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) @@ -1237,9 +1164,9 @@ func (m *awsAwsjson10_deserializeOpGetRepositoryLink) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorGetRepositoryLink(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorUntagResource(response, &metadata) } - output := &GetRepositoryLinkOutput{} + output := &UntagResourceOutput{} out.Result = output var buff [1024]byte @@ -1259,7 +1186,7 @@ func (m *awsAwsjson10_deserializeOpGetRepositoryLink) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentGetRepositoryLinkOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentUntagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1273,7 +1200,7 @@ func (m *awsAwsjson10_deserializeOpGetRepositoryLink) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson10_deserializeOpErrorGetRepositoryLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_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)} @@ -1314,24 +1241,9 @@ func awsAwsjson10_deserializeOpErrorGetRepositoryLink(response *smithyhttp.Respo } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson10_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - default: genericError := &smithy.GenericAPIError{ Code: errorCode, @@ -1342,14 +1254,14 @@ func awsAwsjson10_deserializeOpErrorGetRepositoryLink(response *smithyhttp.Respo } } -type awsAwsjson10_deserializeOpGetRepositorySyncStatus struct { +type awsAwsjson10_deserializeOpUpdateHost struct { } -func (*awsAwsjson10_deserializeOpGetRepositorySyncStatus) ID() string { +func (*awsAwsjson10_deserializeOpUpdateHost) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson10_deserializeOpGetRepositorySyncStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson10_deserializeOpUpdateHost) 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) @@ -1363,9 +1275,9 @@ func (m *awsAwsjson10_deserializeOpGetRepositorySyncStatus) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorGetRepositorySyncStatus(response, &metadata) + return out, metadata, awsAwsjson10_deserializeOpErrorUpdateHost(response, &metadata) } - output := &GetRepositorySyncStatusOutput{} + output := &UpdateHostOutput{} out.Result = output var buff [1024]byte @@ -1385,7 +1297,7 @@ func (m *awsAwsjson10_deserializeOpGetRepositorySyncStatus) HandleDeserialize(ct return out, metadata, err } - err = awsAwsjson10_deserializeOpDocumentGetRepositorySyncStatusOutput(&output, shape) + err = awsAwsjson10_deserializeOpDocumentUpdateHostOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1399,7 +1311,7 @@ func (m *awsAwsjson10_deserializeOpGetRepositorySyncStatus) HandleDeserialize(ct return out, metadata, err } -func awsAwsjson10_deserializeOpErrorGetRepositorySyncStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson10_deserializeOpErrorUpdateHost(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)} @@ -1440,20 +1352,17 @@ func awsAwsjson10_deserializeOpErrorGetRepositorySyncStatus(response *smithyhttp } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson10_deserializeErrorConflictException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ResourceUnavailableException", errorCode): + return awsAwsjson10_deserializeErrorResourceUnavailableException(response, errorBody) + + case strings.EqualFold("UnsupportedOperationException", errorCode): + return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody) default: genericError := &smithy.GenericAPIError{ @@ -1465,36 +1374,46 @@ func awsAwsjson10_deserializeOpErrorGetRepositorySyncStatus(response *smithyhttp } } -type awsAwsjson10_deserializeOpGetResourceSyncStatus struct { -} - -func (*awsAwsjson10_deserializeOpGetResourceSyncStatus) ID() string { - return "OperationDeserializer" -} +func awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) -func (m *awsAwsjson10_deserializeOpGetResourceSyncStatus) 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 + 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 } - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } + output := &types.ConflictException{} + err := awsAwsjson10_deserializeDocumentConflictException(&output, shape) - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson10_deserializeOpErrorGetResourceSyncStatus(response, &metadata) + 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 } - output := &GetResourceSyncStatusOutput{} - out.Result = output + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) + body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -1505,10 +1424,12 @@ func (m *awsAwsjson10_deserializeOpGetResourceSyncStatus) HandleDeserialize(ctx Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err + return err } - err = awsAwsjson10_deserializeOpDocumentGetResourceSyncStatusOutput(&output, shape) + output := &types.LimitExceededException{} + err := awsAwsjson10_deserializeDocumentLimitExceededException(&output, shape) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1516,34 +1437,34 @@ func (m *awsAwsjson10_deserializeOpGetResourceSyncStatus) HandleDeserialize(ctx Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return out, metadata, err + return err } - return out, metadata, err + errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson10_deserializeOpErrorGetResourceSyncStatus(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) - } - +func awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { 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) + 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 + } + + output := &types.ResourceNotFoundException{} + err := awsAwsjson10_deserializeDocumentResourceNotFoundException(&output, shape) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1555,242 +1476,18 @@ func awsAwsjson10_deserializeOpErrorGetResourceSyncStatus(response *smithyhttp.R } 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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpGetSyncBlockerSummary struct { -} - -func (*awsAwsjson10_deserializeOpGetSyncBlockerSummary) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpGetSyncBlockerSummary) 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, awsAwsjson10_deserializeOpErrorGetSyncBlockerSummary(response, &metadata) - } - output := &GetSyncBlockerSummaryOutput{} - 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 = awsAwsjson10_deserializeOpDocumentGetSyncBlockerSummaryOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorGetSyncBlockerSummary(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) - } + return output +} +func awsAwsjson10_deserializeErrorResourceUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { 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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpGetSyncConfiguration struct { -} - -func (*awsAwsjson10_deserializeOpGetSyncConfiguration) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpGetSyncConfiguration) 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, awsAwsjson10_deserializeOpErrorGetSyncConfiguration(response, &metadata) - } - output := &GetSyncConfigurationOutput{} - 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 = awsAwsjson10_deserializeOpDocumentGetSyncConfigurationOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorGetSyncConfiguration(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{ @@ -1800,4169 +1497,59 @@ func awsAwsjson10_deserializeOpErrorGetSyncConfiguration(response *smithyhttp.Re 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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpListConnections struct { -} - -func (*awsAwsjson10_deserializeOpListConnections) ID() string { - return "OperationDeserializer" -} + output := &types.ResourceUnavailableException{} + err := awsAwsjson10_deserializeDocumentResourceUnavailableException(&output, shape) -func (m *awsAwsjson10_deserializeOpListConnections) 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, awsAwsjson10_deserializeOpErrorListConnections(response, &metadata) - } - output := &ListConnectionsOutput{} - 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 = awsAwsjson10_deserializeOpDocumentListConnectionsOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorListConnections(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("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpListHosts struct { -} - -func (*awsAwsjson10_deserializeOpListHosts) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpListHosts) 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, awsAwsjson10_deserializeOpErrorListHosts(response, &metadata) - } - output := &ListHostsOutput{} - 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 = awsAwsjson10_deserializeOpDocumentListHostsOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorListHosts(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 { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpListRepositoryLinks struct { -} - -func (*awsAwsjson10_deserializeOpListRepositoryLinks) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpListRepositoryLinks) 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, awsAwsjson10_deserializeOpErrorListRepositoryLinks(response, &metadata) - } - output := &ListRepositoryLinksOutput{} - 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 = awsAwsjson10_deserializeOpDocumentListRepositoryLinksOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorListRepositoryLinks(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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson10_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpListRepositorySyncDefinitions struct { -} - -func (*awsAwsjson10_deserializeOpListRepositorySyncDefinitions) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpListRepositorySyncDefinitions) 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, awsAwsjson10_deserializeOpErrorListRepositorySyncDefinitions(response, &metadata) - } - output := &ListRepositorySyncDefinitionsOutput{} - 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 = awsAwsjson10_deserializeOpDocumentListRepositorySyncDefinitionsOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorListRepositorySyncDefinitions(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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpListSyncConfigurations struct { -} - -func (*awsAwsjson10_deserializeOpListSyncConfigurations) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpListSyncConfigurations) 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, awsAwsjson10_deserializeOpErrorListSyncConfigurations(response, &metadata) - } - output := &ListSyncConfigurationsOutput{} - 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 = awsAwsjson10_deserializeOpDocumentListSyncConfigurationsOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorListSyncConfigurations(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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpListTagsForResource struct { -} - -func (*awsAwsjson10_deserializeOpListTagsForResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_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, awsAwsjson10_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 = awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_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("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpTagResource struct { -} - -func (*awsAwsjson10_deserializeOpTagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_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, awsAwsjson10_deserializeOpErrorTagResource(response, &metadata) - } - output := &TagResourceOutput{} - 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 = awsAwsjson10_deserializeOpDocumentTagResourceOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_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("LimitExceededException", errorCode): - return awsAwsjson10_deserializeErrorLimitExceededException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpUntagResource struct { -} - -func (*awsAwsjson10_deserializeOpUntagResource) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_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, awsAwsjson10_deserializeOpErrorUntagResource(response, &metadata) - } - output := &UntagResourceOutput{} - 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 = awsAwsjson10_deserializeOpDocumentUntagResourceOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_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("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpUpdateHost struct { -} - -func (*awsAwsjson10_deserializeOpUpdateHost) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpUpdateHost) 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, awsAwsjson10_deserializeOpErrorUpdateHost(response, &metadata) - } - output := &UpdateHostOutput{} - 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 = awsAwsjson10_deserializeOpDocumentUpdateHostOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorUpdateHost(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("ConflictException", errorCode): - return awsAwsjson10_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceUnavailableException", errorCode): - return awsAwsjson10_deserializeErrorResourceUnavailableException(response, errorBody) - - case strings.EqualFold("UnsupportedOperationException", errorCode): - return awsAwsjson10_deserializeErrorUnsupportedOperationException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpUpdateRepositoryLink struct { -} - -func (*awsAwsjson10_deserializeOpUpdateRepositoryLink) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpUpdateRepositoryLink) 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, awsAwsjson10_deserializeOpErrorUpdateRepositoryLink(response, &metadata) - } - output := &UpdateRepositoryLinkOutput{} - 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 = awsAwsjson10_deserializeOpDocumentUpdateRepositoryLinkOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorUpdateRepositoryLink(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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConditionalCheckFailedException", errorCode): - return awsAwsjson10_deserializeErrorConditionalCheckFailedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("UpdateOutOfSyncException", errorCode): - return awsAwsjson10_deserializeErrorUpdateOutOfSyncException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpUpdateSyncBlocker struct { -} - -func (*awsAwsjson10_deserializeOpUpdateSyncBlocker) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpUpdateSyncBlocker) 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, awsAwsjson10_deserializeOpErrorUpdateSyncBlocker(response, &metadata) - } - output := &UpdateSyncBlockerOutput{} - 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 = awsAwsjson10_deserializeOpDocumentUpdateSyncBlockerOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorUpdateSyncBlocker(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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("RetryLatestCommitFailedException", errorCode): - return awsAwsjson10_deserializeErrorRetryLatestCommitFailedException(response, errorBody) - - case strings.EqualFold("SyncBlockerDoesNotExistException", errorCode): - return awsAwsjson10_deserializeErrorSyncBlockerDoesNotExistException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsjson10_deserializeOpUpdateSyncConfiguration struct { -} - -func (*awsAwsjson10_deserializeOpUpdateSyncConfiguration) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsjson10_deserializeOpUpdateSyncConfiguration) 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, awsAwsjson10_deserializeOpErrorUpdateSyncConfiguration(response, &metadata) - } - output := &UpdateSyncConfigurationOutput{} - 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 = awsAwsjson10_deserializeOpDocumentUpdateSyncConfigurationOutput(&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 out, metadata, err - } - - return out, metadata, err -} - -func awsAwsjson10_deserializeOpErrorUpdateSyncConfiguration(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 awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConcurrentModificationException", errorCode): - return awsAwsjson10_deserializeErrorConcurrentModificationException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) - - case strings.EqualFold("InvalidInputException", errorCode): - return awsAwsjson10_deserializeErrorInvalidInputException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) - - case strings.EqualFold("UpdateOutOfSyncException", errorCode): - return awsAwsjson10_deserializeErrorUpdateOutOfSyncException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsAwsjson10_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.AccessDeniedException{} - err := awsAwsjson10_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 awsAwsjson10_deserializeErrorConcurrentModificationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.ConcurrentModificationException{} - err := awsAwsjson10_deserializeDocumentConcurrentModificationException(&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 awsAwsjson10_deserializeErrorConditionalCheckFailedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.ConditionalCheckFailedException{} - err := awsAwsjson10_deserializeDocumentConditionalCheckFailedException(&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 awsAwsjson10_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.ConflictException{} - err := awsAwsjson10_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 awsAwsjson10_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.InternalServerException{} - err := awsAwsjson10_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) - return output -} - -func awsAwsjson10_deserializeErrorInvalidInputException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.InvalidInputException{} - err := awsAwsjson10_deserializeDocumentInvalidInputException(&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 awsAwsjson10_deserializeErrorLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.LimitExceededException{} - err := awsAwsjson10_deserializeDocumentLimitExceededException(&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 awsAwsjson10_deserializeErrorResourceAlreadyExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.ResourceAlreadyExistsException{} - err := awsAwsjson10_deserializeDocumentResourceAlreadyExistsException(&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 awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.ResourceNotFoundException{} - err := awsAwsjson10_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 awsAwsjson10_deserializeErrorResourceUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.ResourceUnavailableException{} - err := awsAwsjson10_deserializeDocumentResourceUnavailableException(&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 awsAwsjson10_deserializeErrorRetryLatestCommitFailedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.RetryLatestCommitFailedException{} - err := awsAwsjson10_deserializeDocumentRetryLatestCommitFailedException(&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 awsAwsjson10_deserializeErrorSyncBlockerDoesNotExistException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.SyncBlockerDoesNotExistException{} - err := awsAwsjson10_deserializeDocumentSyncBlockerDoesNotExistException(&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 awsAwsjson10_deserializeErrorSyncConfigurationStillExistsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.SyncConfigurationStillExistsException{} - err := awsAwsjson10_deserializeDocumentSyncConfigurationStillExistsException(&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 awsAwsjson10_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.ThrottlingException{} - err := awsAwsjson10_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) - return output -} - -func awsAwsjson10_deserializeErrorUnsupportedOperationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.UnsupportedOperationException{} - err := awsAwsjson10_deserializeDocumentUnsupportedOperationException(&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 awsAwsjson10_deserializeErrorUnsupportedProviderTypeException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.UnsupportedProviderTypeException{} - err := awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(&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 awsAwsjson10_deserializeErrorUpdateOutOfSyncException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - 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 - } - - output := &types.UpdateOutOfSyncException{} - err := awsAwsjson10_deserializeDocumentUpdateOutOfSyncException(&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 awsAwsjson10_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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentConcurrentModificationException(v **types.ConcurrentModificationException, 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.ConcurrentModificationException - if *v == nil { - sv = &types.ConcurrentModificationException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentConditionalCheckFailedException(v **types.ConditionalCheckFailedException, 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.ConditionalCheckFailedException - if *v == nil { - sv = &types.ConditionalCheckFailedException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentConnection(v **types.Connection, 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.Connection - if *v == nil { - sv = &types.Connection{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ConnectionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) - } - sv.ConnectionArn = ptr.String(jtv) - } - - case "ConnectionName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) - } - sv.ConnectionName = ptr.String(jtv) - } - - case "ConnectionStatus": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectionStatus to be of type string, got %T instead", value) - } - sv.ConnectionStatus = types.ConnectionStatus(jtv) - } - - case "HostArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HostArn to be of type string, got %T instead", value) - } - sv.HostArn = ptr.String(jtv) - } - - case "OwnerAccountId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) - } - sv.OwnerAccountId = ptr.String(jtv) - } - - case "ProviderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) - } - sv.ProviderType = types.ProviderType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentConnectionList(v *[]types.Connection, 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.Connection - if *v == nil { - cv = []types.Connection{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Connection - destAddr := &col - if err := awsAwsjson10_deserializeDocumentConnection(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentHost(v **types.Host, 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.Host - if *v == nil { - sv = &types.Host{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "HostArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HostArn to be of type string, got %T instead", value) - } - sv.HostArn = ptr.String(jtv) - } - - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HostName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "ProviderEndpoint": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Url to be of type string, got %T instead", value) - } - sv.ProviderEndpoint = ptr.String(jtv) - } - - case "ProviderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) - } - sv.ProviderType = types.ProviderType(jtv) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HostStatus to be of type string, got %T instead", value) - } - sv.Status = ptr.String(jtv) - } - - case "StatusMessage": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HostStatusMessage to be of type string, got %T instead", value) - } - sv.StatusMessage = ptr.String(jtv) - } - - case "VpcConfiguration": - if err := awsAwsjson10_deserializeDocumentVpcConfiguration(&sv.VpcConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentHostList(v *[]types.Host, 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.Host - if *v == nil { - cv = []types.Host{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Host - destAddr := &col - if err := awsAwsjson10_deserializeDocumentHost(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentInvalidInputException(v **types.InvalidInputException, 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.InvalidInputException - if *v == nil { - sv = &types.InvalidInputException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentLatestSyncBlockerList(v *[]types.SyncBlocker, 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.SyncBlocker - if *v == nil { - cv = []types.SyncBlocker{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SyncBlocker - destAddr := &col - if err := awsAwsjson10_deserializeDocumentSyncBlocker(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExceededException, 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.LimitExceededException - if *v == nil { - sv = &types.LimitExceededException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentRepositoryLinkInfo(v **types.RepositoryLinkInfo, 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.RepositoryLinkInfo - if *v == nil { - sv = &types.RepositoryLinkInfo{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "ConnectionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) - } - sv.ConnectionArn = ptr.String(jtv) - } - - case "EncryptionKeyArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected KmsKeyArn to be of type string, got %T instead", value) - } - sv.EncryptionKeyArn = ptr.String(jtv) - } - - case "OwnerId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value) - } - sv.OwnerId = ptr.String(jtv) - } - - case "ProviderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) - } - sv.ProviderType = types.ProviderType(jtv) - } - - case "RepositoryLinkArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RepositoryLinkArn to be of type string, got %T instead", value) - } - sv.RepositoryLinkArn = ptr.String(jtv) - } - - case "RepositoryLinkId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RepositoryLinkId to be of type string, got %T instead", value) - } - sv.RepositoryLinkId = ptr.String(jtv) - } - - case "RepositoryName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) - } - sv.RepositoryName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentRepositoryLinkList(v *[]types.RepositoryLinkInfo, 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.RepositoryLinkInfo - if *v == nil { - cv = []types.RepositoryLinkInfo{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RepositoryLinkInfo - destAddr := &col - if err := awsAwsjson10_deserializeDocumentRepositoryLinkInfo(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentRepositorySyncAttempt(v **types.RepositorySyncAttempt, 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.RepositorySyncAttempt - if *v == nil { - sv = &types.RepositorySyncAttempt{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Events": - if err := awsAwsjson10_deserializeDocumentRepositorySyncEventList(&sv.Events, value); err != nil { - return err - } - - case "StartedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RepositorySyncStatus to be of type string, got %T instead", value) - } - sv.Status = types.RepositorySyncStatus(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentRepositorySyncDefinition(v **types.RepositorySyncDefinition, 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.RepositorySyncDefinition - if *v == nil { - sv = &types.RepositorySyncDefinition{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Branch": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) - } - sv.Branch = ptr.String(jtv) - } - - case "Directory": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Directory to be of type string, got %T instead", value) - } - sv.Directory = ptr.String(jtv) - } - - case "Parent": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Parent to be of type string, got %T instead", value) - } - sv.Parent = ptr.String(jtv) - } - - case "Target": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Target to be of type string, got %T instead", value) - } - sv.Target = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentRepositorySyncDefinitionList(v *[]types.RepositorySyncDefinition, 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.RepositorySyncDefinition - if *v == nil { - cv = []types.RepositorySyncDefinition{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RepositorySyncDefinition - destAddr := &col - if err := awsAwsjson10_deserializeDocumentRepositorySyncDefinition(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentRepositorySyncEvent(v **types.RepositorySyncEvent, 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.RepositorySyncEvent - if *v == nil { - sv = &types.RepositorySyncEvent{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Event": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Event to be of type string, got %T instead", value) - } - sv.Event = ptr.String(jtv) - } - - case "ExternalId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ExternalId to be of type string, got %T instead", value) - } - sv.ExternalId = ptr.String(jtv) - } - - case "Time": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Time = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Type to be of type string, got %T instead", value) - } - sv.Type = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentRepositorySyncEventList(v *[]types.RepositorySyncEvent, 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.RepositorySyncEvent - if *v == nil { - cv = []types.RepositorySyncEvent{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.RepositorySyncEvent - destAddr := &col - if err := awsAwsjson10_deserializeDocumentRepositorySyncEvent(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentResourceAlreadyExistsException(v **types.ResourceAlreadyExistsException, 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.ResourceAlreadyExistsException - if *v == nil { - sv = &types.ResourceAlreadyExistsException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentResourceSyncAttempt(v **types.ResourceSyncAttempt, 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.ResourceSyncAttempt - if *v == nil { - sv = &types.ResourceSyncAttempt{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Events": - if err := awsAwsjson10_deserializeDocumentResourceSyncEventList(&sv.Events, value); err != nil { - return err - } - - case "InitialRevision": - if err := awsAwsjson10_deserializeDocumentRevision(&sv.InitialRevision, value); err != nil { - return err - } - - case "StartedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceSyncStatus to be of type string, got %T instead", value) - } - sv.Status = types.ResourceSyncStatus(jtv) - } - - case "Target": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Target to be of type string, got %T instead", value) - } - sv.Target = ptr.String(jtv) - } - - case "TargetRevision": - if err := awsAwsjson10_deserializeDocumentRevision(&sv.TargetRevision, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentResourceSyncEvent(v **types.ResourceSyncEvent, 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.ResourceSyncEvent - if *v == nil { - sv = &types.ResourceSyncEvent{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Event": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Event to be of type string, got %T instead", value) - } - sv.Event = ptr.String(jtv) - } - - case "ExternalId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ExternalId to be of type string, got %T instead", value) - } - sv.ExternalId = ptr.String(jtv) - } - - case "Time": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.Time = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Type to be of type string, got %T instead", value) - } - sv.Type = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentResourceSyncEventList(v *[]types.ResourceSyncEvent, 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.ResourceSyncEvent - if *v == nil { - cv = []types.ResourceSyncEvent{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.ResourceSyncEvent - destAddr := &col - if err := awsAwsjson10_deserializeDocumentResourceSyncEvent(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.ResourceUnavailableException, 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.ResourceUnavailableException - if *v == nil { - sv = &types.ResourceUnavailableException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentRetryLatestCommitFailedException(v **types.RetryLatestCommitFailedException, 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.RetryLatestCommitFailedException - if *v == nil { - sv = &types.RetryLatestCommitFailedException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentRevision(v **types.Revision, 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.Revision - if *v == nil { - sv = &types.Revision{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Branch": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) - } - sv.Branch = ptr.String(jtv) - } - - case "Directory": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Directory to be of type string, got %T instead", value) - } - sv.Directory = ptr.String(jtv) - } - - case "OwnerId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value) - } - sv.OwnerId = ptr.String(jtv) - } - - case "ProviderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) - } - sv.ProviderType = types.ProviderType(jtv) - } - - case "RepositoryName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) - } - sv.RepositoryName = ptr.String(jtv) - } - - case "Sha": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SHA to be of type string, got %T instead", value) - } - sv.Sha = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_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 awsAwsjson10_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 awsAwsjson10_deserializeDocumentSyncBlocker(v **types.SyncBlocker, 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.SyncBlocker - if *v == nil { - sv = &types.SyncBlocker{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Contexts": - if err := awsAwsjson10_deserializeDocumentSyncBlockerContextList(&sv.Contexts, value); err != nil { - return err - } - - case "CreatedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.CreatedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "CreatedReason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected CreatedReason to be of type string, got %T instead", value) - } - sv.CreatedReason = ptr.String(jtv) - } - - case "Id": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Id to be of type string, got %T instead", value) - } - sv.Id = ptr.String(jtv) - } - - case "ResolvedAt": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ResolvedAt = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) - - } - } - - case "ResolvedReason": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResolvedReason to be of type string, got %T instead", value) - } - sv.ResolvedReason = ptr.String(jtv) - } - - case "Status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BlockerStatus to be of type string, got %T instead", value) - } - sv.Status = types.BlockerStatus(jtv) - } - - case "Type": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BlockerType to be of type string, got %T instead", value) - } - sv.Type = types.BlockerType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentSyncBlockerContext(v **types.SyncBlockerContext, 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.SyncBlockerContext - if *v == nil { - sv = &types.SyncBlockerContext{} - } 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 SyncBlockerContextKey to be of type string, got %T instead", value) - } - sv.Key = ptr.String(jtv) - } - - case "Value": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SyncBlockerContextValue to be of type string, got %T instead", value) - } - sv.Value = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentSyncBlockerContextList(v *[]types.SyncBlockerContext, 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.SyncBlockerContext - if *v == nil { - cv = []types.SyncBlockerContext{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SyncBlockerContext - destAddr := &col - if err := awsAwsjson10_deserializeDocumentSyncBlockerContext(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentSyncBlockerDoesNotExistException(v **types.SyncBlockerDoesNotExistException, 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.SyncBlockerDoesNotExistException - if *v == nil { - sv = &types.SyncBlockerDoesNotExistException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentSyncBlockerSummary(v **types.SyncBlockerSummary, 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.SyncBlockerSummary - if *v == nil { - sv = &types.SyncBlockerSummary{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "LatestBlockers": - if err := awsAwsjson10_deserializeDocumentLatestSyncBlockerList(&sv.LatestBlockers, value); err != nil { - return err - } - - case "ParentResourceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.ParentResourceName = ptr.String(jtv) - } - - case "ResourceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.ResourceName = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentSyncConfiguration(v **types.SyncConfiguration, 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.SyncConfiguration - if *v == nil { - sv = &types.SyncConfiguration{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "Branch": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected BranchName to be of type string, got %T instead", value) - } - sv.Branch = ptr.String(jtv) - } - - case "ConfigFile": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected DeploymentFilePath to be of type string, got %T instead", value) - } - sv.ConfigFile = ptr.String(jtv) - } - - case "OwnerId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected OwnerId to be of type string, got %T instead", value) - } - sv.OwnerId = ptr.String(jtv) - } - - case "ProviderType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) - } - sv.ProviderType = types.ProviderType(jtv) - } - - case "RepositoryLinkId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RepositoryLinkId to be of type string, got %T instead", value) - } - sv.RepositoryLinkId = ptr.String(jtv) - } - - case "RepositoryName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected RepositoryName to be of type string, got %T instead", value) - } - sv.RepositoryName = ptr.String(jtv) - } - - case "ResourceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.ResourceName = ptr.String(jtv) - } - - case "RoleArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) - } - sv.RoleArn = ptr.String(jtv) - } - - case "SyncType": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected SyncConfigurationType to be of type string, got %T instead", value) - } - sv.SyncType = types.SyncConfigurationType(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentSyncConfigurationList(v *[]types.SyncConfiguration, 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.SyncConfiguration - if *v == nil { - cv = []types.SyncConfiguration{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.SyncConfiguration - destAddr := &col - if err := awsAwsjson10_deserializeDocumentSyncConfiguration(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_deserializeDocumentSyncConfigurationStillExistsException(v **types.SyncConfigurationStillExistsException, 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.SyncConfigurationStillExistsException - if *v == nil { - sv = &types.SyncConfigurationStillExistsException{} - } 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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentTag(v **types.Tag, 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.Tag - if *v == nil { - sv = &types.Tag{} - } 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 TagKey to be of type string, got %T instead", value) - } - sv.Key = ptr.String(jtv) - } - - case "Value": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) - } - sv.Value = ptr.String(jtv) - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, 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.Tag - if *v == nil { - cv = []types.Tag{} - } else { - cv = *v - } - - for _, value := range shape { - var col types.Tag - destAddr := &col - if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { - return err - } - col = *destAddr - cv = append(cv, col) - - } - *v = cv - return nil -} - -func awsAwsjson10_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 ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value - + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return err } - *v = sv - return nil -} -func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.UnsupportedOperationException, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + errorBody.Seek(0, io.SeekStart) + return output +} - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } +func awsAwsjson10_deserializeErrorUnsupportedOperationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) - var sv *types.UnsupportedOperationException - if *v == nil { - sv = &types.UnsupportedOperationException{} - } else { - sv = *v + 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 } - for key, value := range shape { - switch key { - case "Message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) - } - - default: - _, _ = key, value + output := &types.UnsupportedOperationException{} + err := awsAwsjson10_deserializeDocumentUnsupportedOperationException(&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 } - *v = sv - return nil + + errorBody.Seek(0, io.SeekStart) + return output } -func awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(v **types.UnsupportedProviderTypeException, value interface{}) error { +func awsAwsjson10_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -5975,9 +1562,9 @@ func awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(v **types. return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.UnsupportedProviderTypeException + var sv *types.ConflictException if *v == nil { - sv = &types.UnsupportedProviderTypeException{} + sv = &types.ConflictException{} } else { sv = *v } @@ -6002,7 +1589,7 @@ func awsAwsjson10_deserializeDocumentUnsupportedProviderTypeException(v **types. return nil } -func awsAwsjson10_deserializeDocumentUpdateOutOfSyncException(v **types.UpdateOutOfSyncException, value interface{}) error { +func awsAwsjson10_deserializeDocumentConnection(v **types.Connection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6015,81 +1602,67 @@ func awsAwsjson10_deserializeDocumentUpdateOutOfSyncException(v **types.UpdateOu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.UpdateOutOfSyncException + var sv *types.Connection if *v == nil { - sv = &types.UpdateOutOfSyncException{} + sv = &types.Connection{} } else { sv = *v } for key, value := range shape { switch key { - case "Message": + case "ConnectionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) } - sv.Message = ptr.String(jtv) + sv.ConnectionArn = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_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 - } + case "ConnectionName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConnectionName to be of type string, got %T instead", value) + } + sv.ConnectionName = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "SecurityGroupIds": - if err := awsAwsjson10_deserializeDocumentSecurityGroupIds(&sv.SecurityGroupIds, value); err != nil { - return err + case "ConnectionStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ConnectionStatus to be of type string, got %T instead", value) + } + sv.ConnectionStatus = types.ConnectionStatus(jtv) } - case "SubnetIds": - if err := awsAwsjson10_deserializeDocumentSubnetIds(&sv.SubnetIds, value); err != nil { - return err + case "HostArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostArn to be of type string, got %T instead", value) + } + sv.HostArn = ptr.String(jtv) } - case "TlsCertificate": + case "OwnerAccountId": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected TlsCertificate to be of type string, got %T instead", value) + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) } - sv.TlsCertificate = ptr.String(jtv) + sv.OwnerAccountId = ptr.String(jtv) } - case "VpcId": + case "ProviderType": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) + return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) } - sv.VpcId = ptr.String(jtv) + sv.ProviderType = types.ProviderType(jtv) } default: @@ -6101,7 +1674,7 @@ func awsAwsjson10_deserializeDocumentVpcConfiguration(v **types.VpcConfiguration return nil } -func awsAwsjson10_deserializeOpDocumentCreateConnectionOutput(v **CreateConnectionOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentConnectionList(v *[]types.Connection, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6109,44 +1682,33 @@ func awsAwsjson10_deserializeOpDocumentCreateConnectionOutput(v **CreateConnecti return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateConnectionOutput + var cv []types.Connection if *v == nil { - sv = &CreateConnectionOutput{} + cv = []types.Connection{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "ConnectionArn": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) - } - sv.ConnectionArn = ptr.String(jtv) - } - - case "Tags": - if err := awsAwsjson10_deserializeDocumentTagList(&sv.Tags, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.Connection + destAddr := &col + if err := awsAwsjson10_deserializeDocumentConnection(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson10_deserializeOpDocumentCreateHostOutput(v **CreateHostOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentHost(v **types.Host, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6159,9 +1721,9 @@ func awsAwsjson10_deserializeOpDocumentCreateHostOutput(v **CreateHostOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateHostOutput + var sv *types.Host if *v == nil { - sv = &CreateHostOutput{} + sv = &types.Host{} } else { sv = *v } @@ -6177,44 +1739,53 @@ func awsAwsjson10_deserializeOpDocumentCreateHostOutput(v **CreateHostOutput, va sv.HostArn = ptr.String(jtv) } - case "Tags": - if err := awsAwsjson10_deserializeDocumentTagList(&sv.Tags, value); err != nil { - return err + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) } - default: - _, _ = key, value - - } - } - *v = sv - return nil -} + case "ProviderEndpoint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Url to be of type string, got %T instead", value) + } + sv.ProviderEndpoint = ptr.String(jtv) + } -func awsAwsjson10_deserializeOpDocumentCreateRepositoryLinkOutput(v **CreateRepositoryLinkOutput, value interface{}) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - if value == nil { - return nil - } + case "ProviderType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) + } + sv.ProviderType = types.ProviderType(jtv) + } - shape, ok := value.(map[string]interface{}) - if !ok { - return fmt.Errorf("unexpected JSON type %v", value) - } + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostStatus to be of type string, got %T instead", value) + } + sv.Status = ptr.String(jtv) + } - var sv *CreateRepositoryLinkOutput - if *v == nil { - sv = &CreateRepositoryLinkOutput{} - } else { - sv = *v - } + case "StatusMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostStatusMessage to be of type string, got %T instead", value) + } + sv.StatusMessage = ptr.String(jtv) + } - for key, value := range shape { - switch key { - case "RepositoryLinkInfo": - if err := awsAwsjson10_deserializeDocumentRepositoryLinkInfo(&sv.RepositoryLinkInfo, value); err != nil { + case "VpcConfiguration": + if err := awsAwsjson10_deserializeDocumentVpcConfiguration(&sv.VpcConfiguration, value); err != nil { return err } @@ -6227,7 +1798,7 @@ func awsAwsjson10_deserializeOpDocumentCreateRepositoryLinkOutput(v **CreateRepo return nil } -func awsAwsjson10_deserializeOpDocumentCreateSyncConfigurationOutput(v **CreateSyncConfigurationOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentHostList(v *[]types.Host, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6235,35 +1806,33 @@ func awsAwsjson10_deserializeOpDocumentCreateSyncConfigurationOutput(v **CreateS return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateSyncConfigurationOutput + var cv []types.Host if *v == nil { - sv = &CreateSyncConfigurationOutput{} + cv = []types.Host{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "SyncConfiguration": - if err := awsAwsjson10_deserializeDocumentSyncConfiguration(&sv.SyncConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.Host + destAddr := &col + if err := awsAwsjson10_deserializeDocumentHost(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson10_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnectionOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentLimitExceededException(v **types.LimitExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6276,15 +1845,24 @@ func awsAwsjson10_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteConnectionOutput + var sv *types.LimitExceededException if *v == nil { - sv = &DeleteConnectionOutput{} + sv = &types.LimitExceededException{} } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + default: _, _ = key, value @@ -6294,7 +1872,7 @@ func awsAwsjson10_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnecti return nil } -func awsAwsjson10_deserializeOpDocumentDeleteHostOutput(v **DeleteHostOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6307,15 +1885,24 @@ func awsAwsjson10_deserializeOpDocumentDeleteHostOutput(v **DeleteHostOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteHostOutput + var sv *types.ResourceNotFoundException if *v == nil { - sv = &DeleteHostOutput{} + 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + default: _, _ = key, value @@ -6325,7 +1912,7 @@ func awsAwsjson10_deserializeOpDocumentDeleteHostOutput(v **DeleteHostOutput, va return nil } -func awsAwsjson10_deserializeOpDocumentDeleteRepositoryLinkOutput(v **DeleteRepositoryLinkOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentResourceUnavailableException(v **types.ResourceUnavailableException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6338,15 +1925,24 @@ func awsAwsjson10_deserializeOpDocumentDeleteRepositoryLinkOutput(v **DeleteRepo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteRepositoryLinkOutput + var sv *types.ResourceUnavailableException if *v == nil { - sv = &DeleteRepositoryLinkOutput{} + sv = &types.ResourceUnavailableException{} } 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 ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + default: _, _ = key, value @@ -6356,7 +1952,7 @@ func awsAwsjson10_deserializeOpDocumentDeleteRepositoryLinkOutput(v **DeleteRepo return nil } -func awsAwsjson10_deserializeOpDocumentDeleteSyncConfigurationOutput(v **DeleteSyncConfigurationOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentSecurityGroupIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6364,30 +1960,35 @@ func awsAwsjson10_deserializeOpDocumentDeleteSyncConfigurationOutput(v **DeleteS return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteSyncConfigurationOutput + var cv []string if *v == nil { - sv = &DeleteSyncConfigurationOutput{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - default: - _, _ = key, value - + 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 = sv + *v = cv return nil } -func awsAwsjson10_deserializeOpDocumentGetConnectionOutput(v **GetConnectionOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentSubnetIds(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6395,35 +1996,35 @@ func awsAwsjson10_deserializeOpDocumentGetConnectionOutput(v **GetConnectionOutp return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetConnectionOutput + var cv []string if *v == nil { - sv = &GetConnectionOutput{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "Connection": - if err := awsAwsjson10_deserializeDocumentConnection(&sv.Connection, value); err != nil { - return err + 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) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson10_deserializeOpDocumentGetHostOutput(v **GetHostOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentTag(v **types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6436,126 +2037,31 @@ func awsAwsjson10_deserializeOpDocumentGetHostOutput(v **GetHostOutput, value in return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetHostOutput + var sv *types.Tag if *v == nil { - sv = &GetHostOutput{} + sv = &types.Tag{} } else { sv = *v } for key, value := range shape { switch key { - case "Name": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected HostName to be of type string, got %T instead", value) - } - sv.Name = ptr.String(jtv) - } - - case "ProviderEndpoint": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected Url to be of type string, got %T instead", value) - } - sv.ProviderEndpoint = ptr.String(jtv) - } - - case "ProviderType": + case "Key": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) + return fmt.Errorf("expected TagKey to be of type string, got %T instead", value) } - sv.ProviderType = types.ProviderType(jtv) + sv.Key = ptr.String(jtv) } - case "Status": + case "Value": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected HostStatus to be of type string, got %T instead", value) + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) } - sv.Status = ptr.String(jtv) - } - - case "VpcConfiguration": - if err := awsAwsjson10_deserializeDocumentVpcConfiguration(&sv.VpcConfiguration, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeOpDocumentGetRepositoryLinkOutput(v **GetRepositoryLinkOutput, 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 *GetRepositoryLinkOutput - if *v == nil { - sv = &GetRepositoryLinkOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "RepositoryLinkInfo": - if err := awsAwsjson10_deserializeDocumentRepositoryLinkInfo(&sv.RepositoryLinkInfo, value); err != nil { - return err - } - - default: - _, _ = key, value - - } - } - *v = sv - return nil -} - -func awsAwsjson10_deserializeOpDocumentGetRepositorySyncStatusOutput(v **GetRepositorySyncStatusOutput, 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 *GetRepositorySyncStatusOutput - if *v == nil { - sv = &GetRepositorySyncStatusOutput{} - } else { - sv = *v - } - - for key, value := range shape { - switch key { - case "LatestSync": - if err := awsAwsjson10_deserializeDocumentRepositorySyncAttempt(&sv.LatestSync, value); err != nil { - return err + sv.Value = ptr.String(jtv) } default: @@ -6567,7 +2073,7 @@ func awsAwsjson10_deserializeOpDocumentGetRepositorySyncStatusOutput(v **GetRepo return nil } -func awsAwsjson10_deserializeOpDocumentGetResourceSyncStatusOutput(v **GetResourceSyncStatusOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentTagList(v *[]types.Tag, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6575,45 +2081,33 @@ func awsAwsjson10_deserializeOpDocumentGetResourceSyncStatusOutput(v **GetResour return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetResourceSyncStatusOutput + var cv []types.Tag if *v == nil { - sv = &GetResourceSyncStatusOutput{} + cv = []types.Tag{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "DesiredState": - if err := awsAwsjson10_deserializeDocumentRevision(&sv.DesiredState, value); err != nil { - return err - } - - case "LatestSuccessfulSync": - if err := awsAwsjson10_deserializeDocumentResourceSyncAttempt(&sv.LatestSuccessfulSync, value); err != nil { - return err - } - - case "LatestSync": - if err := awsAwsjson10_deserializeDocumentResourceSyncAttempt(&sv.LatestSync, value); err != nil { - return err - } - - default: - _, _ = key, value - + for _, value := range shape { + var col types.Tag + destAddr := &col + if err := awsAwsjson10_deserializeDocumentTag(&destAddr, value); err != nil { + return err } + col = *destAddr + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsAwsjson10_deserializeOpDocumentGetSyncBlockerSummaryOutput(v **GetSyncBlockerSummaryOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentUnsupportedOperationException(v **types.UnsupportedOperationException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6626,18 +2120,22 @@ func awsAwsjson10_deserializeOpDocumentGetSyncBlockerSummaryOutput(v **GetSyncBl return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSyncBlockerSummaryOutput + var sv *types.UnsupportedOperationException if *v == nil { - sv = &GetSyncBlockerSummaryOutput{} + sv = &types.UnsupportedOperationException{} } else { sv = *v } for key, value := range shape { switch key { - case "SyncBlockerSummary": - if err := awsAwsjson10_deserializeDocumentSyncBlockerSummary(&sv.SyncBlockerSummary, value); err != nil { - return err + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) } default: @@ -6649,7 +2147,7 @@ func awsAwsjson10_deserializeOpDocumentGetSyncBlockerSummaryOutput(v **GetSyncBl return nil } -func awsAwsjson10_deserializeOpDocumentGetSyncConfigurationOutput(v **GetSyncConfigurationOutput, value interface{}) error { +func awsAwsjson10_deserializeDocumentVpcConfiguration(v **types.VpcConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6662,20 +2160,43 @@ func awsAwsjson10_deserializeOpDocumentGetSyncConfigurationOutput(v **GetSyncCon return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetSyncConfigurationOutput + var sv *types.VpcConfiguration if *v == nil { - sv = &GetSyncConfigurationOutput{} + sv = &types.VpcConfiguration{} } else { sv = *v } for key, value := range shape { switch key { - case "SyncConfiguration": - if err := awsAwsjson10_deserializeDocumentSyncConfiguration(&sv.SyncConfiguration, value); err != nil { + case "SecurityGroupIds": + if err := awsAwsjson10_deserializeDocumentSecurityGroupIds(&sv.SecurityGroupIds, value); err != nil { + return err + } + + case "SubnetIds": + if err := awsAwsjson10_deserializeDocumentSubnetIds(&sv.SubnetIds, value); err != nil { return err } + case "TlsCertificate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TlsCertificate to be of type string, got %T instead", value) + } + sv.TlsCertificate = ptr.String(jtv) + } + + case "VpcId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VpcId to be of type string, got %T instead", value) + } + sv.VpcId = ptr.String(jtv) + } + default: _, _ = key, value @@ -6685,7 +2206,7 @@ func awsAwsjson10_deserializeOpDocumentGetSyncConfigurationOutput(v **GetSyncCon return nil } -func awsAwsjson10_deserializeOpDocumentListConnectionsOutput(v **ListConnectionsOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentCreateConnectionOutput(v **CreateConnectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6698,27 +2219,27 @@ func awsAwsjson10_deserializeOpDocumentListConnectionsOutput(v **ListConnections return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListConnectionsOutput + var sv *CreateConnectionOutput if *v == nil { - sv = &ListConnectionsOutput{} + sv = &CreateConnectionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Connections": - if err := awsAwsjson10_deserializeDocumentConnectionList(&sv.Connections, value); err != nil { - return err - } - - case "NextToken": + case "ConnectionArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected ConnectionArn to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.ConnectionArn = ptr.String(jtv) + } + + case "Tags": + if err := awsAwsjson10_deserializeDocumentTagList(&sv.Tags, value); err != nil { + return err } default: @@ -6730,7 +2251,7 @@ func awsAwsjson10_deserializeOpDocumentListConnectionsOutput(v **ListConnections return nil } -func awsAwsjson10_deserializeOpDocumentListHostsOutput(v **ListHostsOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentCreateHostOutput(v **CreateHostOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6743,27 +2264,27 @@ func awsAwsjson10_deserializeOpDocumentListHostsOutput(v **ListHostsOutput, valu return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListHostsOutput + var sv *CreateHostOutput if *v == nil { - sv = &ListHostsOutput{} + sv = &CreateHostOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Hosts": - if err := awsAwsjson10_deserializeDocumentHostList(&sv.Hosts, value); err != nil { - return err - } - - case "NextToken": + case "HostArn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + return fmt.Errorf("expected HostArn to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.HostArn = ptr.String(jtv) + } + + case "Tags": + if err := awsAwsjson10_deserializeDocumentTagList(&sv.Tags, value); err != nil { + return err } default: @@ -6775,7 +2296,7 @@ func awsAwsjson10_deserializeOpDocumentListHostsOutput(v **ListHostsOutput, valu return nil } -func awsAwsjson10_deserializeOpDocumentListRepositoryLinksOutput(v **ListRepositoryLinksOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDeleteConnectionOutput(v **DeleteConnectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6788,29 +2309,15 @@ func awsAwsjson10_deserializeOpDocumentListRepositoryLinksOutput(v **ListReposit return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListRepositoryLinksOutput + var sv *DeleteConnectionOutput if *v == nil { - sv = &ListRepositoryLinksOutput{} + sv = &DeleteConnectionOutput{} } 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 SharpNextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "RepositoryLinks": - if err := awsAwsjson10_deserializeDocumentRepositoryLinkList(&sv.RepositoryLinks, value); err != nil { - return err - } - default: _, _ = key, value @@ -6820,7 +2327,7 @@ func awsAwsjson10_deserializeOpDocumentListRepositoryLinksOutput(v **ListReposit return nil } -func awsAwsjson10_deserializeOpDocumentListRepositorySyncDefinitionsOutput(v **ListRepositorySyncDefinitionsOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentDeleteHostOutput(v **DeleteHostOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6833,29 +2340,15 @@ func awsAwsjson10_deserializeOpDocumentListRepositorySyncDefinitionsOutput(v **L return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListRepositorySyncDefinitionsOutput + var sv *DeleteHostOutput if *v == nil { - sv = &ListRepositorySyncDefinitionsOutput{} + sv = &DeleteHostOutput{} } 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 SharpNextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "RepositorySyncDefinitions": - if err := awsAwsjson10_deserializeDocumentRepositorySyncDefinitionList(&sv.RepositorySyncDefinitions, value); err != nil { - return err - } - default: _, _ = key, value @@ -6865,7 +2358,7 @@ func awsAwsjson10_deserializeOpDocumentListRepositorySyncDefinitionsOutput(v **L return nil } -func awsAwsjson10_deserializeOpDocumentListSyncConfigurationsOutput(v **ListSyncConfigurationsOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentGetConnectionOutput(v **GetConnectionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6878,26 +2371,17 @@ func awsAwsjson10_deserializeOpDocumentListSyncConfigurationsOutput(v **ListSync return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListSyncConfigurationsOutput + var sv *GetConnectionOutput if *v == nil { - sv = &ListSyncConfigurationsOutput{} + sv = &GetConnectionOutput{} } 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 SharpNextToken to be of type string, got %T instead", value) - } - sv.NextToken = ptr.String(jtv) - } - - case "SyncConfigurations": - if err := awsAwsjson10_deserializeDocumentSyncConfigurationList(&sv.SyncConfigurations, value); err != nil { + case "Connection": + if err := awsAwsjson10_deserializeDocumentConnection(&sv.Connection, value); err != nil { return err } @@ -6910,7 +2394,7 @@ func awsAwsjson10_deserializeOpDocumentListSyncConfigurationsOutput(v **ListSync return nil } -func awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentGetHostOutput(v **GetHostOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6923,17 +2407,53 @@ func awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListTagsForResourceOutput + var sv *GetHostOutput if *v == nil { - sv = &ListTagsForResourceOutput{} + sv = &GetHostOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "Tags": - if err := awsAwsjson10_deserializeDocumentTagList(&sv.Tags, value); err != nil { + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ProviderEndpoint": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Url to be of type string, got %T instead", value) + } + sv.ProviderEndpoint = ptr.String(jtv) + } + + case "ProviderType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ProviderType to be of type string, got %T instead", value) + } + sv.ProviderType = types.ProviderType(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected HostStatus to be of type string, got %T instead", value) + } + sv.Status = ptr.String(jtv) + } + + case "VpcConfiguration": + if err := awsAwsjson10_deserializeDocumentVpcConfiguration(&sv.VpcConfiguration, value); err != nil { return err } @@ -6946,7 +2466,7 @@ func awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsFor return nil } -func awsAwsjson10_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentListConnectionsOutput(v **ListConnectionsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6959,15 +2479,29 @@ func awsAwsjson10_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, return fmt.Errorf("unexpected JSON type %v", value) } - var sv *TagResourceOutput + var sv *ListConnectionsOutput if *v == nil { - sv = &TagResourceOutput{} + sv = &ListConnectionsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Connections": + if err := awsAwsjson10_deserializeDocumentConnectionList(&sv.Connections, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + default: _, _ = key, value @@ -6977,7 +2511,7 @@ func awsAwsjson10_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, return nil } -func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentListHostsOutput(v **ListHostsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -6990,15 +2524,29 @@ func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UntagResourceOutput + var sv *ListHostsOutput if *v == nil { - sv = &UntagResourceOutput{} + sv = &ListHostsOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Hosts": + if err := awsAwsjson10_deserializeDocumentHostList(&sv.Hosts, value); err != nil { + return err + } + + case "NextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + default: _, _ = key, value @@ -7008,7 +2556,7 @@ func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutp return nil } -func awsAwsjson10_deserializeOpDocumentUpdateHostOutput(v **UpdateHostOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7021,15 +2569,20 @@ func awsAwsjson10_deserializeOpDocumentUpdateHostOutput(v **UpdateHostOutput, va return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateHostOutput + var sv *ListTagsForResourceOutput if *v == nil { - sv = &UpdateHostOutput{} + sv = &ListTagsForResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "Tags": + if err := awsAwsjson10_deserializeDocumentTagList(&sv.Tags, value); err != nil { + return err + } + default: _, _ = key, value @@ -7039,7 +2592,7 @@ func awsAwsjson10_deserializeOpDocumentUpdateHostOutput(v **UpdateHostOutput, va return nil } -func awsAwsjson10_deserializeOpDocumentUpdateRepositoryLinkOutput(v **UpdateRepositoryLinkOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentTagResourceOutput(v **TagResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7052,20 +2605,15 @@ func awsAwsjson10_deserializeOpDocumentUpdateRepositoryLinkOutput(v **UpdateRepo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateRepositoryLinkOutput + var sv *TagResourceOutput if *v == nil { - sv = &UpdateRepositoryLinkOutput{} + sv = &TagResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "RepositoryLinkInfo": - if err := awsAwsjson10_deserializeDocumentRepositoryLinkInfo(&sv.RepositoryLinkInfo, value); err != nil { - return err - } - default: _, _ = key, value @@ -7075,7 +2623,7 @@ func awsAwsjson10_deserializeOpDocumentUpdateRepositoryLinkOutput(v **UpdateRepo return nil } -func awsAwsjson10_deserializeOpDocumentUpdateSyncBlockerOutput(v **UpdateSyncBlockerOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentUntagResourceOutput(v **UntagResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7088,38 +2636,15 @@ func awsAwsjson10_deserializeOpDocumentUpdateSyncBlockerOutput(v **UpdateSyncBlo return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateSyncBlockerOutput + var sv *UntagResourceOutput if *v == nil { - sv = &UpdateSyncBlockerOutput{} + sv = &UntagResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "ParentResourceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.ParentResourceName = ptr.String(jtv) - } - - case "ResourceName": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) - } - sv.ResourceName = ptr.String(jtv) - } - - case "SyncBlocker": - if err := awsAwsjson10_deserializeDocumentSyncBlocker(&sv.SyncBlocker, value); err != nil { - return err - } - default: _, _ = key, value @@ -7129,7 +2654,7 @@ func awsAwsjson10_deserializeOpDocumentUpdateSyncBlockerOutput(v **UpdateSyncBlo return nil } -func awsAwsjson10_deserializeOpDocumentUpdateSyncConfigurationOutput(v **UpdateSyncConfigurationOutput, value interface{}) error { +func awsAwsjson10_deserializeOpDocumentUpdateHostOutput(v **UpdateHostOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -7142,20 +2667,15 @@ func awsAwsjson10_deserializeOpDocumentUpdateSyncConfigurationOutput(v **UpdateS return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateSyncConfigurationOutput + var sv *UpdateHostOutput if *v == nil { - sv = &UpdateSyncConfigurationOutput{} + sv = &UpdateHostOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "SyncConfiguration": - if err := awsAwsjson10_deserializeDocumentSyncConfiguration(&sv.SyncConfiguration, value); err != nil { - return err - } - default: _, _ = key, value diff --git a/service/codestarconnections/generated.json b/service/codestarconnections/generated.json index abfec3c6d9c..4dff4c80aed 100644 --- a/service/codestarconnections/generated.json +++ b/service/codestarconnections/generated.json @@ -11,31 +11,16 @@ "api_client_test.go", "api_op_CreateConnection.go", "api_op_CreateHost.go", - "api_op_CreateRepositoryLink.go", - "api_op_CreateSyncConfiguration.go", "api_op_DeleteConnection.go", "api_op_DeleteHost.go", - "api_op_DeleteRepositoryLink.go", - "api_op_DeleteSyncConfiguration.go", "api_op_GetConnection.go", "api_op_GetHost.go", - "api_op_GetRepositoryLink.go", - "api_op_GetRepositorySyncStatus.go", - "api_op_GetResourceSyncStatus.go", - "api_op_GetSyncBlockerSummary.go", - "api_op_GetSyncConfiguration.go", "api_op_ListConnections.go", "api_op_ListHosts.go", - "api_op_ListRepositoryLinks.go", - "api_op_ListRepositorySyncDefinitions.go", - "api_op_ListSyncConfigurations.go", "api_op_ListTagsForResource.go", "api_op_TagResource.go", "api_op_UntagResource.go", "api_op_UpdateHost.go", - "api_op_UpdateRepositoryLink.go", - "api_op_UpdateSyncBlocker.go", - "api_op_UpdateSyncConfiguration.go", "auth.go", "deserializers.go", "doc.go", diff --git a/service/codestarconnections/serializers.go b/service/codestarconnections/serializers.go index 3f199d22537..16f2d2ef888 100644 --- a/service/codestarconnections/serializers.go +++ b/service/codestarconnections/serializers.go @@ -125,116 +125,6 @@ func (m *awsAwsjson10_serializeOpCreateHost) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpCreateRepositoryLink struct { -} - -func (*awsAwsjson10_serializeOpCreateRepositoryLink) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpCreateRepositoryLink) 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.(*CreateRepositoryLinkInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.CreateRepositoryLink") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentCreateRepositoryLinkInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpCreateSyncConfiguration struct { -} - -func (*awsAwsjson10_serializeOpCreateSyncConfiguration) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpCreateSyncConfiguration) 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.(*CreateSyncConfigurationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.CreateSyncConfiguration") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentCreateSyncConfigurationInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsAwsjson10_serializeOpDeleteConnection struct { } @@ -345,116 +235,6 @@ func (m *awsAwsjson10_serializeOpDeleteHost) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpDeleteRepositoryLink struct { -} - -func (*awsAwsjson10_serializeOpDeleteRepositoryLink) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpDeleteRepositoryLink) 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.(*DeleteRepositoryLinkInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.DeleteRepositoryLink") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentDeleteRepositoryLinkInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpDeleteSyncConfiguration struct { -} - -func (*awsAwsjson10_serializeOpDeleteSyncConfiguration) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpDeleteSyncConfiguration) 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.(*DeleteSyncConfigurationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.DeleteSyncConfiguration") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentDeleteSyncConfigurationInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - type awsAwsjson10_serializeOpGetConnection struct { } @@ -565,619 +345,14 @@ func (m *awsAwsjson10_serializeOpGetHost) HandleSerialize(ctx context.Context, i return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpGetRepositoryLink struct { -} - -func (*awsAwsjson10_serializeOpGetRepositoryLink) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpGetRepositoryLink) 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.(*GetRepositoryLinkInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.GetRepositoryLink") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentGetRepositoryLinkInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpGetRepositorySyncStatus struct { -} - -func (*awsAwsjson10_serializeOpGetRepositorySyncStatus) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpGetRepositorySyncStatus) 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.(*GetRepositorySyncStatusInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.GetRepositorySyncStatus") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentGetRepositorySyncStatusInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpGetResourceSyncStatus struct { -} - -func (*awsAwsjson10_serializeOpGetResourceSyncStatus) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpGetResourceSyncStatus) 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.(*GetResourceSyncStatusInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.GetResourceSyncStatus") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentGetResourceSyncStatusInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpGetSyncBlockerSummary struct { -} - -func (*awsAwsjson10_serializeOpGetSyncBlockerSummary) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpGetSyncBlockerSummary) 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.(*GetSyncBlockerSummaryInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.GetSyncBlockerSummary") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentGetSyncBlockerSummaryInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpGetSyncConfiguration struct { -} - -func (*awsAwsjson10_serializeOpGetSyncConfiguration) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpGetSyncConfiguration) 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.(*GetSyncConfigurationInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.GetSyncConfiguration") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentGetSyncConfigurationInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpListConnections struct { -} - -func (*awsAwsjson10_serializeOpListConnections) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpListConnections) 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.(*ListConnectionsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListConnections") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListConnectionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpListHosts struct { -} - -func (*awsAwsjson10_serializeOpListHosts) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpListHosts) 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.(*ListHostsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListHosts") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListHostsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpListRepositoryLinks struct { -} - -func (*awsAwsjson10_serializeOpListRepositoryLinks) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpListRepositoryLinks) 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.(*ListRepositoryLinksInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListRepositoryLinks") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListRepositoryLinksInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpListRepositorySyncDefinitions struct { -} - -func (*awsAwsjson10_serializeOpListRepositorySyncDefinitions) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpListRepositorySyncDefinitions) 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.(*ListRepositorySyncDefinitionsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListRepositorySyncDefinitions") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListRepositorySyncDefinitionsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpListSyncConfigurations struct { -} - -func (*awsAwsjson10_serializeOpListSyncConfigurations) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_serializeOpListSyncConfigurations) 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.(*ListSyncConfigurationsInput) - _ = input - if !ok { - return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListSyncConfigurations") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListSyncConfigurationsInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpListTagsForResource struct { -} - -func (*awsAwsjson10_serializeOpListTagsForResource) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsjson10_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)} - } - - operationPath := "/" - if len(request.Request.URL.Path) == 0 { - request.Request.URL.Path = operationPath - } else { - request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) - if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { - request.Request.URL.Path += "/" - } - } - request.Request.Method = "POST" - httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListTagsForResource") - - jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentListTagsForResourceInput(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 = httpBindingEncoder.Encode(request.Request); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - in.Request = request - - return next.HandleSerialize(ctx, in) -} - -type awsAwsjson10_serializeOpTagResource struct { +type awsAwsjson10_serializeOpListConnections struct { } -func (*awsAwsjson10_serializeOpTagResource) ID() string { +func (*awsAwsjson10_serializeOpListConnections) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpListConnections) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1185,7 +360,7 @@ func (m *awsAwsjson10_serializeOpTagResource) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*TagResourceInput) + input, ok := in.Parameters.(*ListConnectionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1206,10 +381,10 @@ func (m *awsAwsjson10_serializeOpTagResource) HandleSerialize(ctx context.Contex return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.TagResource") + httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListConnections") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentListConnectionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1225,14 +400,14 @@ func (m *awsAwsjson10_serializeOpTagResource) HandleSerialize(ctx context.Contex return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpUntagResource struct { +type awsAwsjson10_serializeOpListHosts struct { } -func (*awsAwsjson10_serializeOpUntagResource) ID() string { +func (*awsAwsjson10_serializeOpListHosts) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpListHosts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1240,7 +415,7 @@ func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UntagResourceInput) + input, ok := in.Parameters.(*ListHostsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1261,10 +436,10 @@ func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.UntagResource") + httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListHosts") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentUntagResourceInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentListHostsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1280,14 +455,14 @@ func (m *awsAwsjson10_serializeOpUntagResource) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpUpdateHost struct { +type awsAwsjson10_serializeOpListTagsForResource struct { } -func (*awsAwsjson10_serializeOpUpdateHost) ID() string { +func (*awsAwsjson10_serializeOpListTagsForResource) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpUpdateHost) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_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) @@ -1295,7 +470,7 @@ func (m *awsAwsjson10_serializeOpUpdateHost) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateHostInput) + input, ok := in.Parameters.(*ListTagsForResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1316,10 +491,10 @@ func (m *awsAwsjson10_serializeOpUpdateHost) HandleSerialize(ctx context.Context return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.UpdateHost") + httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.ListTagsForResource") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentUpdateHostInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentListTagsForResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1335,14 +510,14 @@ func (m *awsAwsjson10_serializeOpUpdateHost) HandleSerialize(ctx context.Context return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpUpdateRepositoryLink struct { +type awsAwsjson10_serializeOpTagResource struct { } -func (*awsAwsjson10_serializeOpUpdateRepositoryLink) ID() string { +func (*awsAwsjson10_serializeOpTagResource) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpUpdateRepositoryLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_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) @@ -1350,7 +525,7 @@ func (m *awsAwsjson10_serializeOpUpdateRepositoryLink) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateRepositoryLinkInput) + input, ok := in.Parameters.(*TagResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1371,10 +546,10 @@ func (m *awsAwsjson10_serializeOpUpdateRepositoryLink) HandleSerialize(ctx conte return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.UpdateRepositoryLink") + httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.TagResource") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentUpdateRepositoryLinkInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1390,14 +565,14 @@ func (m *awsAwsjson10_serializeOpUpdateRepositoryLink) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpUpdateSyncBlocker struct { +type awsAwsjson10_serializeOpUntagResource struct { } -func (*awsAwsjson10_serializeOpUpdateSyncBlocker) ID() string { +func (*awsAwsjson10_serializeOpUntagResource) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpUpdateSyncBlocker) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_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) @@ -1405,7 +580,7 @@ func (m *awsAwsjson10_serializeOpUpdateSyncBlocker) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateSyncBlockerInput) + input, ok := in.Parameters.(*UntagResourceInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1426,10 +601,10 @@ func (m *awsAwsjson10_serializeOpUpdateSyncBlocker) HandleSerialize(ctx context. return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.UpdateSyncBlocker") + httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.UntagResource") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentUpdateSyncBlockerInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentUntagResourceInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1445,14 +620,14 @@ func (m *awsAwsjson10_serializeOpUpdateSyncBlocker) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } -type awsAwsjson10_serializeOpUpdateSyncConfiguration struct { +type awsAwsjson10_serializeOpUpdateHost struct { } -func (*awsAwsjson10_serializeOpUpdateSyncConfiguration) ID() string { +func (*awsAwsjson10_serializeOpUpdateHost) ID() string { return "OperationSerializer" } -func (m *awsAwsjson10_serializeOpUpdateSyncConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson10_serializeOpUpdateHost) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1460,7 +635,7 @@ func (m *awsAwsjson10_serializeOpUpdateSyncConfiguration) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*UpdateSyncConfigurationInput) + input, ok := in.Parameters.(*UpdateHostInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1481,10 +656,10 @@ func (m *awsAwsjson10_serializeOpUpdateSyncConfiguration) HandleSerialize(ctx co return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") - httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.UpdateSyncConfiguration") + httpBindingEncoder.SetHeader("X-Amz-Target").String("CodeStar_connections_20191201.UpdateHost") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson10_serializeOpDocumentUpdateSyncConfigurationInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson10_serializeOpDocumentUpdateHostInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1658,77 +833,6 @@ func awsAwsjson10_serializeOpDocumentCreateHostInput(v *CreateHostInput, value s return nil } -func awsAwsjson10_serializeOpDocumentCreateRepositoryLinkInput(v *CreateRepositoryLinkInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ConnectionArn != nil { - ok := object.Key("ConnectionArn") - ok.String(*v.ConnectionArn) - } - - if v.EncryptionKeyArn != nil { - ok := object.Key("EncryptionKeyArn") - ok.String(*v.EncryptionKeyArn) - } - - if v.OwnerId != nil { - ok := object.Key("OwnerId") - ok.String(*v.OwnerId) - } - - if v.RepositoryName != nil { - ok := object.Key("RepositoryName") - ok.String(*v.RepositoryName) - } - - if v.Tags != nil { - ok := object.Key("Tags") - if err := awsAwsjson10_serializeDocumentTagList(v.Tags, ok); err != nil { - return err - } - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentCreateSyncConfigurationInput(v *CreateSyncConfigurationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Branch != nil { - ok := object.Key("Branch") - ok.String(*v.Branch) - } - - if v.ConfigFile != nil { - ok := object.Key("ConfigFile") - ok.String(*v.ConfigFile) - } - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - if v.ResourceName != nil { - ok := object.Key("ResourceName") - ok.String(*v.ResourceName) - } - - if v.RoleArn != nil { - ok := object.Key("RoleArn") - ok.String(*v.RoleArn) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - func awsAwsjson10_serializeOpDocumentDeleteConnectionInput(v *DeleteConnectionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1753,35 +857,6 @@ func awsAwsjson10_serializeOpDocumentDeleteHostInput(v *DeleteHostInput, value s return nil } -func awsAwsjson10_serializeOpDocumentDeleteRepositoryLinkInput(v *DeleteRepositoryLinkInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentDeleteSyncConfigurationInput(v *DeleteSyncConfigurationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ResourceName != nil { - ok := object.Key("ResourceName") - ok.String(*v.ResourceName) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - func awsAwsjson10_serializeOpDocumentGetConnectionInput(v *GetConnectionInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1806,91 +881,6 @@ func awsAwsjson10_serializeOpDocumentGetHostInput(v *GetHostInput, value smithyj return nil } -func awsAwsjson10_serializeOpDocumentGetRepositoryLinkInput(v *GetRepositoryLinkInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentGetRepositorySyncStatusInput(v *GetRepositorySyncStatusInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Branch != nil { - ok := object.Key("Branch") - ok.String(*v.Branch) - } - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentGetResourceSyncStatusInput(v *GetResourceSyncStatusInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ResourceName != nil { - ok := object.Key("ResourceName") - ok.String(*v.ResourceName) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentGetSyncBlockerSummaryInput(v *GetSyncBlockerSummaryInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ResourceName != nil { - ok := object.Key("ResourceName") - ok.String(*v.ResourceName) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentGetSyncConfigurationInput(v *GetSyncConfigurationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ResourceName != nil { - ok := object.Key("ResourceName") - ok.String(*v.ResourceName) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - func awsAwsjson10_serializeOpDocumentListConnectionsInput(v *ListConnectionsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -1935,67 +925,6 @@ func awsAwsjson10_serializeOpDocumentListHostsInput(v *ListHostsInput, value smi return nil } -func awsAwsjson10_serializeOpDocumentListRepositoryLinksInput(v *ListRepositoryLinksInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != 0 { - ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentListRepositorySyncDefinitionsInput(v *ListRepositorySyncDefinitionsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentListSyncConfigurationsInput(v *ListSyncConfigurationsInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.MaxResults != 0 { - ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) - } - - if v.NextToken != nil { - ok := object.Key("NextToken") - ok.String(*v.NextToken) - } - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - func awsAwsjson10_serializeOpDocumentListTagsForResourceInput(v *ListTagsForResourceInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2069,89 +998,3 @@ func awsAwsjson10_serializeOpDocumentUpdateHostInput(v *UpdateHostInput, value s return nil } - -func awsAwsjson10_serializeOpDocumentUpdateRepositoryLinkInput(v *UpdateRepositoryLinkInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.ConnectionArn != nil { - ok := object.Key("ConnectionArn") - ok.String(*v.ConnectionArn) - } - - if v.EncryptionKeyArn != nil { - ok := object.Key("EncryptionKeyArn") - ok.String(*v.EncryptionKeyArn) - } - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentUpdateSyncBlockerInput(v *UpdateSyncBlockerInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Id != nil { - ok := object.Key("Id") - ok.String(*v.Id) - } - - if v.ResolvedReason != nil { - ok := object.Key("ResolvedReason") - ok.String(*v.ResolvedReason) - } - - if v.ResourceName != nil { - ok := object.Key("ResourceName") - ok.String(*v.ResourceName) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} - -func awsAwsjson10_serializeOpDocumentUpdateSyncConfigurationInput(v *UpdateSyncConfigurationInput, value smithyjson.Value) error { - object := value.Object() - defer object.Close() - - if v.Branch != nil { - ok := object.Key("Branch") - ok.String(*v.Branch) - } - - if v.ConfigFile != nil { - ok := object.Key("ConfigFile") - ok.String(*v.ConfigFile) - } - - if v.RepositoryLinkId != nil { - ok := object.Key("RepositoryLinkId") - ok.String(*v.RepositoryLinkId) - } - - if v.ResourceName != nil { - ok := object.Key("ResourceName") - ok.String(*v.ResourceName) - } - - if v.RoleArn != nil { - ok := object.Key("RoleArn") - ok.String(*v.RoleArn) - } - - if len(v.SyncType) > 0 { - ok := object.Key("SyncType") - ok.String(string(v.SyncType)) - } - - return nil -} diff --git a/service/codestarconnections/types/enums.go b/service/codestarconnections/types/enums.go index 9bf815c3887..69f5f636cbc 100644 --- a/service/codestarconnections/types/enums.go +++ b/service/codestarconnections/types/enums.go @@ -2,40 +2,6 @@ package types -type BlockerStatus string - -// Enum values for BlockerStatus -const ( - BlockerStatusActive BlockerStatus = "ACTIVE" - BlockerStatusResolved BlockerStatus = "RESOLVED" -) - -// Values returns all known values for BlockerStatus. 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 (BlockerStatus) Values() []BlockerStatus { - return []BlockerStatus{ - "ACTIVE", - "RESOLVED", - } -} - -type BlockerType string - -// Enum values for BlockerType -const ( - BlockerTypeAutomated BlockerType = "AUTOMATED" -) - -// Values returns all known values for BlockerType. 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 (BlockerType) Values() []BlockerType { - return []BlockerType{ - "AUTOMATED", - } -} - type ConnectionStatus string // Enum values for ConnectionStatus @@ -77,65 +43,3 @@ func (ProviderType) Values() []ProviderType { "GitLab", } } - -type RepositorySyncStatus string - -// Enum values for RepositorySyncStatus -const ( - RepositorySyncStatusFailed RepositorySyncStatus = "FAILED" - RepositorySyncStatusInitiated RepositorySyncStatus = "INITIATED" - RepositorySyncStatusInProgress RepositorySyncStatus = "IN_PROGRESS" - RepositorySyncStatusSucceeded RepositorySyncStatus = "SUCCEEDED" - RepositorySyncStatusQueued RepositorySyncStatus = "QUEUED" -) - -// Values returns all known values for RepositorySyncStatus. 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 (RepositorySyncStatus) Values() []RepositorySyncStatus { - return []RepositorySyncStatus{ - "FAILED", - "INITIATED", - "IN_PROGRESS", - "SUCCEEDED", - "QUEUED", - } -} - -type ResourceSyncStatus string - -// Enum values for ResourceSyncStatus -const ( - ResourceSyncStatusFailed ResourceSyncStatus = "FAILED" - ResourceSyncStatusInitiated ResourceSyncStatus = "INITIATED" - ResourceSyncStatusInProgress ResourceSyncStatus = "IN_PROGRESS" - ResourceSyncStatusSucceeded ResourceSyncStatus = "SUCCEEDED" -) - -// Values returns all known values for ResourceSyncStatus. 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 (ResourceSyncStatus) Values() []ResourceSyncStatus { - return []ResourceSyncStatus{ - "FAILED", - "INITIATED", - "IN_PROGRESS", - "SUCCEEDED", - } -} - -type SyncConfigurationType string - -// Enum values for SyncConfigurationType -const ( - SyncConfigurationTypeCfnStackSync SyncConfigurationType = "CFN_STACK_SYNC" -) - -// Values returns all known values for SyncConfigurationType. 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 (SyncConfigurationType) Values() []SyncConfigurationType { - return []SyncConfigurationType{ - "CFN_STACK_SYNC", - } -} diff --git a/service/codestarconnections/types/errors.go b/service/codestarconnections/types/errors.go index 3c4200802c0..46bc17758cb 100644 --- a/service/codestarconnections/types/errors.go +++ b/service/codestarconnections/types/errors.go @@ -7,86 +7,6 @@ import ( smithy "github.com/aws/smithy-go" ) -// You do not have sufficient access to perform this action. -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 } - -// Exception thrown as a result of concurrent modification to an application. For -// example, two individuals attempting to edit the same application at the same -// time. -type ConcurrentModificationException struct { - 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 } - -// The conditional check failed. Try again later. -type ConditionalCheckFailedException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *ConditionalCheckFailedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ConditionalCheckFailedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ConditionalCheckFailedException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "ConditionalCheckFailedException" - } - return *e.ErrorCodeOverride -} -func (e *ConditionalCheckFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - // Two conflicting operations have been made on the same resource. type ConflictException struct { Message *string @@ -113,58 +33,6 @@ func (e *ConflictException) ErrorCode() string { } func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// Received an internal server exception. Try again later. -type InternalServerException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *InternalServerException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *InternalServerException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "InternalServerException" - } - return *e.ErrorCodeOverride -} -func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } - -// The input is not valid. Verify that the action is typed correctly. -type InvalidInputException struct { - Message *string - - ErrorCodeOverride *string - - 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 } - // Exceeded the maximum limit for connections. type LimitExceededException struct { Message *string @@ -191,32 +59,6 @@ func (e *LimitExceededException) ErrorCode() string { } func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// Unable to create resource. Resource already exists. -type ResourceAlreadyExistsException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *ResourceAlreadyExistsException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ResourceAlreadyExistsException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ResourceAlreadyExistsException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "ResourceAlreadyExistsException" - } - return *e.ErrorCodeOverride -} -func (e *ResourceAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - // Resource not found. Verify the connection resource ARN and try again. type ResourceNotFoundException struct { Message *string @@ -269,112 +111,6 @@ func (e *ResourceUnavailableException) ErrorCode() string { } func (e *ResourceUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// Retrying the latest commit failed. Try again later. -type RetryLatestCommitFailedException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *RetryLatestCommitFailedException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *RetryLatestCommitFailedException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *RetryLatestCommitFailedException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "RetryLatestCommitFailedException" - } - return *e.ErrorCodeOverride -} -func (e *RetryLatestCommitFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } - -// Unable to continue. The sync blocker does not exist. -type SyncBlockerDoesNotExistException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *SyncBlockerDoesNotExistException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *SyncBlockerDoesNotExistException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *SyncBlockerDoesNotExistException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "SyncBlockerDoesNotExistException" - } - return *e.ErrorCodeOverride -} -func (e *SyncBlockerDoesNotExistException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// Unable to continue. The sync blocker still exists. -type SyncConfigurationStillExistsException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *SyncConfigurationStillExistsException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *SyncConfigurationStillExistsException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *SyncConfigurationStillExistsException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "SyncConfigurationStillExistsException" - } - return *e.ErrorCodeOverride -} -func (e *SyncConfigurationStillExistsException) ErrorFault() smithy.ErrorFault { - return smithy.FaultClient -} - -// The request was denied due to request throttling. -type ThrottlingException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *ThrottlingException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *ThrottlingException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "ThrottlingException" - } - return *e.ErrorCodeOverride -} -func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - // The operation is not supported. Check the connection status and try again. type UnsupportedOperationException struct { Message *string @@ -400,55 +136,3 @@ func (e *UnsupportedOperationException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *UnsupportedOperationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The specified provider type is not supported for connections. -type UnsupportedProviderTypeException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *UnsupportedProviderTypeException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *UnsupportedProviderTypeException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *UnsupportedProviderTypeException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "UnsupportedProviderTypeException" - } - return *e.ErrorCodeOverride -} -func (e *UnsupportedProviderTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } - -// The update is out of sync. Try syncing again. -type UpdateOutOfSyncException struct { - Message *string - - ErrorCodeOverride *string - - noSmithyDocumentSerde -} - -func (e *UpdateOutOfSyncException) Error() string { - return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) -} -func (e *UpdateOutOfSyncException) ErrorMessage() string { - if e.Message == nil { - return "" - } - return *e.Message -} -func (e *UpdateOutOfSyncException) ErrorCode() string { - if e == nil || e.ErrorCodeOverride == nil { - return "UpdateOutOfSyncException" - } - return *e.ErrorCodeOverride -} -func (e *UpdateOutOfSyncException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/codestarconnections/types/types.go b/service/codestarconnections/types/types.go index 049b1c401bf..523d705ab67 100644 --- a/service/codestarconnections/types/types.go +++ b/service/codestarconnections/types/types.go @@ -4,7 +4,6 @@ package types import ( smithydocument "github.com/aws/smithy-go/document" - "time" ) // A resource that is used to connect third-party source providers with services @@ -75,366 +74,6 @@ type Host struct { noSmithyDocumentSerde } -// Information about the repository link resource, such as the repository link -// ARN, the associated connection ARN, encryption key ARN, and owner ID. -type RepositoryLinkInfo struct { - - // The Amazon Resource Name (ARN) of the connection associated with the repository - // link. - // - // This member is required. - ConnectionArn *string - - // The owner ID for the repository associated with the repository link, such as - // the owner ID in GitHub. - // - // This member is required. - OwnerId *string - - // The provider type for the connection, such as GitHub, associated with the - // repository link. - // - // This member is required. - ProviderType ProviderType - - // The Amazon Resource Name (ARN) of the repository link. - // - // This member is required. - RepositoryLinkArn *string - - // The ID of the repository link. - // - // This member is required. - RepositoryLinkId *string - - // The name of the repository associated with the repository link. - // - // This member is required. - RepositoryName *string - - // The Amazon Resource Name (ARN) of the encryption key for the repository - // associated with the repository link. - EncryptionKeyArn *string - - noSmithyDocumentSerde -} - -// Information about a repository sync attempt for a repository with a sync -// configuration. -type RepositorySyncAttempt struct { - - // The events associated with a specific sync attempt. - // - // This member is required. - Events []RepositorySyncEvent - - // The start time of a specific sync attempt. - // - // This member is required. - StartedAt *time.Time - - // The status of a specific sync attempt. The following are valid statuses: - // - INITIATED - A repository sync attempt has been created and will begin soon. - // - IN_PROGRESS - A repository sync attempt has started and work is being done - // to reconcile the branch. - // - SUCCEEDED - The repository sync attempt has completed successfully. - // - FAILED - The repository sync attempt has failed. - // - QUEUED - The repository sync attempt didn't execute and was queued. - // - // This member is required. - Status RepositorySyncStatus - - noSmithyDocumentSerde -} - -// The definition for a repository with a sync configuration. -type RepositorySyncDefinition struct { - - // The branch specified for a repository sync definition. - // - // This member is required. - Branch *string - - // The configuration file for a repository sync definition. This value comes from - // creating or updating the config-file field of a sync-configuration . - // - // This member is required. - Directory *string - - // The parent resource specified for a repository sync definition. - // - // This member is required. - Parent *string - - // The target resource specified for a repository sync definition. In some cases, - // such as CFN_STACK_SYNC, the parent and target resource are the same. - // - // This member is required. - Target *string - - noSmithyDocumentSerde -} - -// Information about a repository sync event. -type RepositorySyncEvent struct { - - // A description of a repository sync event. - // - // This member is required. - Event *string - - // The time that a repository sync event occurred. - // - // This member is required. - Time *time.Time - - // The event type for a repository sync event. - // - // This member is required. - Type *string - - // The ID for a repository sync event. - ExternalId *string - - noSmithyDocumentSerde -} - -// Information about a resource sync attempt. -type ResourceSyncAttempt struct { - - // The events related to a resource sync attempt. - // - // This member is required. - Events []ResourceSyncEvent - - // The current state of the resource as defined in the resource's config-file in - // the linked repository. - // - // This member is required. - InitialRevision *Revision - - // The start time for a resource sync attempt. - // - // This member is required. - StartedAt *time.Time - - // The status for a resource sync attempt. The follow are valid statuses: - // - SYNC-INITIATED - A resource sync attempt has been created and will begin - // soon. - // - SYNCING - Syncing has started and work is being done to reconcile state. - // - SYNCED - Syncing has completed successfully. - // - SYNC_FAILED - A resource sync attempt has failed. - // - // This member is required. - Status ResourceSyncStatus - - // The name of the Amazon Web Services resource that is attempted to be - // synchronized. - // - // This member is required. - Target *string - - // The desired state of the resource as defined in the resource's config-file in - // the linked repository. Git sync attempts to update the resource to this state. - // - // This member is required. - TargetRevision *Revision - - noSmithyDocumentSerde -} - -// Information about a resource sync event for the resource associated with a sync -// configuration. -type ResourceSyncEvent struct { - - // The event for a resource sync event. - // - // This member is required. - Event *string - - // The time that a resource sync event occurred. - // - // This member is required. - Time *time.Time - - // The type of resource sync event. - // - // This member is required. - Type *string - - // The ID for a resource sync event. - ExternalId *string - - noSmithyDocumentSerde -} - -// Information about the revision for a specific sync event, such as the branch, -// owner ID, and name of the repository. -type Revision struct { - - // The branch name for a specific revision. - // - // This member is required. - Branch *string - - // The directory, if any, for a specific revision. - // - // This member is required. - Directory *string - - // The owner ID for a specific revision, such as the GitHub owner ID for a GitHub - // repository. - // - // This member is required. - OwnerId *string - - // The provider type for a revision, such as GitHub. - // - // This member is required. - ProviderType ProviderType - - // The repository name for a specific revision. - // - // This member is required. - RepositoryName *string - - // The SHA, such as the commit ID, for a specific revision. - // - // This member is required. - Sha *string - - noSmithyDocumentSerde -} - -// Information about a blocker for a sync event. -type SyncBlocker struct { - - // The creation time for a specific sync blocker. - // - // This member is required. - CreatedAt *time.Time - - // The provided reason for a specific sync blocker. - // - // This member is required. - CreatedReason *string - - // The ID for a specific sync blocker. - // - // This member is required. - Id *string - - // The status for a specific sync blocker. - // - // This member is required. - Status BlockerStatus - - // The sync blocker type. - // - // This member is required. - Type BlockerType - - // The contexts for a specific sync blocker. - Contexts []SyncBlockerContext - - // The time that a specific sync blocker was resolved. - ResolvedAt *time.Time - - // The resolved reason for a specific sync blocker. - ResolvedReason *string - - noSmithyDocumentSerde -} - -// The context for a specific sync blocker. -type SyncBlockerContext struct { - - // The key provided for a context key-value pair for a specific sync blocker. - // - // This member is required. - Key *string - - // The value provided for a context key-value pair for a specific sync blocker. - // - // This member is required. - Value *string - - noSmithyDocumentSerde -} - -// A summary for sync blockers. -type SyncBlockerSummary struct { - - // The resource name for sync blocker summary. - // - // This member is required. - ResourceName *string - - // The latest events for a sync blocker summary. - LatestBlockers []SyncBlocker - - // The parent resource name for a sync blocker summary. - ParentResourceName *string - - noSmithyDocumentSerde -} - -// Information, such as repository, branch, provider, and resource names for a -// specific sync configuration. -type SyncConfiguration struct { - - // The branch associated with a specific sync configuration. - // - // This member is required. - Branch *string - - // The owner ID for the repository associated with a specific sync configuration, - // such as the owner ID in GitHub. - // - // This member is required. - OwnerId *string - - // The connection provider type associated with a specific sync configuration, - // such as GitHub. - // - // This member is required. - ProviderType ProviderType - - // The ID of the repository link associated with a specific sync configuration. - // - // This member is required. - RepositoryLinkId *string - - // The name of the repository associated with a specific sync configuration. - // - // This member is required. - RepositoryName *string - - // The name of the connection resource associated with a specific sync - // configuration. - // - // This member is required. - ResourceName *string - - // The Amazon Resource Name (ARN) of the IAM role associated with a specific sync - // configuration. - // - // This member is required. - RoleArn *string - - // The type of sync for a specific sync configuration. - // - // This member is required. - SyncType SyncConfigurationType - - // The file path to the configuration file associated with a specific sync - // configuration. The path should point to an actual file in the sync - // configurations linked repository. - ConfigFile *string - - noSmithyDocumentSerde -} - // A tag is a key-value pair that is used to manage the resource. This tag is // available for use by Amazon Web Services services that support tags. type Tag struct { diff --git a/service/codestarconnections/validators.go b/service/codestarconnections/validators.go index 3fcf1082501..f291128b0eb 100644 --- a/service/codestarconnections/validators.go +++ b/service/codestarconnections/validators.go @@ -50,46 +50,6 @@ func (m *validateOpCreateHost) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } -type validateOpCreateRepositoryLink struct { -} - -func (*validateOpCreateRepositoryLink) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateRepositoryLink) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateRepositoryLinkInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateRepositoryLinkInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpCreateSyncConfiguration struct { -} - -func (*validateOpCreateSyncConfiguration) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpCreateSyncConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*CreateSyncConfigurationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpCreateSyncConfigurationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpDeleteConnection struct { } @@ -130,46 +90,6 @@ func (m *validateOpDeleteHost) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } -type validateOpDeleteRepositoryLink struct { -} - -func (*validateOpDeleteRepositoryLink) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteRepositoryLink) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteRepositoryLinkInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteRepositoryLinkInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpDeleteSyncConfiguration struct { -} - -func (*validateOpDeleteSyncConfiguration) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpDeleteSyncConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*DeleteSyncConfigurationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpDeleteSyncConfigurationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpGetConnection struct { } @@ -210,146 +130,6 @@ func (m *validateOpGetHost) HandleInitialize(ctx context.Context, in middleware. return next.HandleInitialize(ctx, in) } -type validateOpGetRepositoryLink struct { -} - -func (*validateOpGetRepositoryLink) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetRepositoryLink) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetRepositoryLinkInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetRepositoryLinkInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetRepositorySyncStatus struct { -} - -func (*validateOpGetRepositorySyncStatus) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetRepositorySyncStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetRepositorySyncStatusInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetRepositorySyncStatusInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetResourceSyncStatus struct { -} - -func (*validateOpGetResourceSyncStatus) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetResourceSyncStatus) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetResourceSyncStatusInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetResourceSyncStatusInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetSyncBlockerSummary struct { -} - -func (*validateOpGetSyncBlockerSummary) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetSyncBlockerSummary) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetSyncBlockerSummaryInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetSyncBlockerSummaryInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpGetSyncConfiguration struct { -} - -func (*validateOpGetSyncConfiguration) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpGetSyncConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*GetSyncConfigurationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpGetSyncConfigurationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListRepositorySyncDefinitions struct { -} - -func (*validateOpListRepositorySyncDefinitions) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListRepositorySyncDefinitions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListRepositorySyncDefinitionsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListRepositorySyncDefinitionsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpListSyncConfigurations struct { -} - -func (*validateOpListSyncConfigurations) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpListSyncConfigurations) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*ListSyncConfigurationsInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpListSyncConfigurationsInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - type validateOpListTagsForResource struct { } @@ -430,66 +210,6 @@ func (m *validateOpUpdateHost) HandleInitialize(ctx context.Context, in middlewa return next.HandleInitialize(ctx, in) } -type validateOpUpdateRepositoryLink struct { -} - -func (*validateOpUpdateRepositoryLink) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateRepositoryLink) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateRepositoryLinkInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateRepositoryLinkInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateSyncBlocker struct { -} - -func (*validateOpUpdateSyncBlocker) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateSyncBlocker) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateSyncBlockerInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateSyncBlockerInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - -type validateOpUpdateSyncConfiguration struct { -} - -func (*validateOpUpdateSyncConfiguration) ID() string { - return "OperationInputValidation" -} - -func (m *validateOpUpdateSyncConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( - out middleware.InitializeOutput, metadata middleware.Metadata, err error, -) { - input, ok := in.Parameters.(*UpdateSyncConfigurationInput) - if !ok { - return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) - } - if err := validateOpUpdateSyncConfigurationInput(input); err != nil { - return out, metadata, err - } - return next.HandleInitialize(ctx, in) -} - func addOpCreateConnectionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateConnection{}, middleware.After) } @@ -498,14 +218,6 @@ func addOpCreateHostValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateHost{}, middleware.After) } -func addOpCreateRepositoryLinkValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateRepositoryLink{}, middleware.After) -} - -func addOpCreateSyncConfigurationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpCreateSyncConfiguration{}, middleware.After) -} - func addOpDeleteConnectionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteConnection{}, middleware.After) } @@ -514,14 +226,6 @@ func addOpDeleteHostValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteHost{}, middleware.After) } -func addOpDeleteRepositoryLinkValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteRepositoryLink{}, middleware.After) -} - -func addOpDeleteSyncConfigurationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpDeleteSyncConfiguration{}, middleware.After) -} - func addOpGetConnectionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetConnection{}, middleware.After) } @@ -530,34 +234,6 @@ func addOpGetHostValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetHost{}, middleware.After) } -func addOpGetRepositoryLinkValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetRepositoryLink{}, middleware.After) -} - -func addOpGetRepositorySyncStatusValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetRepositorySyncStatus{}, middleware.After) -} - -func addOpGetResourceSyncStatusValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetResourceSyncStatus{}, middleware.After) -} - -func addOpGetSyncBlockerSummaryValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetSyncBlockerSummary{}, middleware.After) -} - -func addOpGetSyncConfigurationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpGetSyncConfiguration{}, middleware.After) -} - -func addOpListRepositorySyncDefinitionsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListRepositorySyncDefinitions{}, middleware.After) -} - -func addOpListSyncConfigurationsValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpListSyncConfigurations{}, middleware.After) -} - func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) } @@ -574,18 +250,6 @@ func addOpUpdateHostValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateHost{}, middleware.After) } -func addOpUpdateRepositoryLinkValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateRepositoryLink{}, middleware.After) -} - -func addOpUpdateSyncBlockerValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateSyncBlocker{}, middleware.After) -} - -func addOpUpdateSyncConfigurationValidationMiddleware(stack *middleware.Stack) error { - return stack.Initialize.Add(&validateOpUpdateSyncConfiguration{}, middleware.After) -} - func validateTag(v *types.Tag) error { if v == nil { return nil @@ -693,62 +357,6 @@ func validateOpCreateHostInput(v *CreateHostInput) error { } } -func validateOpCreateRepositoryLinkInput(v *CreateRepositoryLinkInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateRepositoryLinkInput"} - if v.ConnectionArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConnectionArn")) - } - if v.OwnerId == nil { - invalidParams.Add(smithy.NewErrParamRequired("OwnerId")) - } - if v.RepositoryName == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryName")) - } - if v.Tags != nil { - if err := validateTagList(v.Tags); err != nil { - invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) - } - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpCreateSyncConfigurationInput(v *CreateSyncConfigurationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "CreateSyncConfigurationInput"} - if v.Branch == nil { - invalidParams.Add(smithy.NewErrParamRequired("Branch")) - } - if v.ConfigFile == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConfigFile")) - } - if v.RepositoryLinkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryLinkId")) - } - if v.ResourceName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceName")) - } - if v.RoleArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) - } - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpDeleteConnectionInput(v *DeleteConnectionInput) error { if v == nil { return nil @@ -779,39 +387,6 @@ func validateOpDeleteHostInput(v *DeleteHostInput) error { } } -func validateOpDeleteRepositoryLinkInput(v *DeleteRepositoryLinkInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteRepositoryLinkInput"} - if v.RepositoryLinkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryLinkId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpDeleteSyncConfigurationInput(v *DeleteSyncConfigurationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "DeleteSyncConfigurationInput"} - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if v.ResourceName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpGetConnectionInput(v *GetConnectionInput) error { if v == nil { return nil @@ -842,132 +417,6 @@ func validateOpGetHostInput(v *GetHostInput) error { } } -func validateOpGetRepositoryLinkInput(v *GetRepositoryLinkInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetRepositoryLinkInput"} - if v.RepositoryLinkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryLinkId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetRepositorySyncStatusInput(v *GetRepositorySyncStatusInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetRepositorySyncStatusInput"} - if v.Branch == nil { - invalidParams.Add(smithy.NewErrParamRequired("Branch")) - } - if v.RepositoryLinkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryLinkId")) - } - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetResourceSyncStatusInput(v *GetResourceSyncStatusInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetResourceSyncStatusInput"} - if v.ResourceName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceName")) - } - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetSyncBlockerSummaryInput(v *GetSyncBlockerSummaryInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetSyncBlockerSummaryInput"} - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if v.ResourceName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpGetSyncConfigurationInput(v *GetSyncConfigurationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "GetSyncConfigurationInput"} - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if v.ResourceName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceName")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListRepositorySyncDefinitionsInput(v *ListRepositorySyncDefinitionsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListRepositorySyncDefinitionsInput"} - if v.RepositoryLinkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryLinkId")) - } - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpListSyncConfigurationsInput(v *ListSyncConfigurationsInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "ListSyncConfigurationsInput"} - if v.RepositoryLinkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryLinkId")) - } - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { if v == nil { return nil @@ -1042,60 +491,3 @@ func validateOpUpdateHostInput(v *UpdateHostInput) error { return nil } } - -func validateOpUpdateRepositoryLinkInput(v *UpdateRepositoryLinkInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateRepositoryLinkInput"} - if v.RepositoryLinkId == nil { - invalidParams.Add(smithy.NewErrParamRequired("RepositoryLinkId")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateSyncBlockerInput(v *UpdateSyncBlockerInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateSyncBlockerInput"} - if v.Id == nil { - invalidParams.Add(smithy.NewErrParamRequired("Id")) - } - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if v.ResourceName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceName")) - } - if v.ResolvedReason == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResolvedReason")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} - -func validateOpUpdateSyncConfigurationInput(v *UpdateSyncConfigurationInput) error { - if v == nil { - return nil - } - invalidParams := smithy.InvalidParamsError{Context: "UpdateSyncConfigurationInput"} - if v.ResourceName == nil { - invalidParams.Add(smithy.NewErrParamRequired("ResourceName")) - } - if len(v.SyncType) == 0 { - invalidParams.Add(smithy.NewErrParamRequired("SyncType")) - } - if invalidParams.Len() > 0 { - return invalidParams - } else { - return nil - } -} diff --git a/service/detective/internal/endpoints/endpoints.go b/service/detective/internal/endpoints/endpoints.go index df5be0ed53f..c26f4a138e6 100644 --- a/service/detective/internal/endpoints/endpoints.go +++ b/service/detective/internal/endpoints/endpoints.go @@ -163,6 +163,21 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ca-central-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "api.detective-fips.ca-central-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "ca-central-1-fips", + }: endpoints.Endpoint{ + Hostname: "api.detective-fips.ca-central-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ca-central-1", + }, + Deprecated: aws.TrueTernary, + }, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{}, diff --git a/service/docdb/api_op_CreateDBCluster.go b/service/docdb/api_op_CreateDBCluster.go index 305e4904962..476730843e4 100644 --- a/service/docdb/api_op_CreateDBCluster.go +++ b/service/docdb/api_op_CreateDBCluster.go @@ -139,6 +139,14 @@ type CreateDBClusterInput struct { // Specifies whether the cluster is encrypted. StorageEncrypted *bool + // The storage type to associate with the DB cluster. For information on storage + // types for Amazon DocumentDB clusters, see Cluster storage configurations in the + // Amazon DocumentDB Developer Guide. Valid values for storage type - standard | + // iopt1 Default value is standard When you create a DocumentDB DB cluster with + // the storage type set to iopt1 , the storage type is returned in the response. + // The storage type isn't returned when you set it to standard . + StorageType *string + // The tags to be assigned to the cluster. Tags []types.Tag diff --git a/service/docdb/api_op_ModifyDBCluster.go b/service/docdb/api_op_ModifyDBCluster.go index aa22cb32eab..567f1f1f319 100644 --- a/service/docdb/api_op_ModifyDBCluster.go +++ b/service/docdb/api_op_ModifyDBCluster.go @@ -119,6 +119,12 @@ type ModifyDBClusterInput struct { // Tue, Wed, Thu, Fri, Sat, Sun Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string + // The storage type to associate with the DB cluster. For information on storage + // types for Amazon DocumentDB clusters, see Cluster storage configurations in the + // Amazon DocumentDB Developer Guide. Valid values for storage type - standard | + // iopt1 Default value is standard + StorageType *string + // A list of virtual private cloud (VPC) security groups that the cluster will // belong to. VpcSecurityGroupIds []string diff --git a/service/docdb/api_op_RestoreDBClusterFromSnapshot.go b/service/docdb/api_op_RestoreDBClusterFromSnapshot.go index 989a7134e83..62104723e9a 100644 --- a/service/docdb/api_op_RestoreDBClusterFromSnapshot.go +++ b/service/docdb/api_op_RestoreDBClusterFromSnapshot.go @@ -108,6 +108,12 @@ type RestoreDBClusterFromSnapshotInput struct { // be a value from 1150 to 65535 . Default: The same port as the original cluster. Port *int32 + // The storage type to associate with the DB cluster. For information on storage + // types for Amazon DocumentDB clusters, see Cluster storage configurations in the + // Amazon DocumentDB Developer Guide. Valid values for storage type - standard | + // iopt1 Default value is standard + StorageType *string + // The tags to be assigned to the restored cluster. Tags []types.Tag diff --git a/service/docdb/api_op_RestoreDBClusterToPointInTime.go b/service/docdb/api_op_RestoreDBClusterToPointInTime.go index 02d94ef74fc..2032de044b6 100644 --- a/service/docdb/api_op_RestoreDBClusterToPointInTime.go +++ b/service/docdb/api_op_RestoreDBClusterToPointInTime.go @@ -107,6 +107,12 @@ type RestoreDBClusterToPointInTimeInput struct { // cluster. RestoreType *string + // The storage type to associate with the DB cluster. For information on storage + // types for Amazon DocumentDB clusters, see Cluster storage configurations in the + // Amazon DocumentDB Developer Guide. Valid values for storage type - standard | + // iopt1 Default value is standard + StorageType *string + // The tags to be assigned to the restored cluster. Tags []types.Tag diff --git a/service/docdb/deserializers.go b/service/docdb/deserializers.go index 5404d088ea6..16b3220c337 100644 --- a/service/docdb/deserializers.go +++ b/service/docdb/deserializers.go @@ -9683,6 +9683,19 @@ func awsAwsquery_deserializeDocumentDBCluster(v **types.DBCluster, decoder smith sv.StorageEncrypted = ptr.Bool(xtv) } + case strings.EqualFold("StorageType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StorageType = ptr.String(xtv) + } + case strings.EqualFold("VpcSecurityGroups", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsAwsquery_deserializeDocumentVpcSecurityGroupMembershipList(&sv.VpcSecurityGroups, nodeDecoder); err != nil { @@ -10658,6 +10671,19 @@ func awsAwsquery_deserializeDocumentDBClusterSnapshot(v **types.DBClusterSnapsho sv.StorageEncrypted = ptr.Bool(xtv) } + case strings.EqualFold("StorageType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StorageType = ptr.String(xtv) + } + case strings.EqualFold("VpcId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -15077,6 +15103,19 @@ func awsAwsquery_deserializeDocumentOrderableDBInstanceOption(v **types.Orderabl sv.LicenseModel = ptr.String(xtv) } + case strings.EqualFold("StorageType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StorageType = ptr.String(xtv) + } + case strings.EqualFold("Vpc", t.Name.Local): val, err := decoder.Value() if err != nil { diff --git a/service/docdb/serializers.go b/service/docdb/serializers.go index 9fb8b7a9432..dbb6539c6ad 100644 --- a/service/docdb/serializers.go +++ b/service/docdb/serializers.go @@ -3881,6 +3881,11 @@ func awsAwsquery_serializeOpDocumentCreateDBClusterInput(v *CreateDBClusterInput objectKey.Boolean(*v.StorageEncrypted) } + if v.StorageType != nil { + objectKey := object.Key("StorageType") + objectKey.String(*v.StorageType) + } + if v.Tags != nil { objectKey := object.Key("Tags") if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { @@ -4881,6 +4886,11 @@ func awsAwsquery_serializeOpDocumentModifyDBClusterInput(v *ModifyDBClusterInput objectKey.String(*v.PreferredMaintenanceWindow) } + if v.StorageType != nil { + objectKey := object.Key("StorageType") + objectKey.String(*v.StorageType) + } + if v.VpcSecurityGroupIds != nil { objectKey := object.Key("VpcSecurityGroupIds") if err := awsAwsquery_serializeDocumentVpcSecurityGroupIdList(v.VpcSecurityGroupIds, objectKey); err != nil { @@ -5245,6 +5255,11 @@ func awsAwsquery_serializeOpDocumentRestoreDBClusterFromSnapshotInput(v *Restore objectKey.String(*v.SnapshotIdentifier) } + if v.StorageType != nil { + objectKey := object.Key("StorageType") + objectKey.String(*v.StorageType) + } + if v.Tags != nil { objectKey := object.Key("Tags") if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { @@ -5313,6 +5328,11 @@ func awsAwsquery_serializeOpDocumentRestoreDBClusterToPointInTimeInput(v *Restor objectKey.String(*v.SourceDBClusterIdentifier) } + if v.StorageType != nil { + objectKey := object.Key("StorageType") + objectKey.String(*v.StorageType) + } + if v.Tags != nil { objectKey := object.Key("Tags") if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { diff --git a/service/docdb/types/types.go b/service/docdb/types/types.go index c266275f0d8..f2b9e610812 100644 --- a/service/docdb/types/types.go +++ b/service/docdb/types/types.go @@ -199,6 +199,12 @@ type DBCluster struct { // Specifies whether the cluster is encrypted. StorageEncrypted *bool + // Storage type associated with your cluster Storage type associated with your + // cluster For information on storage types for Amazon DocumentDB clusters, see + // Cluster storage configurations in the Amazon DocumentDB Developer Guide. Valid + // values for storage type - standard | iopt1 Default value is standard + StorageType *string + // Provides a list of virtual private cloud (VPC) security groups that the cluster // belongs to. VpcSecurityGroups []VpcSecurityGroupMembership @@ -325,6 +331,12 @@ type DBClusterSnapshot struct { // Specifies whether the cluster snapshot is encrypted. StorageEncrypted *bool + // Storage type associated with your cluster snapshot For information on storage + // types for Amazon DocumentDB clusters, see Cluster storage configurations in the + // Amazon DocumentDB Developer Guide. Valid values for storage type - standard | + // iopt1 Default value is standard + StorageType *string + // Provides the virtual private cloud (VPC) ID that is associated with the cluster // snapshot. VpcId *string @@ -769,6 +781,9 @@ type OrderableDBInstanceOption struct { // The license model for an instance. LicenseModel *string + // The storage type to associate with the DB cluster + StorageType *string + // Indicates whether an instance is in a virtual private cloud (VPC). Vpc *bool diff --git a/service/ec2/api_op_AuthorizeSecurityGroupEgress.go b/service/ec2/api_op_AuthorizeSecurityGroupEgress.go index daaf30ec086..5061a896662 100644 --- a/service/ec2/api_op_AuthorizeSecurityGroupEgress.go +++ b/service/ec2/api_op_AuthorizeSecurityGroupEgress.go @@ -23,7 +23,10 @@ import ( // for the type or code to mean all types or all codes. Rule changes are propagated // to affected instances as quickly as possible. However, a small delay might // occur. For information about VPC security group quotas, see Amazon VPC quotas (https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html) -// . +// . If you want to reference a security group across VPCs attached to a transit +// gateway using the security group referencing feature (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) +// , note that you can only reference security groups for ingress rules. You cannot +// reference a security group for egress rules. func (c *Client) AuthorizeSecurityGroupEgress(ctx context.Context, params *AuthorizeSecurityGroupEgressInput, optFns ...func(*Options)) (*AuthorizeSecurityGroupEgressOutput, error) { if params == nil { params = &AuthorizeSecurityGroupEgressInput{} diff --git a/service/ec2/api_op_DescribeSecurityGroupReferences.go b/service/ec2/api_op_DescribeSecurityGroupReferences.go index 91dc4d5a61a..b06167f9bfe 100644 --- a/service/ec2/api_op_DescribeSecurityGroupReferences.go +++ b/service/ec2/api_op_DescribeSecurityGroupReferences.go @@ -12,8 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the VPCs on the other side of a VPC peering connection that are -// referencing the security groups you've specified in this request. +// Describes the VPCs on the other side of a VPC peering connection or the VPCs +// attached to a transit gateway that are referencing the security groups you've +// specified in this request. func (c *Client) DescribeSecurityGroupReferences(ctx context.Context, params *DescribeSecurityGroupReferencesInput, optFns ...func(*Options)) (*DescribeSecurityGroupReferencesOutput, error) { if params == nil { params = &DescribeSecurityGroupReferencesInput{} diff --git a/service/ec2/api_op_DescribeStaleSecurityGroups.go b/service/ec2/api_op_DescribeStaleSecurityGroups.go index 0d60116c228..91d8bfa7e0e 100644 --- a/service/ec2/api_op_DescribeStaleSecurityGroups.go +++ b/service/ec2/api_op_DescribeStaleSecurityGroups.go @@ -14,8 +14,11 @@ import ( // Describes the stale security group rules for security groups in a specified // VPC. Rules are stale when they reference a deleted security group in the same -// VPC or in a peer VPC, or if they reference a security group in a peer VPC for -// which the VPC peering connection has been deleted. +// VPC, peered VPC, or in separate VPCs attached to a transit gateway (with +// security group referencing support (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) +// enabled). Rules can also be stale if they reference a security group in a peer +// VPC for which the VPC peering connection has been deleted or if they reference a +// security group in a VPC that has been detached from a transit gateway. func (c *Client) DescribeStaleSecurityGroups(ctx context.Context, params *DescribeStaleSecurityGroupsInput, optFns ...func(*Options)) (*DescribeStaleSecurityGroupsOutput, error) { if params == nil { params = &DescribeStaleSecurityGroupsInput{} diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index 195b0e246fc..7718b8bdf42 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -115160,6 +115160,19 @@ func awsEc2query_deserializeDocumentSecurityGroupReference(v **types.SecurityGro sv.ReferencingVpcId = ptr.String(xtv) } + case strings.EqualFold("transitGatewayId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TransitGatewayId = ptr.String(xtv) + } + case strings.EqualFold("vpcPeeringConnectionId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -126981,6 +126994,19 @@ func awsEc2query_deserializeDocumentTransitGatewayOptions(v **types.TransitGatew sv.PropagationDefaultRouteTableId = ptr.String(xtv) } + case strings.EqualFold("securityGroupReferencingSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SecurityGroupReferencingSupport = types.SecurityGroupReferencingSupportValue(xtv) + } + case strings.EqualFold("transitGatewayCidrBlocks", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentValueStringList(&sv.TransitGatewayCidrBlocks, nodeDecoder); err != nil { @@ -129737,6 +129763,19 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentOptions(v **types sv.Ipv6Support = types.Ipv6SupportValue(xtv) } + case strings.EqualFold("securityGroupReferencingSupport", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SecurityGroupReferencingSupport = types.SecurityGroupReferencingSupportValue(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 8f8f61147f6..2014f7b4a01 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -40333,6 +40333,11 @@ func awsEc2query_serializeDocumentCreateTransitGatewayVpcAttachmentRequestOption objectKey.String(string(v.Ipv6Support)) } + if len(v.SecurityGroupReferencingSupport) > 0 { + objectKey := object.Key("SecurityGroupReferencingSupport") + objectKey.String(string(v.SecurityGroupReferencingSupport)) + } + return nil } @@ -44085,6 +44090,11 @@ func awsEc2query_serializeDocumentModifyTransitGatewayOptions(v *types.ModifyTra } } + if len(v.SecurityGroupReferencingSupport) > 0 { + objectKey := object.Key("SecurityGroupReferencingSupport") + objectKey.String(string(v.SecurityGroupReferencingSupport)) + } + if len(v.VpnEcmpSupport) > 0 { objectKey := object.Key("VpnEcmpSupport") objectKey.String(string(v.VpnEcmpSupport)) @@ -44112,6 +44122,11 @@ func awsEc2query_serializeDocumentModifyTransitGatewayVpcAttachmentRequestOption objectKey.String(string(v.Ipv6Support)) } + if len(v.SecurityGroupReferencingSupport) > 0 { + objectKey := object.Key("SecurityGroupReferencingSupport") + objectKey.String(string(v.SecurityGroupReferencingSupport)) + } + return nil } @@ -47757,6 +47772,11 @@ func awsEc2query_serializeDocumentTransitGatewayRequestOptions(v *types.TransitG objectKey.String(string(v.MulticastSupport)) } + if len(v.SecurityGroupReferencingSupport) > 0 { + objectKey := object.Key("SecurityGroupReferencingSupport") + objectKey.String(string(v.SecurityGroupReferencingSupport)) + } + if v.TransitGatewayCidrBlocks != nil { objectKey := object.FlatKey("TransitGatewayCidrBlocks") if err := awsEc2query_serializeDocumentTransitGatewayCidrBlockStringList(v.TransitGatewayCidrBlocks, objectKey); err != nil { diff --git a/service/ec2/types/enums.go b/service/ec2/types/enums.go index 45ed49352e2..bb44b4af61b 100644 --- a/service/ec2/types/enums.go +++ b/service/ec2/types/enums.go @@ -6767,6 +6767,25 @@ func (Scope) Values() []Scope { } } +type SecurityGroupReferencingSupportValue string + +// Enum values for SecurityGroupReferencingSupportValue +const ( + SecurityGroupReferencingSupportValueEnable SecurityGroupReferencingSupportValue = "enable" + SecurityGroupReferencingSupportValueDisable SecurityGroupReferencingSupportValue = "disable" +) + +// Values returns all known values for SecurityGroupReferencingSupportValue. 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 (SecurityGroupReferencingSupportValue) Values() []SecurityGroupReferencingSupportValue { + return []SecurityGroupReferencingSupportValue{ + "enable", + "disable", + } +} + type SelfServicePortal string // Enum values for SelfServicePortal diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index fb03e92860b..58895a30393 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -2328,6 +2328,20 @@ type CreateTransitGatewayVpcAttachmentRequestOptions struct { // Enable or disable IPv6 support. The default is disable . Ipv6Support Ipv6SupportValue + // Enables you to reference a security group across VPCs attached to a transit + // gateway (TGW). Use this option to simplify security group management and control + // of instance-to-instance traffic across VPCs that are connected by transit + // gateway. You can also use this option to migrate from VPC peering (which was the + // only option that supported security group referencing) to transit gateways + // (which now also support security group referencing). This option is disabled by + // default and there are no additional costs to use this feature. If you don't + // enable or disable SecurityGroupReferencingSupport in the request, the attachment + // will inherit the security group referencing support setting on the transit + // gateway. For important information about this feature, see Create a transit + // gateway attachment to a VPC (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#create-vpc-attachment) + // in the Amazon Web Services Transit Gateway Guide. + SecurityGroupReferencingSupport SecurityGroupReferencingSupportValue + noSmithyDocumentSerde } @@ -10069,6 +10083,17 @@ type ModifyTransitGatewayOptions struct { // Removes CIDR blocks for the transit gateway. RemoveTransitGatewayCidrBlocks []string + // Enables you to reference a security group across VPCs attached to a transit + // gateway (TGW). Use this option to simplify security group management and control + // of instance-to-instance traffic across VPCs that are connected by transit + // gateway. You can also use this option to migrate from VPC peering (which was the + // only option that supported security group referencing) to transit gateways + // (which now also support security group referencing). This option is disabled by + // default and there are no additional costs to use this feature. For important + // information about this feature, see Create a transit gateway (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) + // in the Amazon Web Services Transit Gateway Guide. + SecurityGroupReferencingSupport SecurityGroupReferencingSupportValue + // Enable or disable Equal Cost Multipath Protocol support. VpnEcmpSupport VpnEcmpSupportValue @@ -10089,6 +10114,17 @@ type ModifyTransitGatewayVpcAttachmentRequestOptions struct { // Enable or disable IPv6 support. The default is enable . Ipv6Support Ipv6SupportValue + // Enables you to reference a security group across VPCs attached to a transit + // gateway (TGW). Use this option to simplify security group management and control + // of instance-to-instance traffic across VPCs that are connected by transit + // gateway. You can also use this option to migrate from VPC peering (which was the + // only option that supported security group referencing) to transit gateways + // (which now also support security group referencing). This option is disabled by + // default and there are no additional costs to use this feature. For important + // information about this feature, see Create a transit gateway attachment to a VPC (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#create-vpc-attachment) + // in the Amazon Web Services Transit Gateway Guide. + SecurityGroupReferencingSupport SecurityGroupReferencingSupportValue + noSmithyDocumentSerde } @@ -12099,7 +12135,7 @@ type ReferencedSecurityGroup struct { // The ID of the VPC. VpcId *string - // The ID of the VPC peering connection. + // The ID of the VPC peering connection (if applicable). VpcPeeringConnectionId *string noSmithyDocumentSerde @@ -13681,7 +13717,16 @@ type SecurityGroupReference struct { // The ID of the VPC with the referencing security group. ReferencingVpcId *string - // The ID of the VPC peering connection. + // The ID of the transit gateway (if applicable). For more information about + // security group referencing for transit gateways, see Create a transit gateway + // attachment to a VPC (https://docs.aws.amazon.com/tgw/tgw-vpc-attachments.html#create-vpc-attachment) + // in the Amazon Web Services Transit Gateway Guide. + TransitGatewayId *string + + // The ID of the VPC peering connection (if applicable). For more information + // about security group referencing for peering connections, see Update your + // security groups to reference peer security groups (https://docs.aws.amazon.com/peering/vpc-peering-security-groups.html) + // in the VPC Peering Guide. VpcPeeringConnectionId *string noSmithyDocumentSerde @@ -16302,6 +16347,17 @@ type TransitGatewayOptions struct { // The ID of the default propagation route table. PropagationDefaultRouteTableId *string + // Enables you to reference a security group across VPCs attached to a transit + // gateway (TGW). Use this option to simplify security group management and control + // of instance-to-instance traffic across VPCs that are connected by transit + // gateway. You can also use this option to migrate from VPC peering (which was the + // only option that supported security group referencing) to transit gateways + // (which now also support security group referencing). This option is disabled by + // default and there are no additional costs to use this feature. For important + // information about this feature, see Create a transit gateway (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) + // in the Amazon Web Services Transit Gateway Guide. + SecurityGroupReferencingSupport SecurityGroupReferencingSupportValue + // The transit gateway CIDR blocks. TransitGatewayCidrBlocks []string @@ -16539,6 +16595,17 @@ type TransitGatewayRequestOptions struct { // Indicates whether multicast is enabled on the transit gateway MulticastSupport MulticastSupportValue + // Enables you to reference a security group across VPCs attached to a transit + // gateway (TGW). Use this option to simplify security group management and control + // of instance-to-instance traffic across VPCs that are connected by transit + // gateway. You can also use this option to migrate from VPC peering (which was the + // only option that supported security group referencing) to transit gateways + // (which now also support security group referencing). This option is disabled by + // default and there are no additional costs to use this feature. For important + // information about this feature, see Create a transit gateway (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#create-tgw) + // in the Amazon Web Services Transit Gateway Guide. + SecurityGroupReferencingSupport SecurityGroupReferencingSupportValue + // One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size // /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6. TransitGatewayCidrBlocks []string @@ -16771,6 +16838,11 @@ type TransitGatewayVpcAttachmentOptions struct { // Indicates whether IPv6 support is disabled. Ipv6Support Ipv6SupportValue + // For important information about this feature, see Create a transit gateway + // attachment to a VPC (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#create-vpc-attachment) + // in the Amazon Web Services Transit Gateway Guide. + SecurityGroupReferencingSupport SecurityGroupReferencingSupportValue + noSmithyDocumentSerde } diff --git a/service/emrcontainers/internal/endpoints/endpoints.go b/service/emrcontainers/internal/endpoints/endpoints.go index 6a83d7a9920..4c7f065bd2d 100644 --- a/service/emrcontainers/internal/endpoints/endpoints.go +++ b/service/emrcontainers/internal/endpoints/endpoints.go @@ -163,6 +163,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-3", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, @@ -235,6 +238,9 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "me-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-south-1", }: endpoints.Endpoint{}, diff --git a/service/licensemanager/internal/endpoints/endpoints.go b/service/licensemanager/internal/endpoints/endpoints.go index b75ffe10d42..7006c3b1fb8 100644 --- a/service/licensemanager/internal/endpoints/endpoints.go +++ b/service/licensemanager/internal/endpoints/endpoints.go @@ -187,6 +187,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "eu-south-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-south-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{}, diff --git a/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go b/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go index b02afe5c036..7195209cc37 100644 --- a/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go +++ b/service/licensemanagerusersubscriptions/internal/endpoints/endpoints.go @@ -187,6 +187,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "eu-south-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-south-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{}, diff --git a/service/osis/internal/endpoints/endpoints.go b/service/osis/internal/endpoints/endpoints.go index 9b141e52f6e..72007c9b593 100644 --- a/service/osis/internal/endpoints/endpoints.go +++ b/service/osis/internal/endpoints/endpoints.go @@ -142,12 +142,21 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-northeast-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-2", + }: 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: "ca-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{},