From 933cc704aebb5a41d38f7a61823fe830f1713cb9 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:41:30 -0500 Subject: [PATCH] Release v1.48.1 (2023-11-20) (#5077) Release v1.48.1 (2023-11-20) === ### Service Client Updates * `service/codestar-connections`: Updates service API, documentation, and paginators * `service/docdb`: Updates service API and documentation * Amazon DocumentDB updates for new cluster storage configuration: Amazon DocumentDB I/O-Optimized. * `service/ec2`: Updates service API and documentation * 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. --- CHANGELOG.md | 10 + aws/endpoints/defaults.go | 76 +- aws/version.go | 2 +- .../2019-12-01/api-2.json | 944 +-- .../2019-12-01/docs-2.json | 609 +- .../2019-12-01/paginators-1.json | 10 - models/apis/docdb/2014-10-31/api-2.json | 21 +- models/apis/docdb/2014-10-31/docs-2.json | 7 + models/apis/ec2/2016-11-15/api-2.json | 23 + models/apis/ec2/2016-11-15/docs-2.json | 22 +- models/endpoints/endpoints.json | 51 +- service/codestarconnections/api.go | 7228 +++-------------- .../codestarconnectionsiface/interface.go | 66 - service/codestarconnections/errors.go | 96 +- service/docdb/api.go | 111 + service/ec2/api.go | 168 +- 16 files changed, 1528 insertions(+), 7916 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d93e18fb8ed..436896ebe96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v1.48.1 (2023-11-20) +=== + +### Service Client Updates +* `service/codestar-connections`: Updates service API, documentation, and paginators +* `service/docdb`: Updates service API and documentation + * Amazon DocumentDB updates for new cluster storage configuration: Amazon DocumentDB I/O-Optimized. +* `service/ec2`: Updates service API and documentation + * 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. + Release v1.48.0 (2023-11-17) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index b11016c081a..e3418aacd24 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -1040,6 +1040,21 @@ var awsPartition = partition{ endpointKey{ Region: "ca-central-1", }: endpoint{}, + endpointKey{ + Region: "ca-central-1", + Variant: fipsVariant, + }: endpoint{ + Hostname: "api.detective-fips.ca-central-1.amazonaws.com", + }, + endpointKey{ + Region: "ca-central-1-fips", + }: endpoint{ + Hostname: "api.detective-fips.ca-central-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ca-central-1", + }, + Deprecated: boxedTrue, + }, endpointKey{ Region: "eu-central-1", }: endpoint{}, @@ -11747,6 +11762,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-2", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{}, endpointKey{ Region: "ca-central-1", }: endpoint{}, @@ -11819,6 +11837,9 @@ var awsPartition = partition{ }, Deprecated: boxedTrue, }, + endpointKey{ + Region: "me-central-1", + }: endpoint{}, endpointKey{ Region: "me-south-1", }: endpoint{}, @@ -18064,6 +18085,9 @@ var awsPartition = partition{ endpointKey{ Region: "eu-south-1", }: endpoint{}, + endpointKey{ + Region: "eu-south-2", + }: endpoint{}, endpointKey{ Region: "eu-west-1", }: endpoint{}, @@ -18357,6 +18381,9 @@ var awsPartition = partition{ endpointKey{ Region: "eu-south-1", }: endpoint{}, + endpointKey{ + Region: "eu-south-2", + }: endpoint{}, endpointKey{ Region: "eu-west-1", }: endpoint{}, @@ -18824,46 +18851,6 @@ var awsPartition = partition{ }: endpoint{}, }, }, - "macie": service{ - Endpoints: serviceEndpoints{ - endpointKey{ - Region: "fips-us-east-1", - }: endpoint{ - Hostname: "macie-fips.us-east-1.amazonaws.com", - CredentialScope: credentialScope{ - Region: "us-east-1", - }, - Deprecated: boxedTrue, - }, - endpointKey{ - Region: "fips-us-west-2", - }: endpoint{ - Hostname: "macie-fips.us-west-2.amazonaws.com", - CredentialScope: credentialScope{ - Region: "us-west-2", - }, - Deprecated: boxedTrue, - }, - endpointKey{ - Region: "us-east-1", - }: endpoint{}, - endpointKey{ - Region: "us-east-1", - Variant: fipsVariant, - }: endpoint{ - Hostname: "macie-fips.us-east-1.amazonaws.com", - }, - endpointKey{ - Region: "us-west-2", - }: endpoint{}, - endpointKey{ - Region: "us-west-2", - Variant: fipsVariant, - }: endpoint{ - Hostname: "macie-fips.us-west-2.amazonaws.com", - }, - }, - }, "macie2": service{ Endpoints: serviceEndpoints{ endpointKey{ @@ -21429,12 +21416,21 @@ var awsPartition = partition{ endpointKey{ Region: "ap-northeast-1", }: endpoint{}, + endpointKey{ + Region: "ap-northeast-2", + }: endpoint{}, + endpointKey{ + Region: "ap-south-1", + }: endpoint{}, endpointKey{ Region: "ap-southeast-1", }: endpoint{}, endpointKey{ Region: "ap-southeast-2", }: endpoint{}, + endpointKey{ + Region: "ca-central-1", + }: endpoint{}, endpointKey{ Region: "eu-central-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 77fb05c4e93..6ba526cc8d3 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.48.0" +const SDKVersion = "1.48.1" diff --git a/models/apis/codestar-connections/2019-12-01/api-2.json b/models/apis/codestar-connections/2019-12-01/api-2.json index bfa5d449b5d..4e25fd1a5f9 100644 --- a/models/apis/codestar-connections/2019-12-01/api-2.json +++ b/models/apis/codestar-connections/2019-12-01/api-2.json @@ -39,42 +39,6 @@ {"shape":"LimitExceededException"} ] }, - "CreateRepositoryLink":{ - "name":"CreateRepositoryLink", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateRepositoryLinkInput"}, - "output":{"shape":"CreateRepositoryLinkOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"ResourceAlreadyExistsException"}, - {"shape":"ThrottlingException"} - ] - }, - "CreateSyncConfiguration":{ - "name":"CreateSyncConfiguration", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSyncConfigurationInput"}, - "output":{"shape":"CreateSyncConfigurationOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"ResourceAlreadyExistsException"}, - {"shape":"ThrottlingException"} - ] - }, "DeleteConnection":{ "name":"DeleteConnection", "http":{ @@ -100,42 +64,6 @@ {"shape":"ResourceUnavailableException"} ] }, - "DeleteRepositoryLink":{ - "name":"DeleteRepositoryLink", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteRepositoryLinkInput"}, - "output":{"shape":"DeleteRepositoryLinkOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"SyncConfigurationStillExistsException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"}, - {"shape":"UnsupportedProviderTypeException"} - ] - }, - "DeleteSyncConfiguration":{ - "name":"DeleteSyncConfiguration", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSyncConfigurationInput"}, - "output":{"shape":"DeleteSyncConfigurationOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"LimitExceededException"}, - {"shape":"ThrottlingException"} - ] - }, "GetConnection":{ "name":"GetConnection", "http":{ @@ -162,87 +90,6 @@ {"shape":"ResourceUnavailableException"} ] }, - "GetRepositoryLink":{ - "name":"GetRepositoryLink", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRepositoryLinkInput"}, - "output":{"shape":"GetRepositoryLinkOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, - "GetRepositorySyncStatus":{ - "name":"GetRepositorySyncStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRepositorySyncStatusInput"}, - "output":{"shape":"GetRepositorySyncStatusOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, - "GetResourceSyncStatus":{ - "name":"GetResourceSyncStatus", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetResourceSyncStatusInput"}, - "output":{"shape":"GetResourceSyncStatusOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, - "GetSyncBlockerSummary":{ - "name":"GetSyncBlockerSummary", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetSyncBlockerSummaryInput"}, - "output":{"shape":"GetSyncBlockerSummaryOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, - "GetSyncConfiguration":{ - "name":"GetSyncConfiguration", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetSyncConfigurationInput"}, - "output":{"shape":"GetSyncConfigurationOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, "ListConnections":{ "name":"ListConnections", "http":{ @@ -264,55 +111,6 @@ "input":{"shape":"ListHostsInput"}, "output":{"shape":"ListHostsOutput"} }, - "ListRepositoryLinks":{ - "name":"ListRepositoryLinks", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRepositoryLinksInput"}, - "output":{"shape":"ListRepositoryLinksOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, - "ListRepositorySyncDefinitions":{ - "name":"ListRepositorySyncDefinitions", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRepositorySyncDefinitionsInput"}, - "output":{"shape":"ListRepositorySyncDefinitionsOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, - "ListSyncConfigurations":{ - "name":"ListSyncConfigurations", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListSyncConfigurationsInput"}, - "output":{"shape":"ListSyncConfigurationsOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"} - ] - }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ @@ -364,70 +162,9 @@ {"shape":"ResourceUnavailableException"}, {"shape":"UnsupportedOperationException"} ] - }, - "UpdateRepositoryLink":{ - "name":"UpdateRepositoryLink", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateRepositoryLinkInput"}, - "output":{"shape":"UpdateRepositoryLinkOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConditionalCheckFailedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"}, - {"shape":"UpdateOutOfSyncException"} - ] - }, - "UpdateSyncBlocker":{ - "name":"UpdateSyncBlocker", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateSyncBlockerInput"}, - "output":{"shape":"UpdateSyncBlockerOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"RetryLatestCommitFailedException"}, - {"shape":"SyncBlockerDoesNotExistException"}, - {"shape":"ThrottlingException"} - ] - }, - "UpdateSyncConfiguration":{ - "name":"UpdateSyncConfiguration", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateSyncConfigurationInput"}, - "output":{"shape":"UpdateSyncConfigurationOutput"}, - "errors":[ - {"shape":"AccessDeniedException"}, - {"shape":"ConcurrentModificationException"}, - {"shape":"InternalServerException"}, - {"shape":"InvalidInputException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"}, - {"shape":"UpdateOutOfSyncException"} - ] } }, "shapes":{ - "AccessDeniedException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, "AccountId":{ "type":"string", "max":12, @@ -440,37 +177,6 @@ "min":1, "pattern":"arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+" }, - "BlockerStatus":{ - "type":"string", - "enum":[ - "ACTIVE", - "RESOLVED" - ] - }, - "BlockerType":{ - "type":"string", - "enum":["AUTOMATED"] - }, - "BranchName":{ - "type":"string", - "max":255, - "min":1, - "pattern":"^.*$" - }, - "ConcurrentModificationException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "ConditionalCheckFailedException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, "ConflictException":{ "type":"structure", "members":{ @@ -553,55 +259,6 @@ "Tags":{"shape":"TagList"} } }, - "CreateRepositoryLinkInput":{ - "type":"structure", - "required":[ - "ConnectionArn", - "OwnerId", - "RepositoryName" - ], - "members":{ - "ConnectionArn":{"shape":"ConnectionArn"}, - "OwnerId":{"shape":"OwnerId"}, - "RepositoryName":{"shape":"RepositoryName"}, - "EncryptionKeyArn":{"shape":"KmsKeyArn"}, - "Tags":{"shape":"TagList"} - } - }, - "CreateRepositoryLinkOutput":{ - "type":"structure", - "required":["RepositoryLinkInfo"], - "members":{ - "RepositoryLinkInfo":{"shape":"RepositoryLinkInfo"} - } - }, - "CreateSyncConfigurationInput":{ - "type":"structure", - "required":[ - "Branch", - "ConfigFile", - "RepositoryLinkId", - "ResourceName", - "RoleArn", - "SyncType" - ], - "members":{ - "Branch":{"shape":"BranchName"}, - "ConfigFile":{"shape":"DeploymentFilePath"}, - "RepositoryLinkId":{"shape":"RepositoryLinkId"}, - "ResourceName":{"shape":"ResourceName"}, - "RoleArn":{"shape":"IamRoleArn"}, - "SyncType":{"shape":"SyncConfigurationType"} - } - }, - "CreateSyncConfigurationOutput":{ - "type":"structure", - "required":["SyncConfiguration"], - "members":{ - "SyncConfiguration":{"shape":"SyncConfiguration"} - } - }, - "CreatedReason":{"type":"string"}, "DeleteConnectionInput":{ "type":"structure", "required":["ConnectionArn"], @@ -626,42 +283,10 @@ "members":{ } }, - "DeleteRepositoryLinkInput":{ - "type":"structure", - "required":["RepositoryLinkId"], - "members":{ - "RepositoryLinkId":{"shape":"RepositoryLinkId"} - } - }, - "DeleteRepositoryLinkOutput":{ - "type":"structure", - "members":{ - } - }, - "DeleteSyncConfigurationInput":{ - "type":"structure", - "required":[ - "SyncType", - "ResourceName" - ], - "members":{ - "SyncType":{"shape":"SyncConfigurationType"}, - "ResourceName":{"shape":"ResourceName"} - } - }, - "DeleteSyncConfigurationOutput":{ - "type":"structure", - "members":{ - } - }, - "DeploymentFilePath":{"type":"string"}, - "Directory":{"type":"string"}, "ErrorMessage":{ "type":"string", "max":600 }, - "Event":{"type":"string"}, - "ExternalId":{"type":"string"}, "GetConnectionInput":{ "type":"structure", "required":["ConnectionArn"], @@ -692,96 +317,6 @@ "VpcConfiguration":{"shape":"VpcConfiguration"} } }, - "GetRepositoryLinkInput":{ - "type":"structure", - "required":["RepositoryLinkId"], - "members":{ - "RepositoryLinkId":{"shape":"RepositoryLinkId"} - } - }, - "GetRepositoryLinkOutput":{ - "type":"structure", - "required":["RepositoryLinkInfo"], - "members":{ - "RepositoryLinkInfo":{"shape":"RepositoryLinkInfo"} - } - }, - "GetRepositorySyncStatusInput":{ - "type":"structure", - "required":[ - "Branch", - "RepositoryLinkId", - "SyncType" - ], - "members":{ - "Branch":{"shape":"BranchName"}, - "RepositoryLinkId":{"shape":"RepositoryLinkId"}, - "SyncType":{"shape":"SyncConfigurationType"} - } - }, - "GetRepositorySyncStatusOutput":{ - "type":"structure", - "required":["LatestSync"], - "members":{ - "LatestSync":{"shape":"RepositorySyncAttempt"} - } - }, - "GetResourceSyncStatusInput":{ - "type":"structure", - "required":[ - "ResourceName", - "SyncType" - ], - "members":{ - "ResourceName":{"shape":"ResourceName"}, - "SyncType":{"shape":"SyncConfigurationType"} - } - }, - "GetResourceSyncStatusOutput":{ - "type":"structure", - "required":["LatestSync"], - "members":{ - "DesiredState":{"shape":"Revision"}, - "LatestSuccessfulSync":{"shape":"ResourceSyncAttempt"}, - "LatestSync":{"shape":"ResourceSyncAttempt"} - } - }, - "GetSyncBlockerSummaryInput":{ - "type":"structure", - "required":[ - "SyncType", - "ResourceName" - ], - "members":{ - "SyncType":{"shape":"SyncConfigurationType"}, - "ResourceName":{"shape":"ResourceName"} - } - }, - "GetSyncBlockerSummaryOutput":{ - "type":"structure", - "required":["SyncBlockerSummary"], - "members":{ - "SyncBlockerSummary":{"shape":"SyncBlockerSummary"} - } - }, - "GetSyncConfigurationInput":{ - "type":"structure", - "required":[ - "SyncType", - "ResourceName" - ], - "members":{ - "SyncType":{"shape":"SyncConfigurationType"}, - "ResourceName":{"shape":"ResourceName"} - } - }, - "GetSyncConfigurationOutput":{ - "type":"structure", - "required":["SyncConfiguration"], - "members":{ - "SyncConfiguration":{"shape":"SyncConfiguration"} - } - }, "Host":{ "type":"structure", "members":{ @@ -817,41 +352,6 @@ "pattern":".*" }, "HostStatusMessage":{"type":"string"}, - "IamRoleArn":{ - "type":"string", - "max":1024, - "min":1, - "pattern":"arn:aws(-[\\w]+)*:iam::\\d{12}:role/[a-zA-Z_0-9+=,.@\\-_/]+" - }, - "Id":{ - "type":"string", - "max":50, - "min":1 - }, - "InternalServerException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "InvalidInputException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "KmsKeyArn":{ - "type":"string", - "max":1024, - "min":1, - "pattern":"arn:aws(-[\\w]+)*:kms:[a-z\\-0-9]+:\\d{12}:key/[a-zA-Z0-9\\-]+" - }, - "LatestSyncBlockerList":{ - "type":"list", - "member":{"shape":"SyncBlocker"} - }, "LimitExceededException":{ "type":"structure", "members":{ @@ -889,61 +389,6 @@ "NextToken":{"shape":"NextToken"} } }, - "ListRepositoryLinksInput":{ - "type":"structure", - "members":{ - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"SharpNextToken"} - } - }, - "ListRepositoryLinksOutput":{ - "type":"structure", - "required":["RepositoryLinks"], - "members":{ - "RepositoryLinks":{"shape":"RepositoryLinkList"}, - "NextToken":{"shape":"SharpNextToken"} - } - }, - "ListRepositorySyncDefinitionsInput":{ - "type":"structure", - "required":[ - "RepositoryLinkId", - "SyncType" - ], - "members":{ - "RepositoryLinkId":{"shape":"RepositoryLinkId"}, - "SyncType":{"shape":"SyncConfigurationType"} - } - }, - "ListRepositorySyncDefinitionsOutput":{ - "type":"structure", - "required":["RepositorySyncDefinitions"], - "members":{ - "RepositorySyncDefinitions":{"shape":"RepositorySyncDefinitionList"}, - "NextToken":{"shape":"SharpNextToken"} - } - }, - "ListSyncConfigurationsInput":{ - "type":"structure", - "required":[ - "RepositoryLinkId", - "SyncType" - ], - "members":{ - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"SharpNextToken"}, - "RepositoryLinkId":{"shape":"RepositoryLinkId"}, - "SyncType":{"shape":"SyncConfigurationType"} - } - }, - "ListSyncConfigurationsOutput":{ - "type":"structure", - "required":["SyncConfigurations"], - "members":{ - "SyncConfigurations":{"shape":"SyncConfigurationList"}, - "NextToken":{"shape":"SharpNextToken"} - } - }, "ListTagsForResourceInput":{ "type":"structure", "required":["ResourceArn"], @@ -966,15 +411,8 @@ "type":"string", "max":1024, "min":1, - "pattern":"^.*$" - }, - "OwnerId":{ - "type":"string", - "max":255, - "min":1, - "pattern":"^.*$" + "pattern":".*" }, - "Parent":{"type":"string"}, "ProviderType":{ "type":"string", "enum":[ @@ -984,122 +422,6 @@ "GitLab" ] }, - "RepositoryLinkArn":{ - "type":"string", - "pattern":"^arn:aws(?:-[a-z]+)*:codestar-connections:[a-z\\-0-9]+:\\d{12}:repository-link\\/[a-zA-Z0-9\\-:/]+" - }, - "RepositoryLinkId":{ - "type":"string", - "pattern":"^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$" - }, - "RepositoryLinkInfo":{ - "type":"structure", - "required":[ - "ConnectionArn", - "OwnerId", - "ProviderType", - "RepositoryLinkArn", - "RepositoryLinkId", - "RepositoryName" - ], - "members":{ - "ConnectionArn":{"shape":"ConnectionArn"}, - "EncryptionKeyArn":{"shape":"KmsKeyArn"}, - "OwnerId":{"shape":"OwnerId"}, - "ProviderType":{"shape":"ProviderType"}, - "RepositoryLinkArn":{"shape":"RepositoryLinkArn"}, - "RepositoryLinkId":{"shape":"RepositoryLinkId"}, - "RepositoryName":{"shape":"RepositoryName"} - } - }, - "RepositoryLinkList":{ - "type":"list", - "member":{"shape":"RepositoryLinkInfo"} - }, - "RepositoryName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"^.*$" - }, - "RepositorySyncAttempt":{ - "type":"structure", - "required":[ - "StartedAt", - "Status", - "Events" - ], - "members":{ - "StartedAt":{"shape":"Timestamp"}, - "Status":{"shape":"RepositorySyncStatus"}, - "Events":{"shape":"RepositorySyncEventList"} - } - }, - "RepositorySyncDefinition":{ - "type":"structure", - "required":[ - "Branch", - "Directory", - "Parent", - "Target" - ], - "members":{ - "Branch":{"shape":"BranchName"}, - "Directory":{"shape":"Directory"}, - "Parent":{"shape":"Parent"}, - "Target":{"shape":"Target"} - } - }, - "RepositorySyncDefinitionList":{ - "type":"list", - "member":{"shape":"RepositorySyncDefinition"} - }, - "RepositorySyncEvent":{ - "type":"structure", - "required":[ - "Event", - "Time", - "Type" - ], - "members":{ - "Event":{"shape":"Event"}, - "ExternalId":{"shape":"ExternalId"}, - "Time":{"shape":"Timestamp"}, - "Type":{"shape":"Type"} - } - }, - "RepositorySyncEventList":{ - "type":"list", - "member":{"shape":"RepositorySyncEvent"} - }, - "RepositorySyncStatus":{ - "type":"string", - "enum":[ - "FAILED", - "INITIATED", - "IN_PROGRESS", - "SUCCEEDED", - "QUEUED" - ] - }, - "ResolvedReason":{ - "type":"string", - "max":250, - "min":1 - }, - "ResourceAlreadyExistsException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "ResourceName":{ - "type":"string", - "max":100, - "min":1, - "pattern":"^[0-9A-Za-z]+[0-9A-Za-z_\\\\-]*$" - }, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -1107,52 +429,6 @@ }, "exception":true }, - "ResourceSyncAttempt":{ - "type":"structure", - "required":[ - "Events", - "InitialRevision", - "StartedAt", - "Status", - "TargetRevision", - "Target" - ], - "members":{ - "Events":{"shape":"ResourceSyncEventList"}, - "InitialRevision":{"shape":"Revision"}, - "StartedAt":{"shape":"Timestamp"}, - "Status":{"shape":"ResourceSyncStatus"}, - "TargetRevision":{"shape":"Revision"}, - "Target":{"shape":"Target"} - } - }, - "ResourceSyncEvent":{ - "type":"structure", - "required":[ - "Event", - "Time", - "Type" - ], - "members":{ - "Event":{"shape":"Event"}, - "ExternalId":{"shape":"ExternalId"}, - "Time":{"shape":"Timestamp"}, - "Type":{"shape":"Type"} - } - }, - "ResourceSyncEventList":{ - "type":"list", - "member":{"shape":"ResourceSyncEvent"} - }, - "ResourceSyncStatus":{ - "type":"string", - "enum":[ - "FAILED", - "INITIATED", - "IN_PROGRESS", - "SUCCEEDED" - ] - }, "ResourceUnavailableException":{ "type":"structure", "members":{ @@ -1160,37 +436,6 @@ }, "exception":true }, - "RetryLatestCommitFailedException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "Revision":{ - "type":"structure", - "required":[ - "Branch", - "Directory", - "OwnerId", - "RepositoryName", - "ProviderType", - "Sha" - ], - "members":{ - "Branch":{"shape":"BranchName"}, - "Directory":{"shape":"Directory"}, - "OwnerId":{"shape":"OwnerId"}, - "RepositoryName":{"shape":"RepositoryName"}, - "ProviderType":{"shape":"ProviderType"}, - "Sha":{"shape":"SHA"} - } - }, - "SHA":{ - "type":"string", - "max":255, - "min":1 - }, "SecurityGroupId":{ "type":"string", "max":20, @@ -1203,12 +448,6 @@ "max":10, "min":1 }, - "SharpNextToken":{ - "type":"string", - "max":2048, - "min":1, - "pattern":"^.*$" - }, "SubnetId":{ "type":"string", "max":24, @@ -1221,98 +460,6 @@ "max":10, "min":1 }, - "SyncBlocker":{ - "type":"structure", - "required":[ - "Id", - "Type", - "Status", - "CreatedReason", - "CreatedAt" - ], - "members":{ - "Id":{"shape":"Id"}, - "Type":{"shape":"BlockerType"}, - "Status":{"shape":"BlockerStatus"}, - "CreatedReason":{"shape":"CreatedReason"}, - "CreatedAt":{"shape":"Timestamp"}, - "Contexts":{"shape":"SyncBlockerContextList"}, - "ResolvedReason":{"shape":"ResolvedReason"}, - "ResolvedAt":{"shape":"Timestamp"} - } - }, - "SyncBlockerContext":{ - "type":"structure", - "required":[ - "Key", - "Value" - ], - "members":{ - "Key":{"shape":"SyncBlockerContextKey"}, - "Value":{"shape":"SyncBlockerContextValue"} - } - }, - "SyncBlockerContextKey":{"type":"string"}, - "SyncBlockerContextList":{ - "type":"list", - "member":{"shape":"SyncBlockerContext"} - }, - "SyncBlockerContextValue":{"type":"string"}, - "SyncBlockerDoesNotExistException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "SyncBlockerSummary":{ - "type":"structure", - "required":["ResourceName"], - "members":{ - "ResourceName":{"shape":"ResourceName"}, - "ParentResourceName":{"shape":"ResourceName"}, - "LatestBlockers":{"shape":"LatestSyncBlockerList"} - } - }, - "SyncConfiguration":{ - "type":"structure", - "required":[ - "Branch", - "OwnerId", - "ProviderType", - "RepositoryLinkId", - "RepositoryName", - "ResourceName", - "RoleArn", - "SyncType" - ], - "members":{ - "Branch":{"shape":"BranchName"}, - "ConfigFile":{"shape":"DeploymentFilePath"}, - "OwnerId":{"shape":"OwnerId"}, - "ProviderType":{"shape":"ProviderType"}, - "RepositoryLinkId":{"shape":"RepositoryLinkId"}, - "RepositoryName":{"shape":"RepositoryName"}, - "ResourceName":{"shape":"ResourceName"}, - "RoleArn":{"shape":"IamRoleArn"}, - "SyncType":{"shape":"SyncConfigurationType"} - } - }, - "SyncConfigurationList":{ - "type":"list", - "member":{"shape":"SyncConfiguration"} - }, - "SyncConfigurationStillExistsException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "SyncConfigurationType":{ - "type":"string", - "enum":["CFN_STACK_SYNC"] - }, "Tag":{ "type":"structure", "required":[ @@ -1364,22 +511,12 @@ "min":0, "pattern":".*" }, - "Target":{"type":"string"}, - "ThrottlingException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "Timestamp":{"type":"timestamp"}, "TlsCertificate":{ "type":"string", "max":16384, "min":1, "pattern":"[\\s\\S]*" }, - "Type":{"type":"string"}, "UnsupportedOperationException":{ "type":"structure", "members":{ @@ -1387,13 +524,6 @@ }, "exception":true }, - "UnsupportedProviderTypeException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, "UntagResourceInput":{ "type":"structure", "required":[ @@ -1424,78 +554,6 @@ "members":{ } }, - "UpdateOutOfSyncException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ErrorMessage"} - }, - "exception":true - }, - "UpdateRepositoryLinkInput":{ - "type":"structure", - "required":["RepositoryLinkId"], - "members":{ - "ConnectionArn":{"shape":"ConnectionArn"}, - "EncryptionKeyArn":{"shape":"KmsKeyArn"}, - "RepositoryLinkId":{"shape":"RepositoryLinkId"} - } - }, - "UpdateRepositoryLinkOutput":{ - "type":"structure", - "required":["RepositoryLinkInfo"], - "members":{ - "RepositoryLinkInfo":{"shape":"RepositoryLinkInfo"} - } - }, - "UpdateSyncBlockerInput":{ - "type":"structure", - "required":[ - "Id", - "SyncType", - "ResourceName", - "ResolvedReason" - ], - "members":{ - "Id":{"shape":"Id"}, - "SyncType":{"shape":"SyncConfigurationType"}, - "ResourceName":{"shape":"ResourceName"}, - "ResolvedReason":{"shape":"ResolvedReason"} - } - }, - "UpdateSyncBlockerOutput":{ - "type":"structure", - "required":[ - "ResourceName", - "SyncBlocker" - ], - "members":{ - "ResourceName":{"shape":"ResourceName"}, - "ParentResourceName":{"shape":"ResourceName"}, - "SyncBlocker":{"shape":"SyncBlocker"} - } - }, - "UpdateSyncConfigurationInput":{ - "type":"structure", - "required":[ - "ResourceName", - "SyncType" - ], - "members":{ - "Branch":{"shape":"BranchName"}, - "ConfigFile":{"shape":"DeploymentFilePath"}, - "RepositoryLinkId":{"shape":"RepositoryLinkId"}, - "ResourceName":{"shape":"ResourceName"}, - "RoleArn":{"shape":"IamRoleArn"}, - "SyncType":{"shape":"SyncConfigurationType"} - } - }, - "UpdateSyncConfigurationOutput":{ - "type":"structure", - "required":["SyncConfiguration"], - "members":{ - "SyncConfiguration":{"shape":"SyncConfiguration"} - } - }, "Url":{ "type":"string", "max":512, diff --git a/models/apis/codestar-connections/2019-12-01/docs-2.json b/models/apis/codestar-connections/2019-12-01/docs-2.json index c4298deb9b1..152d14b8a3d 100644 --- a/models/apis/codestar-connections/2019-12-01/docs-2.json +++ b/models/apis/codestar-connections/2019-12-01/docs-2.json @@ -4,38 +4,18 @@ "operations": { "CreateConnection": "

Creates a connection that can then be given to other Amazon Web Services services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.

", "CreateHost": "

Creates a resource that represents the infrastructure where a third-party provider is installed. The host is used when you create connections to an installed third-party provider type, such as GitHub Enterprise Server. You create one host for all connections to that provider.

A host created through the CLI or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by setting up the host in the console.

", - "CreateRepositoryLink": "

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.

", - "CreateSyncConfiguration": "

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.

", "DeleteConnection": "

The connection to be deleted.

", "DeleteHost": "

The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.

A host cannot be deleted if it is in the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.

", - "DeleteRepositoryLink": "

Deletes the association between your connection and a specified external Git repository.

", - "DeleteSyncConfiguration": "

Deletes the sync configuration for a specified repository and connection.

", "GetConnection": "

Returns the connection ARN and details such as status, owner, and provider type.

", "GetHost": "

Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.

", - "GetRepositoryLink": "

Returns details about a repository link. A repository link allows Git sync to monitor and sync changes from files in a specified Git repository.

", - "GetRepositorySyncStatus": "

Returns details about the sync status for a repository. A repository sync uses Git sync to push and pull changes from your remote repository.

", - "GetResourceSyncStatus": "

Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.

", - "GetSyncBlockerSummary": "

Returns a list of the most recent sync blockers.

", - "GetSyncConfiguration": "

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.

", "ListConnections": "

Lists the connections associated with your account.

", "ListHosts": "

Lists the hosts associated with your account.

", - "ListRepositoryLinks": "

Lists the repository links created for connections in your account.

", - "ListRepositorySyncDefinitions": "

Lists the repository sync definitions for repository links in your account.

", - "ListSyncConfigurations": "

Returns a list of sync configurations for a specified repository.

", "ListTagsForResource": "

Gets the set of key-value pairs (metadata) that are used to manage the resource.

", "TagResource": "

Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

", "UntagResource": "

Removes tags from an Amazon Web Services resource.

", - "UpdateHost": "

Updates a specified host with the provided configurations.

", - "UpdateRepositoryLink": "

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.

", - "UpdateSyncBlocker": "

Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.

", - "UpdateSyncConfiguration": "

Updates the sync configuration for your connection and a specified external Git repository.

" + "UpdateHost": "

Updates a specified host with the provided configurations.

" }, "shapes": { - "AccessDeniedException": { - "base": "

You do not have sufficient access to perform this action.

", - "refs": { - } - }, "AccountId": { "base": null, "refs": { @@ -50,39 +30,6 @@ "UntagResourceInput$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to remove tags from.

" } }, - "BlockerStatus": { - "base": null, - "refs": { - "SyncBlocker$Status": "

The status for a specific sync blocker.

" - } - }, - "BlockerType": { - "base": null, - "refs": { - "SyncBlocker$Type": "

The sync blocker type.

" - } - }, - "BranchName": { - "base": null, - "refs": { - "CreateSyncConfigurationInput$Branch": "

The branch in the repository from which changes will be synced.

", - "GetRepositorySyncStatusInput$Branch": "

The branch of the repository link for the requested repository sync status.

", - "RepositorySyncDefinition$Branch": "

The branch specified for a repository sync definition.

", - "Revision$Branch": "

The branch name for a specific revision.

", - "SyncConfiguration$Branch": "

The branch associated with a specific sync configuration.

", - "UpdateSyncConfigurationInput$Branch": "

The branch for the sync configuration to be updated.

" - } - }, - "ConcurrentModificationException": { - "base": "

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.

", - "refs": { - } - }, - "ConditionalCheckFailedException": { - "base": "

The conditional check failed. Try again later.

", - "refs": { - } - }, "ConflictException": { "base": "

Two conflicting operations have been made on the same resource.

", "refs": { @@ -100,11 +47,8 @@ "refs": { "Connection$ConnectionArn": "

The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Services.

The ARN is never reused if the connection is deleted.

", "CreateConnectionOutput$ConnectionArn": "

The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between Amazon Web Services services.

The ARN is never reused if the connection is deleted.

", - "CreateRepositoryLinkInput$ConnectionArn": "

The Amazon Resource Name (ARN) of the connection to be associated with the repository link.

", "DeleteConnectionInput$ConnectionArn": "

The Amazon Resource Name (ARN) of the connection to be deleted.

The ARN is never reused if the connection is deleted.

", - "GetConnectionInput$ConnectionArn": "

The Amazon Resource Name (ARN) of a connection.

", - "RepositoryLinkInfo$ConnectionArn": "

The Amazon Resource Name (ARN) of the connection associated with the repository link.

", - "UpdateRepositoryLinkInput$ConnectionArn": "

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.

" + "GetConnectionInput$ConnectionArn": "

The Amazon Resource Name (ARN) of a connection.

" } }, "ConnectionList": { @@ -146,32 +90,6 @@ "refs": { } }, - "CreateRepositoryLinkInput": { - "base": null, - "refs": { - } - }, - "CreateRepositoryLinkOutput": { - "base": null, - "refs": { - } - }, - "CreateSyncConfigurationInput": { - "base": null, - "refs": { - } - }, - "CreateSyncConfigurationOutput": { - "base": null, - "refs": { - } - }, - "CreatedReason": { - "base": null, - "refs": { - "SyncBlocker$CreatedReason": "

The provided reason for a specific sync blocker.

" - } - }, "DeleteConnectionInput": { "base": null, "refs": { @@ -192,75 +110,14 @@ "refs": { } }, - "DeleteRepositoryLinkInput": { - "base": null, - "refs": { - } - }, - "DeleteRepositoryLinkOutput": { - "base": null, - "refs": { - } - }, - "DeleteSyncConfigurationInput": { - "base": null, - "refs": { - } - }, - "DeleteSyncConfigurationOutput": { - "base": null, - "refs": { - } - }, - "DeploymentFilePath": { - "base": null, - "refs": { - "CreateSyncConfigurationInput$ConfigFile": "

The file name of the configuration file that manages syncing between the connection and the repository. This configuration file is stored in the repository.

", - "SyncConfiguration$ConfigFile": "

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.

", - "UpdateSyncConfigurationInput$ConfigFile": "

The configuration file for the sync configuration to be updated.

" - } - }, - "Directory": { - "base": null, - "refs": { - "RepositorySyncDefinition$Directory": "

The configuration file for a repository sync definition. This value comes from creating or updating the config-file field of a sync-configuration.

", - "Revision$Directory": "

The directory, if any, for a specific revision.

" - } - }, "ErrorMessage": { "base": null, "refs": { - "AccessDeniedException$Message": null, - "ConcurrentModificationException$Message": null, - "ConditionalCheckFailedException$Message": null, "ConflictException$Message": null, - "InternalServerException$Message": null, - "InvalidInputException$Message": null, "LimitExceededException$Message": null, - "ResourceAlreadyExistsException$Message": null, "ResourceNotFoundException$Message": null, "ResourceUnavailableException$Message": null, - "RetryLatestCommitFailedException$Message": null, - "SyncBlockerDoesNotExistException$Message": null, - "SyncConfigurationStillExistsException$Message": null, - "ThrottlingException$Message": null, - "UnsupportedOperationException$Message": null, - "UnsupportedProviderTypeException$Message": null, - "UpdateOutOfSyncException$Message": null - } - }, - "Event": { - "base": null, - "refs": { - "RepositorySyncEvent$Event": "

A description of a repository sync event.

", - "ResourceSyncEvent$Event": "

The event for a resource sync event.

" - } - }, - "ExternalId": { - "base": null, - "refs": { - "RepositorySyncEvent$ExternalId": "

The ID for a repository sync event.

", - "ResourceSyncEvent$ExternalId": "

The ID for a resource sync event.

" + "UnsupportedOperationException$Message": null } }, "GetConnectionInput": { @@ -283,56 +140,6 @@ "refs": { } }, - "GetRepositoryLinkInput": { - "base": null, - "refs": { - } - }, - "GetRepositoryLinkOutput": { - "base": null, - "refs": { - } - }, - "GetRepositorySyncStatusInput": { - "base": null, - "refs": { - } - }, - "GetRepositorySyncStatusOutput": { - "base": null, - "refs": { - } - }, - "GetResourceSyncStatusInput": { - "base": null, - "refs": { - } - }, - "GetResourceSyncStatusOutput": { - "base": null, - "refs": { - } - }, - "GetSyncBlockerSummaryInput": { - "base": null, - "refs": { - } - }, - "GetSyncBlockerSummaryOutput": { - "base": null, - "refs": { - } - }, - "GetSyncConfigurationInput": { - "base": null, - "refs": { - } - }, - "GetSyncConfigurationOutput": { - "base": null, - "refs": { - } - }, "Host": { "base": "

A resource that represents the infrastructure where a third-party provider is installed. The host is used when you create connections to an installed third-party provider type, such as GitHub Enterprise Server. You create one host for all connections to that provider.

A host created through the CLI or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by setting up the host in the console.

", "refs": { @@ -379,45 +186,6 @@ "Host$StatusMessage": "

The status description for the host.

" } }, - "IamRoleArn": { - "base": null, - "refs": { - "CreateSyncConfigurationInput$RoleArn": "

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.

", - "SyncConfiguration$RoleArn": "

The Amazon Resource Name (ARN) of the IAM role associated with a specific sync configuration.

", - "UpdateSyncConfigurationInput$RoleArn": "

The ARN of the IAM role for the sync configuration to be updated.

" - } - }, - "Id": { - "base": null, - "refs": { - "SyncBlocker$Id": "

The ID for a specific sync blocker.

", - "UpdateSyncBlockerInput$Id": "

The ID of the sync blocker to be updated.

" - } - }, - "InternalServerException": { - "base": "

Received an internal server exception. Try again later.

", - "refs": { - } - }, - "InvalidInputException": { - "base": "

The input is not valid. Verify that the action is typed correctly.

", - "refs": { - } - }, - "KmsKeyArn": { - "base": null, - "refs": { - "CreateRepositoryLinkInput$EncryptionKeyArn": "

The Amazon Resource Name (ARN) encryption key for the repository to be associated with the repository link.

", - "RepositoryLinkInfo$EncryptionKeyArn": "

The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.

", - "UpdateRepositoryLinkInput$EncryptionKeyArn": "

The Amazon Resource Name (ARN) of the encryption key for the repository link to be updated.

" - } - }, - "LatestSyncBlockerList": { - "base": null, - "refs": { - "SyncBlockerSummary$LatestBlockers": "

The latest events for a sync blocker summary.

" - } - }, "LimitExceededException": { "base": "

Exceeded the maximum limit for connections.

", "refs": { @@ -443,36 +211,6 @@ "refs": { } }, - "ListRepositoryLinksInput": { - "base": null, - "refs": { - } - }, - "ListRepositoryLinksOutput": { - "base": null, - "refs": { - } - }, - "ListRepositorySyncDefinitionsInput": { - "base": null, - "refs": { - } - }, - "ListRepositorySyncDefinitionsOutput": { - "base": null, - "refs": { - } - }, - "ListSyncConfigurationsInput": { - "base": null, - "refs": { - } - }, - "ListSyncConfigurationsOutput": { - "base": null, - "refs": { - } - }, "ListTagsForResourceInput": { "base": null, "refs": { @@ -487,9 +225,7 @@ "base": null, "refs": { "ListConnectionsInput$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", - "ListHostsInput$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", - "ListRepositoryLinksInput$MaxResults": "

A non-zero, non-negative integer used to limit the number of returned results.

", - "ListSyncConfigurationsInput$MaxResults": "

A non-zero, non-negative integer used to limit the number of returned results.

" + "ListHostsInput$MaxResults": "

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.

" } }, "NextToken": { @@ -501,21 +237,6 @@ "ListHostsOutput$NextToken": "

A token that can be used in the next ListHosts call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.

" } }, - "OwnerId": { - "base": null, - "refs": { - "CreateRepositoryLinkInput$OwnerId": "

The owner ID for the repository associated with a specific sync configuration, such as the owner ID in GitHub.

", - "RepositoryLinkInfo$OwnerId": "

The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.

", - "Revision$OwnerId": "

The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.

", - "SyncConfiguration$OwnerId": "

The owner ID for the repository associated with a specific sync configuration, such as the owner ID in GitHub.

" - } - }, - "Parent": { - "base": null, - "refs": { - "RepositorySyncDefinition$Parent": "

The parent resource specified for a repository sync definition.

" - } - }, "ProviderType": { "base": null, "refs": { @@ -524,120 +245,7 @@ "CreateHostInput$ProviderType": "

The name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.

", "GetHostOutput$ProviderType": "

The provider type of the requested host, such as GitHub Enterprise Server.

", "Host$ProviderType": "

The name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.

", - "ListConnectionsInput$ProviderTypeFilter": "

Filters the list of connections to those associated with a specified provider, such as Bitbucket.

", - "RepositoryLinkInfo$ProviderType": "

The provider type for the connection, such as GitHub, associated with the repository link.

", - "Revision$ProviderType": "

The provider type for a revision, such as GitHub.

", - "SyncConfiguration$ProviderType": "

The connection provider type associated with a specific sync configuration, such as GitHub.

" - } - }, - "RepositoryLinkArn": { - "base": null, - "refs": { - "RepositoryLinkInfo$RepositoryLinkArn": "

The Amazon Resource Name (ARN) of the repository link.

" - } - }, - "RepositoryLinkId": { - "base": null, - "refs": { - "CreateSyncConfigurationInput$RepositoryLinkId": "

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.

", - "DeleteRepositoryLinkInput$RepositoryLinkId": "

The ID of the repository link to be deleted.

", - "GetRepositoryLinkInput$RepositoryLinkId": "

The ID of the repository link to get.

", - "GetRepositorySyncStatusInput$RepositoryLinkId": "

The repository link ID for the requested repository sync status.

", - "ListRepositorySyncDefinitionsInput$RepositoryLinkId": "

The ID of the repository link for the sync definition for which you want to retrieve information.

", - "ListSyncConfigurationsInput$RepositoryLinkId": "

The ID of the repository link for the requested list of sync configurations.

", - "RepositoryLinkInfo$RepositoryLinkId": "

The ID of the repository link.

", - "SyncConfiguration$RepositoryLinkId": "

The ID of the repository link associated with a specific sync configuration.

", - "UpdateRepositoryLinkInput$RepositoryLinkId": "

The ID of the repository link to be updated.

", - "UpdateSyncConfigurationInput$RepositoryLinkId": "

The ID of the repository link for the sync configuration to be updated.

" - } - }, - "RepositoryLinkInfo": { - "base": "

Information about the repository link resource, such as the repository link ARN, the associated connection ARN, encryption key ARN, and owner ID.

", - "refs": { - "CreateRepositoryLinkOutput$RepositoryLinkInfo": "

The returned information about the created repository link.

", - "GetRepositoryLinkOutput$RepositoryLinkInfo": "

The information returned for a specified repository link.

", - "RepositoryLinkList$member": null, - "UpdateRepositoryLinkOutput$RepositoryLinkInfo": "

Information about the repository link to be updated.

" - } - }, - "RepositoryLinkList": { - "base": null, - "refs": { - "ListRepositoryLinksOutput$RepositoryLinks": "

Lists the repository links called by the list repository links operation.

" - } - }, - "RepositoryName": { - "base": null, - "refs": { - "CreateRepositoryLinkInput$RepositoryName": "

The name of the repository to be associated with the repository link.

", - "RepositoryLinkInfo$RepositoryName": "

The name of the repository associated with the repository link.

", - "Revision$RepositoryName": "

The repository name for a specific revision.

", - "SyncConfiguration$RepositoryName": "

The name of the repository associated with a specific sync configuration.

" - } - }, - "RepositorySyncAttempt": { - "base": "

Information about a repository sync attempt for a repository with a sync configuration.

", - "refs": { - "GetRepositorySyncStatusOutput$LatestSync": "

The status of the latest sync returned for a specified repository and branch.

" - } - }, - "RepositorySyncDefinition": { - "base": "

The definition for a repository with a sync configuration.

", - "refs": { - "RepositorySyncDefinitionList$member": null - } - }, - "RepositorySyncDefinitionList": { - "base": null, - "refs": { - "ListRepositorySyncDefinitionsOutput$RepositorySyncDefinitions": "

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.

" - } - }, - "RepositorySyncEvent": { - "base": "

Information about a repository sync event.

", - "refs": { - "RepositorySyncEventList$member": null - } - }, - "RepositorySyncEventList": { - "base": null, - "refs": { - "RepositorySyncAttempt$Events": "

The events associated with a specific sync attempt.

" - } - }, - "RepositorySyncStatus": { - "base": null, - "refs": { - "RepositorySyncAttempt$Status": "

The status of a specific sync attempt. The following are valid statuses:

" - } - }, - "ResolvedReason": { - "base": null, - "refs": { - "SyncBlocker$ResolvedReason": "

The resolved reason for a specific sync blocker.

", - "UpdateSyncBlockerInput$ResolvedReason": "

The reason for resolving the sync blocker.

" - } - }, - "ResourceAlreadyExistsException": { - "base": "

Unable to create resource. Resource already exists.

", - "refs": { - } - }, - "ResourceName": { - "base": null, - "refs": { - "CreateSyncConfigurationInput$ResourceName": "

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.

", - "DeleteSyncConfigurationInput$ResourceName": "

The name of the Amazon Web Services resource associated with the sync configuration to be deleted.

", - "GetResourceSyncStatusInput$ResourceName": "

The name of the Amazon Web Services resource for the sync status with the Git repository.

", - "GetSyncBlockerSummaryInput$ResourceName": "

The name of the Amazon Web Services resource currently blocked from automatically being synced from a Git repository.

", - "GetSyncConfigurationInput$ResourceName": "

The name of the Amazon Web Services resource for the sync configuration for which you want to retrieve information.

", - "SyncBlockerSummary$ResourceName": "

The resource name for sync blocker summary.

", - "SyncBlockerSummary$ParentResourceName": "

The parent resource name for a sync blocker summary.

", - "SyncConfiguration$ResourceName": "

The name of the connection resource associated with a specific sync configuration.

", - "UpdateSyncBlockerInput$ResourceName": "

The name of the resource for the sync blocker to be updated.

", - "UpdateSyncBlockerOutput$ResourceName": "

The resource name for the sync blocker.

", - "UpdateSyncBlockerOutput$ParentResourceName": "

The parent resource name for the sync blocker.

", - "UpdateSyncConfigurationInput$ResourceName": "

The name of the Amazon Web Services resource for the sync configuration to be updated.

" + "ListConnectionsInput$ProviderTypeFilter": "

Filters the list of connections to those associated with a specified provider, such as Bitbucket.

" } }, "ResourceNotFoundException": { @@ -645,55 +253,11 @@ "refs": { } }, - "ResourceSyncAttempt": { - "base": "

Information about a resource sync attempt.

", - "refs": { - "GetResourceSyncStatusOutput$LatestSuccessfulSync": "

The latest successful sync for the sync status with the Git repository.

", - "GetResourceSyncStatusOutput$LatestSync": "

The latest sync for the sync status with the Git repository, whether successful or not.

" - } - }, - "ResourceSyncEvent": { - "base": "

Information about a resource sync event for the resource associated with a sync configuration.

", - "refs": { - "ResourceSyncEventList$member": null - } - }, - "ResourceSyncEventList": { - "base": null, - "refs": { - "ResourceSyncAttempt$Events": "

The events related to a resource sync attempt.

" - } - }, - "ResourceSyncStatus": { - "base": null, - "refs": { - "ResourceSyncAttempt$Status": "

The status for a resource sync attempt. The follow are valid statuses:

" - } - }, "ResourceUnavailableException": { "base": "

Resource not found. Verify the ARN for the host resource and try again.

", "refs": { } }, - "RetryLatestCommitFailedException": { - "base": "

Retrying the latest commit failed. Try again later.

", - "refs": { - } - }, - "Revision": { - "base": "

Information about the revision for a specific sync event, such as the branch, owner ID, and name of the repository.

", - "refs": { - "GetResourceSyncStatusOutput$DesiredState": "

The desired state of the Amazon Web Services resource for the sync status with the Git repository.

", - "ResourceSyncAttempt$InitialRevision": "

The current state of the resource as defined in the resource's config-file in the linked repository.

", - "ResourceSyncAttempt$TargetRevision": "

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.

" - } - }, - "SHA": { - "base": null, - "refs": { - "Revision$Sha": "

The SHA, such as the commit ID, for a specific revision.

" - } - }, "SecurityGroupId": { "base": null, "refs": { @@ -706,16 +270,6 @@ "VpcConfiguration$SecurityGroupIds": "

The ID of the security group or security groups associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

" } }, - "SharpNextToken": { - "base": null, - "refs": { - "ListRepositoryLinksInput$NextToken": "

An enumeration token that, when provided in a request, returns the next batch of the results.

", - "ListRepositoryLinksOutput$NextToken": "

An enumeration token that allows the operation to batch the results of the operation.

", - "ListRepositorySyncDefinitionsOutput$NextToken": "

An enumeration token that, when provided in a request, returns the next batch of the results.

", - "ListSyncConfigurationsInput$NextToken": "

An enumeration token that allows the operation to batch the results of the operation.

", - "ListSyncConfigurationsOutput$NextToken": "

An enumeration token that allows the operation to batch the next results of the operation.

" - } - }, "SubnetId": { "base": null, "refs": { @@ -728,84 +282,6 @@ "VpcConfiguration$SubnetIds": "

The ID of the subnet or subnets associated with the Amazon VPC connected to the infrastructure where your provider type is installed.

" } }, - "SyncBlocker": { - "base": "

Information about a blocker for a sync event.

", - "refs": { - "LatestSyncBlockerList$member": null, - "UpdateSyncBlockerOutput$SyncBlocker": "

Information about the sync blocker to be updated.

" - } - }, - "SyncBlockerContext": { - "base": "

The context for a specific sync blocker.

", - "refs": { - "SyncBlockerContextList$member": null - } - }, - "SyncBlockerContextKey": { - "base": null, - "refs": { - "SyncBlockerContext$Key": "

The key provided for a context key-value pair for a specific sync blocker.

" - } - }, - "SyncBlockerContextList": { - "base": null, - "refs": { - "SyncBlocker$Contexts": "

The contexts for a specific sync blocker.

" - } - }, - "SyncBlockerContextValue": { - "base": null, - "refs": { - "SyncBlockerContext$Value": "

The value provided for a context key-value pair for a specific sync blocker.

" - } - }, - "SyncBlockerDoesNotExistException": { - "base": "

Unable to continue. The sync blocker does not exist.

", - "refs": { - } - }, - "SyncBlockerSummary": { - "base": "

A summary for sync blockers.

", - "refs": { - "GetSyncBlockerSummaryOutput$SyncBlockerSummary": "

The list of sync blockers for a specified resource.

" - } - }, - "SyncConfiguration": { - "base": "

Information, such as repository, branch, provider, and resource names for a specific sync configuration.

", - "refs": { - "CreateSyncConfigurationOutput$SyncConfiguration": "

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.

", - "GetSyncConfigurationOutput$SyncConfiguration": "

The details about the sync configuration for which you want to retrieve information.

", - "SyncConfigurationList$member": null, - "UpdateSyncConfigurationOutput$SyncConfiguration": "

The information returned for the sync configuration to be updated.

" - } - }, - "SyncConfigurationList": { - "base": null, - "refs": { - "ListSyncConfigurationsOutput$SyncConfigurations": "

The list of repository sync definitions returned by the request.

" - } - }, - "SyncConfigurationStillExistsException": { - "base": "

Unable to continue. The sync blocker still exists.

", - "refs": { - } - }, - "SyncConfigurationType": { - "base": null, - "refs": { - "CreateSyncConfigurationInput$SyncType": "

The type of sync configuration.

", - "DeleteSyncConfigurationInput$SyncType": "

The type of sync configuration to be deleted.

", - "GetRepositorySyncStatusInput$SyncType": "

The sync type of the requested sync status.

", - "GetResourceSyncStatusInput$SyncType": "

The sync type for the sync status with the Git repository.

", - "GetSyncBlockerSummaryInput$SyncType": "

The sync type for the sync blocker summary.

", - "GetSyncConfigurationInput$SyncType": "

The sync type for the sync configuration for which you want to retrieve information.

", - "ListRepositorySyncDefinitionsInput$SyncType": "

The sync type of the repository link for the the sync definition for which you want to retrieve information.

", - "ListSyncConfigurationsInput$SyncType": "

The sync type for the requested list of sync configurations.

", - "SyncConfiguration$SyncType": "

The type of sync for a specific sync configuration.

", - "UpdateSyncBlockerInput$SyncType": "

The sync type of the sync blocker to be updated.

", - "UpdateSyncConfigurationInput$SyncType": "

The sync type for the sync configuration to be updated.

" - } - }, "Tag": { "base": "

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.

", "refs": { @@ -830,9 +306,8 @@ "refs": { "CreateConnectionInput$Tags": "

The key-value pair to use when tagging the resource.

", "CreateConnectionOutput$Tags": "

Specifies the tags applied to the resource.

", - "CreateHostInput$Tags": "

Tags for the host to be created.

", - "CreateHostOutput$Tags": "

Tags for the created host.

", - "CreateRepositoryLinkInput$Tags": "

The tags for the repository to be associated with the repository link.

", + "CreateHostInput$Tags": null, + "CreateHostOutput$Tags": null, "ListTagsForResourceOutput$Tags": "

A list of tag key and value pairs associated with the specified resource.

", "TagResourceInput$Tags": "

The tags you want to modify or add to the resource.

" } @@ -853,52 +328,17 @@ "Tag$Value": "

The tag's value.

" } }, - "Target": { - "base": null, - "refs": { - "RepositorySyncDefinition$Target": "

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.

", - "ResourceSyncAttempt$Target": "

The name of the Amazon Web Services resource that is attempted to be synchronized.

" - } - }, - "ThrottlingException": { - "base": "

The request was denied due to request throttling.

", - "refs": { - } - }, - "Timestamp": { - "base": null, - "refs": { - "RepositorySyncAttempt$StartedAt": "

The start time of a specific sync attempt.

", - "RepositorySyncEvent$Time": "

The time that a repository sync event occurred.

", - "ResourceSyncAttempt$StartedAt": "

The start time for a resource sync attempt.

", - "ResourceSyncEvent$Time": "

The time that a resource sync event occurred.

", - "SyncBlocker$CreatedAt": "

The creation time for a specific sync blocker.

", - "SyncBlocker$ResolvedAt": "

The time that a specific sync blocker was resolved.

" - } - }, "TlsCertificate": { "base": null, "refs": { "VpcConfiguration$TlsCertificate": "

The value of the Transport Layer Security (TLS) certificate associated with the infrastructure where your provider type is installed.

" } }, - "Type": { - "base": null, - "refs": { - "RepositorySyncEvent$Type": "

The event type for a repository sync event.

", - "ResourceSyncEvent$Type": "

The type of resource sync event.

" - } - }, "UnsupportedOperationException": { "base": "

The operation is not supported. Check the connection status and try again.

", "refs": { } }, - "UnsupportedProviderTypeException": { - "base": "

The specified provider type is not supported for connections.

", - "refs": { - } - }, "UntagResourceInput": { "base": null, "refs": { @@ -919,41 +359,6 @@ "refs": { } }, - "UpdateOutOfSyncException": { - "base": "

The update is out of sync. Try syncing again.

", - "refs": { - } - }, - "UpdateRepositoryLinkInput": { - "base": null, - "refs": { - } - }, - "UpdateRepositoryLinkOutput": { - "base": null, - "refs": { - } - }, - "UpdateSyncBlockerInput": { - "base": null, - "refs": { - } - }, - "UpdateSyncBlockerOutput": { - "base": null, - "refs": { - } - }, - "UpdateSyncConfigurationInput": { - "base": null, - "refs": { - } - }, - "UpdateSyncConfigurationOutput": { - "base": null, - "refs": { - } - }, "Url": { "base": null, "refs": { diff --git a/models/apis/codestar-connections/2019-12-01/paginators-1.json b/models/apis/codestar-connections/2019-12-01/paginators-1.json index 11686affe88..1b3698862ca 100644 --- a/models/apis/codestar-connections/2019-12-01/paginators-1.json +++ b/models/apis/codestar-connections/2019-12-01/paginators-1.json @@ -9,16 +9,6 @@ "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" - }, - "ListRepositoryLinks": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults" - }, - "ListSyncConfigurations": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults" } } } diff --git a/models/apis/docdb/2014-10-31/api-2.json b/models/apis/docdb/2014-10-31/api-2.json index acafca79394..1fbe84ddd62 100644 --- a/models/apis/docdb/2014-10-31/api-2.json +++ b/models/apis/docdb/2014-10-31/api-2.json @@ -1149,7 +1149,8 @@ "PreSignedUrl":{"shape":"String"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "DeletionProtection":{"shape":"BooleanOptional"}, - "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"} + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "StorageType":{"shape":"String"} } }, "CreateDBClusterParameterGroupMessage":{ @@ -1321,7 +1322,8 @@ "CloneGroupId":{"shape":"String"}, "ClusterCreateTime":{"shape":"TStamp"}, "EnabledCloudwatchLogsExports":{"shape":"LogTypeList"}, - "DeletionProtection":{"shape":"Boolean"} + "DeletionProtection":{"shape":"Boolean"}, + "StorageType":{"shape":"String"} }, "wrapper":true }, @@ -1470,7 +1472,8 @@ "StorageEncrypted":{"shape":"Boolean"}, "KmsKeyId":{"shape":"String"}, "DBClusterSnapshotArn":{"shape":"String"}, - "SourceDBClusterSnapshotArn":{"shape":"String"} + "SourceDBClusterSnapshotArn":{"shape":"String"}, + "StorageType":{"shape":"String"} }, "wrapper":true }, @@ -2527,7 +2530,8 @@ "CloudwatchLogsExportConfiguration":{"shape":"CloudwatchLogsExportConfiguration"}, "EngineVersion":{"shape":"String"}, "AllowMajorVersionUpgrade":{"shape":"Boolean"}, - "DeletionProtection":{"shape":"BooleanOptional"} + "DeletionProtection":{"shape":"BooleanOptional"}, + "StorageType":{"shape":"String"} } }, "ModifyDBClusterParameterGroupMessage":{ @@ -2648,7 +2652,8 @@ "DBInstanceClass":{"shape":"String"}, "LicenseModel":{"shape":"String"}, "AvailabilityZones":{"shape":"AvailabilityZoneList"}, - "Vpc":{"shape":"Boolean"} + "Vpc":{"shape":"Boolean"}, + "StorageType":{"shape":"String"} }, "wrapper":true }, @@ -2864,7 +2869,8 @@ "KmsKeyId":{"shape":"String"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "DeletionProtection":{"shape":"BooleanOptional"}, - "DBClusterParameterGroupName":{"shape":"String"} + "DBClusterParameterGroupName":{"shape":"String"}, + "StorageType":{"shape":"String"} } }, "RestoreDBClusterFromSnapshotResult":{ @@ -2891,7 +2897,8 @@ "Tags":{"shape":"TagList"}, "KmsKeyId":{"shape":"String"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, - "DeletionProtection":{"shape":"BooleanOptional"} + "DeletionProtection":{"shape":"BooleanOptional"}, + "StorageType":{"shape":"String"} } }, "RestoreDBClusterToPointInTimeResult":{ diff --git a/models/apis/docdb/2014-10-31/docs-2.json b/models/apis/docdb/2014-10-31/docs-2.json index b5a0ecab47e..054788258c3 100644 --- a/models/apis/docdb/2014-10-31/docs-2.json +++ b/models/apis/docdb/2014-10-31/docs-2.json @@ -1428,6 +1428,7 @@ "CreateDBClusterMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

Format: ddd:hh24:mi-ddd:hh24:mi

The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", "CreateDBClusterMessage$KmsKeyId": "

The KMS key identifier for an encrypted cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are creating a cluster using the same Amazon Web Services account that owns the KMS encryption key that is used to encrypt the new cluster, you can use the KMS key alias instead of the ARN for the KMS encryption key.

If an encryption key is not specified in KmsKeyId:

KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Regions.

", "CreateDBClusterMessage$PreSignedUrl": "

Not currently supported.

", + "CreateDBClusterMessage$StorageType": "

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.

", "CreateDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the cluster parameter group.

Constraints:

This value is stored as a lowercase string.

", "CreateDBClusterParameterGroupMessage$DBParameterGroupFamily": "

The cluster parameter group family name.

", "CreateDBClusterParameterGroupMessage$Description": "

The description for the cluster parameter group.

", @@ -1468,6 +1469,7 @@ "DBCluster$DbClusterResourceId": "

The Amazon Web Services Region-unique, immutable identifier for the cluster. This identifier is found in CloudTrail log entries whenever the KMS key for the cluster is accessed.

", "DBCluster$DBClusterArn": "

The Amazon Resource Name (ARN) for the cluster.

", "DBCluster$CloneGroupId": "

Identifies the clone group to which the DB cluster is associated.

", + "DBCluster$StorageType": "

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

", "DBClusterMember$DBInstanceIdentifier": "

Specifies the instance identifier for this member of the cluster.

", "DBClusterMember$DBClusterParameterGroupStatus": "

Specifies the status of the cluster parameter group for this member of the DB cluster.

", "DBClusterMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", @@ -1491,6 +1493,7 @@ "DBClusterSnapshot$KmsKeyId": "

If StorageEncrypted is true, the KMS key identifier for the encrypted cluster snapshot.

", "DBClusterSnapshot$DBClusterSnapshotArn": "

The Amazon Resource Name (ARN) for the cluster snapshot.

", "DBClusterSnapshot$SourceDBClusterSnapshotArn": "

If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster snapshot; otherwise, a null value.

", + "DBClusterSnapshot$StorageType": "

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

", "DBClusterSnapshotAttribute$AttributeName": "

The name of the manual cluster snapshot attribute.

The attribute named restore refers to the list of Amazon Web Services accounts that have permission to copy or restore the manual cluster snapshot.

", "DBClusterSnapshotAttributesResult$DBClusterSnapshotIdentifier": "

The identifier of the cluster snapshot that the attributes apply to.

", "DBClusterSnapshotMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", @@ -1607,6 +1610,7 @@ "ModifyDBClusterMessage$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter.

The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region.

Constraints:

", "ModifyDBClusterMessage$PreferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).

Format: ddd:hh24:mi-ddd:hh24:mi

The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", "ModifyDBClusterMessage$EngineVersion": "

The version number of the database engine to which you want to upgrade. Changing this parameter results in an outage. The change is applied during the next maintenance window unless ApplyImmediately is enabled.

To list all of the available engine versions for Amazon DocumentDB use the following command:

aws docdb describe-db-engine-versions --engine docdb --query \"DBEngineVersions[].EngineVersion\"

", + "ModifyDBClusterMessage$StorageType": "

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

", "ModifyDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the cluster parameter group to modify.

", "ModifyDBClusterSnapshotAttributeMessage$DBClusterSnapshotIdentifier": "

The identifier for the cluster snapshot to modify the attributes for.

", "ModifyDBClusterSnapshotAttributeMessage$AttributeName": "

The name of the cluster snapshot attribute to modify.

To manage authorization for other Amazon Web Services accounts to copy or restore a manual cluster snapshot, set this value to restore.

", @@ -1625,6 +1629,7 @@ "OrderableDBInstanceOption$EngineVersion": "

The engine version of an instance.

", "OrderableDBInstanceOption$DBInstanceClass": "

The instance class for an instance.

", "OrderableDBInstanceOption$LicenseModel": "

The license model for an instance.

", + "OrderableDBInstanceOption$StorageType": "

The storage type to associate with the DB cluster

", "OrderableDBInstanceOptionsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "Parameter$ParameterName": "

Specifies the name of the parameter.

", "Parameter$ParameterValue": "

Specifies the value of the parameter.

", @@ -1662,11 +1667,13 @@ "RestoreDBClusterFromSnapshotMessage$DBSubnetGroupName": "

The name of the subnet group to use for the new cluster.

Constraints: If provided, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

", "RestoreDBClusterFromSnapshotMessage$KmsKeyId": "

The KMS key identifier to use when restoring an encrypted cluster from a DB snapshot or cluster snapshot.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a cluster with the same Amazon Web Services account that owns the KMS encryption key used to encrypt the new cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

If you do not specify a value for the KmsKeyId parameter, then the following occurs:

", "RestoreDBClusterFromSnapshotMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to associate with this DB cluster.

Type: String.       Required: No.

If this argument is omitted, the default DB cluster parameter group is used. If supplied, must match the name of an existing default DB cluster parameter group. The string must consist of from 1 to 255 letters, numbers or hyphens. Its first character must be a letter, and it cannot end with a hyphen or contain two consecutive hyphens.

", + "RestoreDBClusterFromSnapshotMessage$StorageType": "

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

", "RestoreDBClusterToPointInTimeMessage$DBClusterIdentifier": "

The name of the new cluster to be created.

Constraints:

", "RestoreDBClusterToPointInTimeMessage$RestoreType": "

The type of restore to be performed. You can specify one of the following values:

Constraints: You can't specify copy-on-write if the engine version of the source DB cluster is earlier than 1.11.

If you don't specify a RestoreType value, then the new DB cluster is restored as a full copy of the source DB cluster.

", "RestoreDBClusterToPointInTimeMessage$SourceDBClusterIdentifier": "

The identifier of the source cluster from which to restore.

Constraints:

", "RestoreDBClusterToPointInTimeMessage$DBSubnetGroupName": "

The subnet group name to use for the new cluster.

Constraints: If provided, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

", "RestoreDBClusterToPointInTimeMessage$KmsKeyId": "

The KMS key identifier to use when restoring an encrypted cluster from an encrypted cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a cluster with the same Amazon Web Services account that owns the KMS encryption key used to encrypt the new cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

You can restore to a new cluster and encrypt the new cluster with an KMS key that is different from the KMS key used to encrypt the source cluster. The new DB cluster is encrypted with the KMS key identified by the KmsKeyId parameter.

If you do not specify a value for the KmsKeyId parameter, then the following occurs:

If DBClusterIdentifier refers to a cluster that is not encrypted, then the restore request is rejected.

", + "RestoreDBClusterToPointInTimeMessage$StorageType": "

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

", "SourceIdsList$member": null, "StartDBClusterMessage$DBClusterIdentifier": "

The identifier of the cluster to restart. Example: docdb-2019-05-28-15-24-52

", "StopDBClusterMessage$DBClusterIdentifier": "

The identifier of the cluster to stop. Example: docdb-2019-05-28-15-24-52

", diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 14252b6753e..8e542313991 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -12346,6 +12346,7 @@ "type":"structure", "members":{ "DnsSupport":{"shape":"DnsSupportValue"}, + "SecurityGroupReferencingSupport":{"shape":"SecurityGroupReferencingSupportValue"}, "Ipv6Support":{"shape":"Ipv6SupportValue"}, "ApplianceModeSupport":{"shape":"ApplianceModeSupportValue"} } @@ -33168,6 +33169,7 @@ "RemoveTransitGatewayCidrBlocks":{"shape":"TransitGatewayCidrBlockStringList"}, "VpnEcmpSupport":{"shape":"VpnEcmpSupportValue"}, "DnsSupport":{"shape":"DnsSupportValue"}, + "SecurityGroupReferencingSupport":{"shape":"SecurityGroupReferencingSupportValue"}, "AutoAcceptSharedAttachments":{"shape":"AutoAcceptSharedAttachmentsValue"}, "DefaultRouteTableAssociation":{"shape":"DefaultRouteTableAssociationValue"}, "AssociationDefaultRouteTableId":{"shape":"TransitGatewayRouteTableId"}, @@ -33233,6 +33235,7 @@ "type":"structure", "members":{ "DnsSupport":{"shape":"DnsSupportValue"}, + "SecurityGroupReferencingSupport":{"shape":"SecurityGroupReferencingSupportValue"}, "Ipv6Support":{"shape":"Ipv6SupportValue"}, "ApplianceModeSupport":{"shape":"ApplianceModeSupportValue"} } @@ -40058,6 +40061,10 @@ "VpcPeeringConnectionId":{ "shape":"String", "locationName":"vpcPeeringConnectionId" + }, + "TransitGatewayId":{ + "shape":"String", + "locationName":"transitGatewayId" } } }, @@ -40068,6 +40075,13 @@ "locationName":"item" } }, + "SecurityGroupReferencingSupportValue":{ + "type":"string", + "enum":[ + "enable", + "disable" + ] + }, "SecurityGroupRule":{ "type":"structure", "members":{ @@ -43496,6 +43510,10 @@ "shape":"DnsSupportValue", "locationName":"dnsSupport" }, + "SecurityGroupReferencingSupport":{ + "shape":"SecurityGroupReferencingSupportValue", + "locationName":"securityGroupReferencingSupport" + }, "MulticastSupport":{ "shape":"MulticastSupportValue", "locationName":"multicastSupport" @@ -43815,6 +43833,7 @@ "DefaultRouteTablePropagation":{"shape":"DefaultRouteTablePropagationValue"}, "VpnEcmpSupport":{"shape":"VpnEcmpSupportValue"}, "DnsSupport":{"shape":"DnsSupportValue"}, + "SecurityGroupReferencingSupport":{"shape":"SecurityGroupReferencingSupportValue"}, "MulticastSupport":{"shape":"MulticastSupportValue"}, "TransitGatewayCidrBlocks":{"shape":"TransitGatewayCidrBlockStringList"} } @@ -44200,6 +44219,10 @@ "shape":"DnsSupportValue", "locationName":"dnsSupport" }, + "SecurityGroupReferencingSupport":{ + "shape":"SecurityGroupReferencingSupportValue", + "locationName":"securityGroupReferencingSupport" + }, "Ipv6Support":{ "shape":"Ipv6SupportValue", "locationName":"ipv6Support" diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 6ac1e14b51a..01cf3791a2b 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -40,7 +40,7 @@ "AttachVolume": "

Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

After you attach an EBS volume, you must make it available. For more information, see Make an EBS volume available for use.

If a volume has an Amazon Web Services Marketplace product code:

For more information, see Attach an Amazon EBS volume to an instance in the Amazon Elastic Compute Cloud User Guide.

", "AttachVpnGateway": "

Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.

For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

", "AuthorizeClientVpnIngress": "

Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in Amazon Web Services or on-premises networks.

", - "AuthorizeSecurityGroupEgress": "

Adds the specified outbound (egress) rules to a security group for use with a VPC.

An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances that are associated with the specified source security groups. When specifying an outbound rule for your security group in a VPC, the IpPermissions must include a destination for the traffic.

You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 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.

", + "AuthorizeSecurityGroupEgress": "

Adds the specified outbound (egress) rules to a security group for use with a VPC.

An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances that are associated with the specified source security groups. When specifying an outbound rule for your security group in a VPC, the IpPermissions must include a destination for the traffic.

You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 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.

If you want to reference a security group across VPCs attached to a transit gateway using the security group referencing feature, note that you can only reference security groups for ingress rules. You cannot reference a security group for egress rules.

", "AuthorizeSecurityGroupIngress": "

Adds the specified inbound (ingress) rules to a security group.

An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 CIDR address range, or from the instances that are associated with the specified destination security groups. When specifying an inbound rule for your security group in a VPC, the IpPermissions must include a source for the traffic.

You specify a protocol for each rule (for example, TCP). For TCP and UDP, you must also specify the destination port or port range. For ICMP/ICMPv6, you must also specify the ICMP/ICMPv6 type and code. You can use -1 to mean all types or all codes.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

For more information about VPC security group quotas, see Amazon VPC quotas.

", "BundleInstance": "

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:\\) is bundled. Data on other instance store volumes is not preserved.

This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

", "CancelBundleTask": "

Cancels a bundling operation for an instance store-backed Windows instance.

", @@ -318,7 +318,7 @@ "DescribeRouteTables": "

Describes one or more of your route tables.

Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

For more information, see Route tables in the Amazon VPC User Guide.

", "DescribeScheduledInstanceAvailability": "

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

", "DescribeScheduledInstances": "

Describes the specified Scheduled Instances or all your Scheduled Instances.

", - "DescribeSecurityGroupReferences": "

Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request.

", + "DescribeSecurityGroupReferences": "

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.

", "DescribeSecurityGroupRules": "

Describes one or more of your security group rules.

", "DescribeSecurityGroups": "

Describes the specified security groups or all of your security groups.

", "DescribeSnapshotAttribute": "

Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.

", @@ -330,7 +330,7 @@ "DescribeSpotFleetRequests": "

Describes your Spot Fleet requests.

Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

", "DescribeSpotInstanceRequests": "

Describes the specified Spot Instance requests.

You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of items returned. This paginates the output, which makes the list more manageable and returns the items faster. If the list of items exceeds your MaxResults value, then that number of items is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining items.

Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

", "DescribeSpotPriceHistory": "

Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide for Linux Instances.

When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.

", - "DescribeStaleSecurityGroups": "

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.

", + "DescribeStaleSecurityGroups": "

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, peered VPC, or in separate VPCs attached to a transit gateway (with security group referencing support 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.

", "DescribeStoreImageTasks": "

Describes the progress of the AMI store tasks. You can describe the store tasks for specified AMIs. If you don't specify the AMIs, you get a paginated list of store tasks from the last 31 days.

For each AMI task, the response indicates if the task is InProgress, Completed, or Failed. For tasks InProgress, the response shows the estimated progress as a percentage.

Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 days can be viewed.

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

", "DescribeSubnets": "

Describes one or more of your subnets.

For more information, see Subnets in the Amazon VPC User Guide.

", "DescribeTags": "

Describes the specified tags for your EC2 resources.

For more information about tags, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.

", @@ -18348,6 +18348,17 @@ "DescribeSecurityGroupReferencesResult$SecurityGroupReferenceSet": "

Information about the VPCs with the referencing security groups.

" } }, + "SecurityGroupReferencingSupportValue": { + "base": null, + "refs": { + "CreateTransitGatewayVpcAttachmentRequestOptions$SecurityGroupReferencingSupport": "

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 in the Amazon Web Services Transit Gateway Guide.

", + "ModifyTransitGatewayOptions$SecurityGroupReferencingSupport": "

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 in the Amazon Web Services Transit Gateway Guide.

", + "ModifyTransitGatewayVpcAttachmentRequestOptions$SecurityGroupReferencingSupport": "

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 in the Amazon Web Services Transit Gateway Guide.

", + "TransitGatewayOptions$SecurityGroupReferencingSupport": "

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 in the Amazon Web Services Transit Gateway Guide.

", + "TransitGatewayRequestOptions$SecurityGroupReferencingSupport": "

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 in the Amazon Web Services Transit Gateway Guide.

", + "TransitGatewayVpcAttachmentOptions$SecurityGroupReferencingSupport": "

For important information about this feature, see Create a transit gateway attachment to a VPC in the Amazon Web Services Transit Gateway Guide.

" + } + }, "SecurityGroupRule": { "base": "

Describes a security group rule.

", "refs": { @@ -20553,7 +20564,7 @@ "ReferencedSecurityGroup$PeeringStatus": "

The status of a VPC peering connection, if applicable.

", "ReferencedSecurityGroup$UserId": "

The Amazon Web Services account ID.

", "ReferencedSecurityGroup$VpcId": "

The ID of the VPC.

", - "ReferencedSecurityGroup$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "ReferencedSecurityGroup$VpcPeeringConnectionId": "

The ID of the VPC peering connection (if applicable).

", "Region$Endpoint": "

The Region service endpoint.

", "Region$RegionName": "

The name of the Region.

", "Region$OptInStatus": "

The Region opt-in status. The possible values are opt-in-not-required, opted-in, and not-opted-in.

", @@ -20727,7 +20738,8 @@ "SecurityGroupIdentifier$GroupName": "

The name of the security group.

", "SecurityGroupReference$GroupId": "

The ID of your security group.

", "SecurityGroupReference$ReferencingVpcId": "

The ID of the VPC with the referencing security group.

", - "SecurityGroupReference$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "SecurityGroupReference$VpcPeeringConnectionId": "

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 in the VPC Peering Guide.

", + "SecurityGroupReference$TransitGatewayId": "

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 in the Amazon Web Services Transit Gateway Guide.

", "SecurityGroupRule$GroupOwnerId": "

The ID of the Amazon Web Services account that owns the security group.

", "SecurityGroupRule$IpProtocol": "

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

Use -1 to specify all protocols.

", "SecurityGroupRule$CidrIpv4": "

The IPv4 CIDR range.

", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index a60d91e555f..9c4cb58e22a 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -515,7 +515,19 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, - "ca-central-1" : { }, + "ca-central-1" : { + "variants" : [ { + "hostname" : "api.detective-fips.ca-central-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, + "ca-central-1-fips" : { + "credentialScope" : { + "region" : "ca-central-1" + }, + "deprecated" : true, + "hostname" : "api.detective-fips.ca-central-1.amazonaws.com" + }, "eu-central-1" : { }, "eu-north-1" : { }, "eu-south-1" : { }, @@ -6680,6 +6692,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-3" : { }, "ca-central-1" : { "variants" : [ { "hostname" : "emr-containers-fips.ca-central-1.amazonaws.com", @@ -6727,6 +6740,7 @@ "deprecated" : true, "hostname" : "emr-containers-fips.us-west-2.amazonaws.com" }, + "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { @@ -10542,6 +10556,7 @@ "eu-central-2" : { }, "eu-north-1" : { }, "eu-south-1" : { }, + "eu-south-2" : { }, "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, @@ -10701,6 +10716,7 @@ "eu-central-2" : { }, "eu-north-1" : { }, "eu-south-1" : { }, + "eu-south-2" : { }, "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, @@ -10951,36 +10967,6 @@ "us-east-1" : { } } }, - "macie" : { - "endpoints" : { - "fips-us-east-1" : { - "credentialScope" : { - "region" : "us-east-1" - }, - "deprecated" : true, - "hostname" : "macie-fips.us-east-1.amazonaws.com" - }, - "fips-us-west-2" : { - "credentialScope" : { - "region" : "us-west-2" - }, - "deprecated" : true, - "hostname" : "macie-fips.us-west-2.amazonaws.com" - }, - "us-east-1" : { - "variants" : [ { - "hostname" : "macie-fips.us-east-1.amazonaws.com", - "tags" : [ "fips" ] - } ] - }, - "us-west-2" : { - "variants" : [ { - "hostname" : "macie-fips.us-west-2.amazonaws.com", - "tags" : [ "fips" ] - } ] - } - } - }, "macie2" : { "endpoints" : { "af-south-1" : { }, @@ -12394,8 +12380,11 @@ "osis" : { "endpoints" : { "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ca-central-1" : { }, "eu-central-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, diff --git a/service/codestarconnections/api.go b/service/codestarconnections/api.go index c26f48c13b1..fc50ce46ea6 100644 --- a/service/codestarconnections/api.go +++ b/service/codestarconnections/api.go @@ -4,7 +4,6 @@ package codestarconnections import ( "fmt" - "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -185,207 +184,6 @@ func (c *CodeStarConnections) CreateHostWithContext(ctx aws.Context, input *Crea return out, req.Send() } -const opCreateRepositoryLink = "CreateRepositoryLink" - -// CreateRepositoryLinkRequest generates a "aws/request.Request" representing the -// client's request for the CreateRepositoryLink operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateRepositoryLink for more information on using the CreateRepositoryLink -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the CreateRepositoryLinkRequest method. -// req, resp := client.CreateRepositoryLinkRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateRepositoryLink -func (c *CodeStarConnections) CreateRepositoryLinkRequest(input *CreateRepositoryLinkInput) (req *request.Request, output *CreateRepositoryLinkOutput) { - op := &request.Operation{ - Name: opCreateRepositoryLink, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateRepositoryLinkInput{} - } - - output = &CreateRepositoryLinkOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateRepositoryLink API operation for AWS CodeStar connections. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation CreateRepositoryLink for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConcurrentModificationException -// 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. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - LimitExceededException -// Exceeded the maximum limit for connections. -// -// - ResourceAlreadyExistsException -// Unable to create resource. Resource already exists. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateRepositoryLink -func (c *CodeStarConnections) CreateRepositoryLink(input *CreateRepositoryLinkInput) (*CreateRepositoryLinkOutput, error) { - req, out := c.CreateRepositoryLinkRequest(input) - return out, req.Send() -} - -// CreateRepositoryLinkWithContext is the same as CreateRepositoryLink with the addition of -// the ability to pass a context and additional request options. -// -// See CreateRepositoryLink for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) CreateRepositoryLinkWithContext(ctx aws.Context, input *CreateRepositoryLinkInput, opts ...request.Option) (*CreateRepositoryLinkOutput, error) { - req, out := c.CreateRepositoryLinkRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateSyncConfiguration = "CreateSyncConfiguration" - -// CreateSyncConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the CreateSyncConfiguration operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateSyncConfiguration for more information on using the CreateSyncConfiguration -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the CreateSyncConfigurationRequest method. -// req, resp := client.CreateSyncConfigurationRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateSyncConfiguration -func (c *CodeStarConnections) CreateSyncConfigurationRequest(input *CreateSyncConfigurationInput) (req *request.Request, output *CreateSyncConfigurationOutput) { - op := &request.Operation{ - Name: opCreateSyncConfiguration, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateSyncConfigurationInput{} - } - - output = &CreateSyncConfigurationOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateSyncConfiguration API operation for AWS CodeStar connections. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation CreateSyncConfiguration for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConcurrentModificationException -// 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. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - LimitExceededException -// Exceeded the maximum limit for connections. -// -// - ResourceAlreadyExistsException -// Unable to create resource. Resource already exists. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateSyncConfiguration -func (c *CodeStarConnections) CreateSyncConfiguration(input *CreateSyncConfigurationInput) (*CreateSyncConfigurationOutput, error) { - req, out := c.CreateSyncConfigurationRequest(input) - return out, req.Send() -} - -// CreateSyncConfigurationWithContext is the same as CreateSyncConfiguration with the addition of -// the ability to pass a context and additional request options. -// -// See CreateSyncConfiguration for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) CreateSyncConfigurationWithContext(ctx aws.Context, input *CreateSyncConfigurationInput, opts ...request.Option) (*CreateSyncConfigurationOutput, error) { - req, out := c.CreateSyncConfigurationRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - const opDeleteConnection = "DeleteConnection" // DeleteConnectionRequest generates a "aws/request.Request" representing the @@ -552,5008 +350,773 @@ func (c *CodeStarConnections) DeleteHostWithContext(ctx aws.Context, input *Dele return out, req.Send() } -const opDeleteRepositoryLink = "DeleteRepositoryLink" +const opGetConnection = "GetConnection" -// DeleteRepositoryLinkRequest generates a "aws/request.Request" representing the -// client's request for the DeleteRepositoryLink operation. The "output" return +// GetConnectionRequest generates a "aws/request.Request" representing the +// client's request for the GetConnection operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteRepositoryLink for more information on using the DeleteRepositoryLink +// See GetConnection for more information on using the GetConnection // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the DeleteRepositoryLinkRequest method. -// req, resp := client.DeleteRepositoryLinkRequest(params) +// // Example sending a request using the GetConnectionRequest method. +// req, resp := client.GetConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteRepositoryLink -func (c *CodeStarConnections) DeleteRepositoryLinkRequest(input *DeleteRepositoryLinkInput) (req *request.Request, output *DeleteRepositoryLinkOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection +func (c *CodeStarConnections) GetConnectionRequest(input *GetConnectionInput) (req *request.Request, output *GetConnectionOutput) { op := &request.Operation{ - Name: opDeleteRepositoryLink, + Name: opGetConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteRepositoryLinkInput{} + input = &GetConnectionInput{} } - output = &DeleteRepositoryLinkOutput{} + output = &GetConnectionOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteRepositoryLink API operation for AWS CodeStar connections. +// GetConnection API operation for AWS CodeStar connections. // -// Deletes the association between your connection and a specified external -// Git repository. +// Returns the connection ARN and details such as status, owner, and provider +// type. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation DeleteRepositoryLink for usage and error information. +// API operation GetConnection for usage and error information. // // Returned Error Types: // -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConcurrentModificationException -// 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. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - SyncConfigurationStillExistsException -// Unable to continue. The sync blocker still exists. -// // - ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // -// - ThrottlingException -// The request was denied due to request throttling. -// -// - UnsupportedProviderTypeException -// The specified provider type is not supported for connections. +// - ResourceUnavailableException +// Resource not found. Verify the ARN for the host resource and try again. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteRepositoryLink -func (c *CodeStarConnections) DeleteRepositoryLink(input *DeleteRepositoryLinkInput) (*DeleteRepositoryLinkOutput, error) { - req, out := c.DeleteRepositoryLinkRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection +func (c *CodeStarConnections) GetConnection(input *GetConnectionInput) (*GetConnectionOutput, error) { + req, out := c.GetConnectionRequest(input) return out, req.Send() } -// DeleteRepositoryLinkWithContext is the same as DeleteRepositoryLink with the addition of +// GetConnectionWithContext is the same as GetConnection with the addition of // the ability to pass a context and additional request options. // -// See DeleteRepositoryLink for details on how to use this API operation. +// See GetConnection for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeStarConnections) DeleteRepositoryLinkWithContext(ctx aws.Context, input *DeleteRepositoryLinkInput, opts ...request.Option) (*DeleteRepositoryLinkOutput, error) { - req, out := c.DeleteRepositoryLinkRequest(input) +func (c *CodeStarConnections) GetConnectionWithContext(ctx aws.Context, input *GetConnectionInput, opts ...request.Option) (*GetConnectionOutput, error) { + req, out := c.GetConnectionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteSyncConfiguration = "DeleteSyncConfiguration" +const opGetHost = "GetHost" -// DeleteSyncConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSyncConfiguration operation. The "output" return +// GetHostRequest generates a "aws/request.Request" representing the +// client's request for the GetHost operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteSyncConfiguration for more information on using the DeleteSyncConfiguration +// See GetHost for more information on using the GetHost // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the DeleteSyncConfigurationRequest method. -// req, resp := client.DeleteSyncConfigurationRequest(params) +// // Example sending a request using the GetHostRequest method. +// req, resp := client.GetHostRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteSyncConfiguration -func (c *CodeStarConnections) DeleteSyncConfigurationRequest(input *DeleteSyncConfigurationInput) (req *request.Request, output *DeleteSyncConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost +func (c *CodeStarConnections) GetHostRequest(input *GetHostInput) (req *request.Request, output *GetHostOutput) { op := &request.Operation{ - Name: opDeleteSyncConfiguration, + Name: opGetHost, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteSyncConfigurationInput{} + input = &GetHostInput{} } - output = &DeleteSyncConfigurationOutput{} + output = &GetHostOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteSyncConfiguration API operation for AWS CodeStar connections. +// GetHost API operation for AWS CodeStar connections. // -// Deletes the sync configuration for a specified repository and connection. +// Returns the host ARN and details such as status, provider type, endpoint, +// and, if applicable, the VPC configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation DeleteSyncConfiguration for usage and error information. +// API operation GetHost for usage and error information. // // Returned Error Types: // -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConcurrentModificationException -// 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. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - LimitExceededException -// Exceeded the maximum limit for connections. +// - ResourceNotFoundException +// Resource not found. Verify the connection resource ARN and try again. // -// - ThrottlingException -// The request was denied due to request throttling. +// - ResourceUnavailableException +// Resource not found. Verify the ARN for the host resource and try again. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteSyncConfiguration -func (c *CodeStarConnections) DeleteSyncConfiguration(input *DeleteSyncConfigurationInput) (*DeleteSyncConfigurationOutput, error) { - req, out := c.DeleteSyncConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost +func (c *CodeStarConnections) GetHost(input *GetHostInput) (*GetHostOutput, error) { + req, out := c.GetHostRequest(input) return out, req.Send() } -// DeleteSyncConfigurationWithContext is the same as DeleteSyncConfiguration with the addition of +// GetHostWithContext is the same as GetHost with the addition of // the ability to pass a context and additional request options. // -// See DeleteSyncConfiguration for details on how to use this API operation. +// See GetHost for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeStarConnections) DeleteSyncConfigurationWithContext(ctx aws.Context, input *DeleteSyncConfigurationInput, opts ...request.Option) (*DeleteSyncConfigurationOutput, error) { - req, out := c.DeleteSyncConfigurationRequest(input) +func (c *CodeStarConnections) GetHostWithContext(ctx aws.Context, input *GetHostInput, opts ...request.Option) (*GetHostOutput, error) { + req, out := c.GetHostRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetConnection = "GetConnection" +const opListConnections = "ListConnections" -// GetConnectionRequest generates a "aws/request.Request" representing the -// client's request for the GetConnection operation. The "output" return +// ListConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the ListConnections operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetConnection for more information on using the GetConnection +// See ListConnections for more information on using the ListConnections // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetConnectionRequest method. -// req, resp := client.GetConnectionRequest(params) +// // Example sending a request using the ListConnectionsRequest method. +// req, resp := client.ListConnectionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection -func (c *CodeStarConnections) GetConnectionRequest(input *GetConnectionInput) (req *request.Request, output *GetConnectionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections +func (c *CodeStarConnections) ListConnectionsRequest(input *ListConnectionsInput) (req *request.Request, output *ListConnectionsOutput) { op := &request.Operation{ - Name: opGetConnection, + Name: opListConnections, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &GetConnectionInput{} + input = &ListConnectionsInput{} } - output = &GetConnectionOutput{} + output = &ListConnectionsOutput{} req = c.newRequest(op, input, output) return } -// GetConnection API operation for AWS CodeStar connections. +// ListConnections API operation for AWS CodeStar connections. // -// Returns the connection ARN and details such as status, owner, and provider -// type. +// Lists the connections associated with your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation GetConnection for usage and error information. +// API operation ListConnections for usage and error information. // // Returned Error Types: -// // - ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // -// - ResourceUnavailableException -// Resource not found. Verify the ARN for the host resource and try again. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection -func (c *CodeStarConnections) GetConnection(input *GetConnectionInput) (*GetConnectionOutput, error) { - req, out := c.GetConnectionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections +func (c *CodeStarConnections) ListConnections(input *ListConnectionsInput) (*ListConnectionsOutput, error) { + req, out := c.ListConnectionsRequest(input) return out, req.Send() } -// GetConnectionWithContext is the same as GetConnection with the addition of +// ListConnectionsWithContext is the same as ListConnections with the addition of // the ability to pass a context and additional request options. // -// See GetConnection for details on how to use this API operation. +// See ListConnections for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeStarConnections) GetConnectionWithContext(ctx aws.Context, input *GetConnectionInput, opts ...request.Option) (*GetConnectionOutput, error) { - req, out := c.GetConnectionRequest(input) +func (c *CodeStarConnections) ListConnectionsWithContext(ctx aws.Context, input *ListConnectionsInput, opts ...request.Option) (*ListConnectionsOutput, error) { + req, out := c.ListConnectionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetHost = "GetHost" - -// GetHostRequest generates a "aws/request.Request" representing the -// client's request for the GetHost operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// ListConnectionsPages iterates over the pages of a ListConnections operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. +// See ListConnections method for more information on how to use this operation. // -// See GetHost for more information on using the GetHost +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListConnections operation. +// pageNum := 0 +// err := client.ListConnectionsPages(params, +// func(page *codestarconnections.ListConnectionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *CodeStarConnections) ListConnectionsPages(input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool) error { + return c.ListConnectionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListConnectionsPagesWithContext same as ListConnectionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeStarConnections) ListConnectionsPagesWithContext(ctx aws.Context, input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListConnectionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListConnectionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListConnectionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListHosts = "ListHosts" + +// ListHostsRequest generates a "aws/request.Request" representing the +// client's request for the ListHosts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListHosts for more information on using the ListHosts // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetHostRequest method. -// req, resp := client.GetHostRequest(params) +// // Example sending a request using the ListHostsRequest method. +// req, resp := client.ListHostsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost -func (c *CodeStarConnections) GetHostRequest(input *GetHostInput) (req *request.Request, output *GetHostOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts +func (c *CodeStarConnections) ListHostsRequest(input *ListHostsInput) (req *request.Request, output *ListHostsOutput) { op := &request.Operation{ - Name: opGetHost, + Name: opListHosts, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &GetHostInput{} + input = &ListHostsInput{} } - output = &GetHostOutput{} + output = &ListHostsOutput{} req = c.newRequest(op, input, output) return } -// GetHost API operation for AWS CodeStar connections. +// ListHosts API operation for AWS CodeStar connections. // -// Returns the host ARN and details such as status, provider type, endpoint, -// and, if applicable, the VPC configuration. +// Lists the hosts associated with your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation GetHost for usage and error information. -// -// Returned Error Types: -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ResourceUnavailableException -// Resource not found. Verify the ARN for the host resource and try again. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost -func (c *CodeStarConnections) GetHost(input *GetHostInput) (*GetHostOutput, error) { - req, out := c.GetHostRequest(input) +// API operation ListHosts for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts +func (c *CodeStarConnections) ListHosts(input *ListHostsInput) (*ListHostsOutput, error) { + req, out := c.ListHostsRequest(input) return out, req.Send() } -// GetHostWithContext is the same as GetHost with the addition of +// ListHostsWithContext is the same as ListHosts with the addition of // the ability to pass a context and additional request options. // -// See GetHost for details on how to use this API operation. +// See ListHosts for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeStarConnections) GetHostWithContext(ctx aws.Context, input *GetHostInput, opts ...request.Option) (*GetHostOutput, error) { - req, out := c.GetHostRequest(input) +func (c *CodeStarConnections) ListHostsWithContext(ctx aws.Context, input *ListHostsInput, opts ...request.Option) (*ListHostsOutput, error) { + req, out := c.ListHostsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetRepositoryLink = "GetRepositoryLink" +// ListHostsPages iterates over the pages of a ListHosts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListHosts method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListHosts operation. +// pageNum := 0 +// err := client.ListHostsPages(params, +// func(page *codestarconnections.ListHostsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *CodeStarConnections) ListHostsPages(input *ListHostsInput, fn func(*ListHostsOutput, bool) bool) error { + return c.ListHostsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListHostsPagesWithContext same as ListHostsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeStarConnections) ListHostsPagesWithContext(ctx aws.Context, input *ListHostsInput, fn func(*ListHostsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListHostsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListHostsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListHostsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" -// GetRepositoryLinkRequest generates a "aws/request.Request" representing the -// client's request for the GetRepositoryLink operation. The "output" return +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetRepositoryLink for more information on using the GetRepositoryLink +// See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetRepositoryLinkRequest method. -// req, resp := client.GetRepositoryLinkRequest(params) +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetRepositoryLink -func (c *CodeStarConnections) GetRepositoryLinkRequest(input *GetRepositoryLinkInput) (req *request.Request, output *GetRepositoryLinkOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource +func (c *CodeStarConnections) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opGetRepositoryLink, + Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetRepositoryLinkInput{} + input = &ListTagsForResourceInput{} } - output = &GetRepositoryLinkOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// GetRepositoryLink API operation for AWS CodeStar connections. +// ListTagsForResource API operation for AWS CodeStar connections. // -// Returns details about a repository link. A repository link allows Git sync -// to monitor and sync changes from files in a specified Git repository. +// Gets the set of key-value pairs (metadata) that are used to manage the resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation GetRepositoryLink for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConcurrentModificationException -// 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. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// // - ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetRepositoryLink -func (c *CodeStarConnections) GetRepositoryLink(input *GetRepositoryLinkInput) (*GetRepositoryLinkOutput, error) { - req, out := c.GetRepositoryLinkRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource +func (c *CodeStarConnections) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// GetRepositoryLinkWithContext is the same as GetRepositoryLink with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See GetRepositoryLink for details on how to use this API operation. +// See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeStarConnections) GetRepositoryLinkWithContext(ctx aws.Context, input *GetRepositoryLinkInput, opts ...request.Option) (*GetRepositoryLinkOutput, error) { - req, out := c.GetRepositoryLinkRequest(input) +func (c *CodeStarConnections) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetRepositorySyncStatus = "GetRepositorySyncStatus" +const opTagResource = "TagResource" -// GetRepositorySyncStatusRequest generates a "aws/request.Request" representing the -// client's request for the GetRepositorySyncStatus operation. The "output" return +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetRepositorySyncStatus for more information on using the GetRepositorySyncStatus +// See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetRepositorySyncStatusRequest method. -// req, resp := client.GetRepositorySyncStatusRequest(params) +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetRepositorySyncStatus -func (c *CodeStarConnections) GetRepositorySyncStatusRequest(input *GetRepositorySyncStatusInput) (req *request.Request, output *GetRepositorySyncStatusOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource +func (c *CodeStarConnections) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ - Name: opGetRepositorySyncStatus, + Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetRepositorySyncStatusInput{} + input = &TagResourceInput{} } - output = &GetRepositorySyncStatusOutput{} + output = &TagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetRepositorySyncStatus API operation for AWS CodeStar connections. +// TagResource API operation for AWS CodeStar connections. // -// Returns details about the sync status for a repository. A repository sync -// uses Git sync to push and pull changes from your remote repository. +// Adds to or modifies the tags of the given resource. Tags are metadata that +// can be used to manage a resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation GetRepositorySyncStatus for usage and error information. +// API operation TagResource for usage and error information. // // Returned Error Types: // -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// // - ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // -// - ThrottlingException -// The request was denied due to request throttling. +// - LimitExceededException +// Exceeded the maximum limit for connections. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetRepositorySyncStatus -func (c *CodeStarConnections) GetRepositorySyncStatus(input *GetRepositorySyncStatusInput) (*GetRepositorySyncStatusOutput, error) { - req, out := c.GetRepositorySyncStatusRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource +func (c *CodeStarConnections) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) return out, req.Send() } -// GetRepositorySyncStatusWithContext is the same as GetRepositorySyncStatus with the addition of +// TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // -// See GetRepositorySyncStatus for details on how to use this API operation. +// See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeStarConnections) GetRepositorySyncStatusWithContext(ctx aws.Context, input *GetRepositorySyncStatusInput, opts ...request.Option) (*GetRepositorySyncStatusOutput, error) { - req, out := c.GetRepositorySyncStatusRequest(input) +func (c *CodeStarConnections) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetResourceSyncStatus = "GetResourceSyncStatus" +const opUntagResource = "UntagResource" -// GetResourceSyncStatusRequest generates a "aws/request.Request" representing the -// client's request for the GetResourceSyncStatus operation. The "output" return +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetResourceSyncStatus for more information on using the GetResourceSyncStatus +// See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetResourceSyncStatusRequest method. -// req, resp := client.GetResourceSyncStatusRequest(params) +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetResourceSyncStatus -func (c *CodeStarConnections) GetResourceSyncStatusRequest(input *GetResourceSyncStatusInput) (req *request.Request, output *GetResourceSyncStatusOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource +func (c *CodeStarConnections) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ - Name: opGetResourceSyncStatus, + Name: opUntagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetResourceSyncStatusInput{} + input = &UntagResourceInput{} } - output = &GetResourceSyncStatusOutput{} + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetResourceSyncStatus API operation for AWS CodeStar connections. +// UntagResource API operation for AWS CodeStar connections. // -// Returns the status of the sync with the Git repository for a specific Amazon -// Web Services resource. +// Removes tags from an Amazon Web Services resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation GetResourceSyncStatus for usage and error information. +// API operation UntagResource for usage and error information. // // Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// // - ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetResourceSyncStatus -func (c *CodeStarConnections) GetResourceSyncStatus(input *GetResourceSyncStatusInput) (*GetResourceSyncStatusOutput, error) { - req, out := c.GetResourceSyncStatusRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource +func (c *CodeStarConnections) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) return out, req.Send() } -// GetResourceSyncStatusWithContext is the same as GetResourceSyncStatus with the addition of +// UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // -// See GetResourceSyncStatus for details on how to use this API operation. +// See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeStarConnections) GetResourceSyncStatusWithContext(ctx aws.Context, input *GetResourceSyncStatusInput, opts ...request.Option) (*GetResourceSyncStatusOutput, error) { - req, out := c.GetResourceSyncStatusRequest(input) +func (c *CodeStarConnections) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetSyncBlockerSummary = "GetSyncBlockerSummary" +const opUpdateHost = "UpdateHost" -// GetSyncBlockerSummaryRequest generates a "aws/request.Request" representing the -// client's request for the GetSyncBlockerSummary operation. The "output" return +// UpdateHostRequest generates a "aws/request.Request" representing the +// client's request for the UpdateHost operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetSyncBlockerSummary for more information on using the GetSyncBlockerSummary +// See UpdateHost for more information on using the UpdateHost // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the GetSyncBlockerSummaryRequest method. -// req, resp := client.GetSyncBlockerSummaryRequest(params) +// // Example sending a request using the UpdateHostRequest method. +// req, resp := client.UpdateHostRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetSyncBlockerSummary -func (c *CodeStarConnections) GetSyncBlockerSummaryRequest(input *GetSyncBlockerSummaryInput) (req *request.Request, output *GetSyncBlockerSummaryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHost +func (c *CodeStarConnections) UpdateHostRequest(input *UpdateHostInput) (req *request.Request, output *UpdateHostOutput) { op := &request.Operation{ - Name: opGetSyncBlockerSummary, + Name: opUpdateHost, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetSyncBlockerSummaryInput{} + input = &UpdateHostInput{} } - output = &GetSyncBlockerSummaryOutput{} + output = &UpdateHostOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetSyncBlockerSummary API operation for AWS CodeStar connections. +// UpdateHost API operation for AWS CodeStar connections. // -// Returns a list of the most recent sync blockers. +// Updates a specified host with the provided configurations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS CodeStar connections's -// API operation GetSyncBlockerSummary for usage and error information. +// API operation UpdateHost for usage and error information. // // Returned Error Types: // -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetSyncBlockerSummary -func (c *CodeStarConnections) GetSyncBlockerSummary(input *GetSyncBlockerSummaryInput) (*GetSyncBlockerSummaryOutput, error) { - req, out := c.GetSyncBlockerSummaryRequest(input) - return out, req.Send() -} - -// GetSyncBlockerSummaryWithContext is the same as GetSyncBlockerSummary with the addition of -// the ability to pass a context and additional request options. -// -// See GetSyncBlockerSummary for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) GetSyncBlockerSummaryWithContext(ctx aws.Context, input *GetSyncBlockerSummaryInput, opts ...request.Option) (*GetSyncBlockerSummaryOutput, error) { - req, out := c.GetSyncBlockerSummaryRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetSyncConfiguration = "GetSyncConfiguration" - -// GetSyncConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetSyncConfiguration operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetSyncConfiguration for more information on using the GetSyncConfiguration -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetSyncConfigurationRequest method. -// req, resp := client.GetSyncConfigurationRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetSyncConfiguration -func (c *CodeStarConnections) GetSyncConfigurationRequest(input *GetSyncConfigurationInput) (req *request.Request, output *GetSyncConfigurationOutput) { - op := &request.Operation{ - Name: opGetSyncConfiguration, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetSyncConfigurationInput{} - } - - output = &GetSyncConfigurationOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetSyncConfiguration API operation for AWS CodeStar connections. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation GetSyncConfiguration for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetSyncConfiguration -func (c *CodeStarConnections) GetSyncConfiguration(input *GetSyncConfigurationInput) (*GetSyncConfigurationOutput, error) { - req, out := c.GetSyncConfigurationRequest(input) - return out, req.Send() -} - -// GetSyncConfigurationWithContext is the same as GetSyncConfiguration with the addition of -// the ability to pass a context and additional request options. -// -// See GetSyncConfiguration for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) GetSyncConfigurationWithContext(ctx aws.Context, input *GetSyncConfigurationInput, opts ...request.Option) (*GetSyncConfigurationOutput, error) { - req, out := c.GetSyncConfigurationRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opListConnections = "ListConnections" - -// ListConnectionsRequest generates a "aws/request.Request" representing the -// client's request for the ListConnections operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListConnections for more information on using the ListConnections -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListConnectionsRequest method. -// req, resp := client.ListConnectionsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections -func (c *CodeStarConnections) ListConnectionsRequest(input *ListConnectionsInput) (req *request.Request, output *ListConnectionsOutput) { - op := &request.Operation{ - Name: opListConnections, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListConnectionsInput{} - } - - output = &ListConnectionsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListConnections API operation for AWS CodeStar connections. -// -// Lists the connections associated with your account. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation ListConnections for usage and error information. +// - ConflictException +// Two conflicting operations have been made on the same resource. // -// Returned Error Types: // - ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections -func (c *CodeStarConnections) ListConnections(input *ListConnectionsInput) (*ListConnectionsOutput, error) { - req, out := c.ListConnectionsRequest(input) - return out, req.Send() -} - -// ListConnectionsWithContext is the same as ListConnections with the addition of -// the ability to pass a context and additional request options. -// -// See ListConnections for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListConnectionsWithContext(ctx aws.Context, input *ListConnectionsInput, opts ...request.Option) (*ListConnectionsOutput, error) { - req, out := c.ListConnectionsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListConnectionsPages iterates over the pages of a ListConnections operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListConnections method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListConnections operation. -// pageNum := 0 -// err := client.ListConnectionsPages(params, -// func(page *codestarconnections.ListConnectionsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *CodeStarConnections) ListConnectionsPages(input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool) error { - return c.ListConnectionsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListConnectionsPagesWithContext same as ListConnectionsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListConnectionsPagesWithContext(ctx aws.Context, input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListConnectionsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListConnectionsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListConnectionsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListHosts = "ListHosts" - -// ListHostsRequest generates a "aws/request.Request" representing the -// client's request for the ListHosts operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListHosts for more information on using the ListHosts -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListHostsRequest method. -// req, resp := client.ListHostsRequest(params) +// - ResourceUnavailableException +// Resource not found. Verify the ARN for the host resource and try again. // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } +// - UnsupportedOperationException +// The operation is not supported. Check the connection status and try again. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts -func (c *CodeStarConnections) ListHostsRequest(input *ListHostsInput) (req *request.Request, output *ListHostsOutput) { - op := &request.Operation{ - Name: opListHosts, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListHostsInput{} - } - - output = &ListHostsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListHosts API operation for AWS CodeStar connections. -// -// Lists the hosts associated with your account. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation ListHosts for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts -func (c *CodeStarConnections) ListHosts(input *ListHostsInput) (*ListHostsOutput, error) { - req, out := c.ListHostsRequest(input) - return out, req.Send() -} - -// ListHostsWithContext is the same as ListHosts with the addition of -// the ability to pass a context and additional request options. -// -// See ListHosts for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListHostsWithContext(ctx aws.Context, input *ListHostsInput, opts ...request.Option) (*ListHostsOutput, error) { - req, out := c.ListHostsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListHostsPages iterates over the pages of a ListHosts operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListHosts method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListHosts operation. -// pageNum := 0 -// err := client.ListHostsPages(params, -// func(page *codestarconnections.ListHostsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *CodeStarConnections) ListHostsPages(input *ListHostsInput, fn func(*ListHostsOutput, bool) bool) error { - return c.ListHostsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListHostsPagesWithContext same as ListHostsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListHostsPagesWithContext(ctx aws.Context, input *ListHostsInput, fn func(*ListHostsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListHostsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListHostsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListHostsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListRepositoryLinks = "ListRepositoryLinks" - -// ListRepositoryLinksRequest generates a "aws/request.Request" representing the -// client's request for the ListRepositoryLinks operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListRepositoryLinks for more information on using the ListRepositoryLinks -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListRepositoryLinksRequest method. -// req, resp := client.ListRepositoryLinksRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListRepositoryLinks -func (c *CodeStarConnections) ListRepositoryLinksRequest(input *ListRepositoryLinksInput) (req *request.Request, output *ListRepositoryLinksOutput) { - op := &request.Operation{ - Name: opListRepositoryLinks, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListRepositoryLinksInput{} - } - - output = &ListRepositoryLinksOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListRepositoryLinks API operation for AWS CodeStar connections. -// -// Lists the repository links created for connections in your account. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation ListRepositoryLinks for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConcurrentModificationException -// 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. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListRepositoryLinks -func (c *CodeStarConnections) ListRepositoryLinks(input *ListRepositoryLinksInput) (*ListRepositoryLinksOutput, error) { - req, out := c.ListRepositoryLinksRequest(input) - return out, req.Send() -} - -// ListRepositoryLinksWithContext is the same as ListRepositoryLinks with the addition of -// the ability to pass a context and additional request options. -// -// See ListRepositoryLinks for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListRepositoryLinksWithContext(ctx aws.Context, input *ListRepositoryLinksInput, opts ...request.Option) (*ListRepositoryLinksOutput, error) { - req, out := c.ListRepositoryLinksRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListRepositoryLinksPages iterates over the pages of a ListRepositoryLinks operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListRepositoryLinks method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListRepositoryLinks operation. -// pageNum := 0 -// err := client.ListRepositoryLinksPages(params, -// func(page *codestarconnections.ListRepositoryLinksOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *CodeStarConnections) ListRepositoryLinksPages(input *ListRepositoryLinksInput, fn func(*ListRepositoryLinksOutput, bool) bool) error { - return c.ListRepositoryLinksPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListRepositoryLinksPagesWithContext same as ListRepositoryLinksPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListRepositoryLinksPagesWithContext(ctx aws.Context, input *ListRepositoryLinksInput, fn func(*ListRepositoryLinksOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListRepositoryLinksInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListRepositoryLinksRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListRepositoryLinksOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListRepositorySyncDefinitions = "ListRepositorySyncDefinitions" - -// ListRepositorySyncDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListRepositorySyncDefinitions operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListRepositorySyncDefinitions for more information on using the ListRepositorySyncDefinitions -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListRepositorySyncDefinitionsRequest method. -// req, resp := client.ListRepositorySyncDefinitionsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListRepositorySyncDefinitions -func (c *CodeStarConnections) ListRepositorySyncDefinitionsRequest(input *ListRepositorySyncDefinitionsInput) (req *request.Request, output *ListRepositorySyncDefinitionsOutput) { - op := &request.Operation{ - Name: opListRepositorySyncDefinitions, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListRepositorySyncDefinitionsInput{} - } - - output = &ListRepositorySyncDefinitionsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListRepositorySyncDefinitions API operation for AWS CodeStar connections. -// -// Lists the repository sync definitions for repository links in your account. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation ListRepositorySyncDefinitions for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListRepositorySyncDefinitions -func (c *CodeStarConnections) ListRepositorySyncDefinitions(input *ListRepositorySyncDefinitionsInput) (*ListRepositorySyncDefinitionsOutput, error) { - req, out := c.ListRepositorySyncDefinitionsRequest(input) - return out, req.Send() -} - -// ListRepositorySyncDefinitionsWithContext is the same as ListRepositorySyncDefinitions with the addition of -// the ability to pass a context and additional request options. -// -// See ListRepositorySyncDefinitions for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListRepositorySyncDefinitionsWithContext(ctx aws.Context, input *ListRepositorySyncDefinitionsInput, opts ...request.Option) (*ListRepositorySyncDefinitionsOutput, error) { - req, out := c.ListRepositorySyncDefinitionsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opListSyncConfigurations = "ListSyncConfigurations" - -// ListSyncConfigurationsRequest generates a "aws/request.Request" representing the -// client's request for the ListSyncConfigurations operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListSyncConfigurations for more information on using the ListSyncConfigurations -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListSyncConfigurationsRequest method. -// req, resp := client.ListSyncConfigurationsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListSyncConfigurations -func (c *CodeStarConnections) ListSyncConfigurationsRequest(input *ListSyncConfigurationsInput) (req *request.Request, output *ListSyncConfigurationsOutput) { - op := &request.Operation{ - Name: opListSyncConfigurations, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListSyncConfigurationsInput{} - } - - output = &ListSyncConfigurationsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListSyncConfigurations API operation for AWS CodeStar connections. -// -// Returns a list of sync configurations for a specified repository. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation ListSyncConfigurations for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListSyncConfigurations -func (c *CodeStarConnections) ListSyncConfigurations(input *ListSyncConfigurationsInput) (*ListSyncConfigurationsOutput, error) { - req, out := c.ListSyncConfigurationsRequest(input) - return out, req.Send() -} - -// ListSyncConfigurationsWithContext is the same as ListSyncConfigurations with the addition of -// the ability to pass a context and additional request options. -// -// See ListSyncConfigurations for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListSyncConfigurationsWithContext(ctx aws.Context, input *ListSyncConfigurationsInput, opts ...request.Option) (*ListSyncConfigurationsOutput, error) { - req, out := c.ListSyncConfigurationsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListSyncConfigurationsPages iterates over the pages of a ListSyncConfigurations operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListSyncConfigurations method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListSyncConfigurations operation. -// pageNum := 0 -// err := client.ListSyncConfigurationsPages(params, -// func(page *codestarconnections.ListSyncConfigurationsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *CodeStarConnections) ListSyncConfigurationsPages(input *ListSyncConfigurationsInput, fn func(*ListSyncConfigurationsOutput, bool) bool) error { - return c.ListSyncConfigurationsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListSyncConfigurationsPagesWithContext same as ListSyncConfigurationsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListSyncConfigurationsPagesWithContext(ctx aws.Context, input *ListSyncConfigurationsInput, fn func(*ListSyncConfigurationsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListSyncConfigurationsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListSyncConfigurationsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListSyncConfigurationsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListTagsForResource for more information on using the ListTagsForResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource -func (c *CodeStarConnections) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { - op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsForResourceInput{} - } - - output = &ListTagsForResourceOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListTagsForResource API operation for AWS CodeStar connections. -// -// Gets the set of key-value pairs (metadata) that are used to manage the resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation ListTagsForResource for usage and error information. -// -// Returned Error Types: -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource -func (c *CodeStarConnections) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - return out, req.Send() -} - -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of -// the ability to pass a context and additional request options. -// -// See ListTagsForResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opTagResource = "TagResource" - -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See TagResource for more information on using the TagResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource -func (c *CodeStarConnections) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { - op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &TagResourceInput{} - } - - output = &TagResourceOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// TagResource API operation for AWS CodeStar connections. -// -// Adds to or modifies the tags of the given resource. Tags are metadata that -// can be used to manage a resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation TagResource for usage and error information. -// -// Returned Error Types: -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - LimitExceededException -// Exceeded the maximum limit for connections. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource -func (c *CodeStarConnections) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) - return out, req.Send() -} - -// TagResourceWithContext is the same as TagResource with the addition of -// the ability to pass a context and additional request options. -// -// See TagResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUntagResource = "UntagResource" - -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UntagResource for more information on using the UntagResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource -func (c *CodeStarConnections) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { - op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UntagResourceInput{} - } - - output = &UntagResourceOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// UntagResource API operation for AWS CodeStar connections. -// -// Removes tags from an Amazon Web Services resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation UntagResource for usage and error information. -// -// Returned Error Types: -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource -func (c *CodeStarConnections) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) - return out, req.Send() -} - -// UntagResourceWithContext is the same as UntagResource with the addition of -// the ability to pass a context and additional request options. -// -// See UntagResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateHost = "UpdateHost" - -// UpdateHostRequest generates a "aws/request.Request" representing the -// client's request for the UpdateHost operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateHost for more information on using the UpdateHost -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateHostRequest method. -// req, resp := client.UpdateHostRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHost -func (c *CodeStarConnections) UpdateHostRequest(input *UpdateHostInput) (req *request.Request, output *UpdateHostOutput) { - op := &request.Operation{ - Name: opUpdateHost, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateHostInput{} - } - - output = &UpdateHostOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// UpdateHost API operation for AWS CodeStar connections. -// -// Updates a specified host with the provided configurations. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation UpdateHost for usage and error information. -// -// Returned Error Types: -// -// - ConflictException -// Two conflicting operations have been made on the same resource. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ResourceUnavailableException -// Resource not found. Verify the ARN for the host resource and try again. -// -// - UnsupportedOperationException -// The operation is not supported. Check the connection status and try again. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHost -func (c *CodeStarConnections) UpdateHost(input *UpdateHostInput) (*UpdateHostOutput, error) { - req, out := c.UpdateHostRequest(input) - return out, req.Send() -} - -// UpdateHostWithContext is the same as UpdateHost with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateHost for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) UpdateHostWithContext(ctx aws.Context, input *UpdateHostInput, opts ...request.Option) (*UpdateHostOutput, error) { - req, out := c.UpdateHostRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateRepositoryLink = "UpdateRepositoryLink" - -// UpdateRepositoryLinkRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRepositoryLink operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateRepositoryLink for more information on using the UpdateRepositoryLink -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateRepositoryLinkRequest method. -// req, resp := client.UpdateRepositoryLinkRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateRepositoryLink -func (c *CodeStarConnections) UpdateRepositoryLinkRequest(input *UpdateRepositoryLinkInput) (req *request.Request, output *UpdateRepositoryLinkOutput) { - op := &request.Operation{ - Name: opUpdateRepositoryLink, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateRepositoryLinkInput{} - } - - output = &UpdateRepositoryLinkOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateRepositoryLink API operation for AWS CodeStar connections. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation UpdateRepositoryLink for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConditionalCheckFailedException -// The conditional check failed. Try again later. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// - UpdateOutOfSyncException -// The update is out of sync. Try syncing again. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateRepositoryLink -func (c *CodeStarConnections) UpdateRepositoryLink(input *UpdateRepositoryLinkInput) (*UpdateRepositoryLinkOutput, error) { - req, out := c.UpdateRepositoryLinkRequest(input) - return out, req.Send() -} - -// UpdateRepositoryLinkWithContext is the same as UpdateRepositoryLink with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateRepositoryLink for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) UpdateRepositoryLinkWithContext(ctx aws.Context, input *UpdateRepositoryLinkInput, opts ...request.Option) (*UpdateRepositoryLinkOutput, error) { - req, out := c.UpdateRepositoryLinkRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateSyncBlocker = "UpdateSyncBlocker" - -// UpdateSyncBlockerRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSyncBlocker operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateSyncBlocker for more information on using the UpdateSyncBlocker -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateSyncBlockerRequest method. -// req, resp := client.UpdateSyncBlockerRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateSyncBlocker -func (c *CodeStarConnections) UpdateSyncBlockerRequest(input *UpdateSyncBlockerInput) (req *request.Request, output *UpdateSyncBlockerOutput) { - op := &request.Operation{ - Name: opUpdateSyncBlocker, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateSyncBlockerInput{} - } - - output = &UpdateSyncBlockerOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateSyncBlocker API operation for AWS CodeStar connections. -// -// Allows you to update the status of a sync blocker, resolving the blocker -// and allowing syncing to continue. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation UpdateSyncBlocker for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - RetryLatestCommitFailedException -// Retrying the latest commit failed. Try again later. -// -// - SyncBlockerDoesNotExistException -// Unable to continue. The sync blocker does not exist. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateSyncBlocker -func (c *CodeStarConnections) UpdateSyncBlocker(input *UpdateSyncBlockerInput) (*UpdateSyncBlockerOutput, error) { - req, out := c.UpdateSyncBlockerRequest(input) - return out, req.Send() -} - -// UpdateSyncBlockerWithContext is the same as UpdateSyncBlocker with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateSyncBlocker for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) UpdateSyncBlockerWithContext(ctx aws.Context, input *UpdateSyncBlockerInput, opts ...request.Option) (*UpdateSyncBlockerOutput, error) { - req, out := c.UpdateSyncBlockerRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateSyncConfiguration = "UpdateSyncConfiguration" - -// UpdateSyncConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSyncConfiguration operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateSyncConfiguration for more information on using the UpdateSyncConfiguration -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateSyncConfigurationRequest method. -// req, resp := client.UpdateSyncConfigurationRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateSyncConfiguration -func (c *CodeStarConnections) UpdateSyncConfigurationRequest(input *UpdateSyncConfigurationInput) (req *request.Request, output *UpdateSyncConfigurationOutput) { - op := &request.Operation{ - Name: opUpdateSyncConfiguration, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateSyncConfigurationInput{} - } - - output = &UpdateSyncConfigurationOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateSyncConfiguration API operation for AWS CodeStar connections. -// -// Updates the sync configuration for your connection and a specified external -// Git repository. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS CodeStar connections's -// API operation UpdateSyncConfiguration for usage and error information. -// -// Returned Error Types: -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// -// - ConcurrentModificationException -// 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. -// -// - InternalServerException -// Received an internal server exception. Try again later. -// -// - InvalidInputException -// The input is not valid. Verify that the action is typed correctly. -// -// - ResourceNotFoundException -// Resource not found. Verify the connection resource ARN and try again. -// -// - ThrottlingException -// The request was denied due to request throttling. -// -// - UpdateOutOfSyncException -// The update is out of sync. Try syncing again. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateSyncConfiguration -func (c *CodeStarConnections) UpdateSyncConfiguration(input *UpdateSyncConfigurationInput) (*UpdateSyncConfigurationOutput, error) { - req, out := c.UpdateSyncConfigurationRequest(input) - return out, req.Send() -} - -// UpdateSyncConfigurationWithContext is the same as UpdateSyncConfiguration with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateSyncConfiguration for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CodeStarConnections) UpdateSyncConfigurationWithContext(ctx aws.Context, input *UpdateSyncConfigurationInput, opts ...request.Option) (*UpdateSyncConfigurationOutput, error) { - req, out := c.UpdateSyncConfigurationRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// You do not have sufficient access to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { - return s.String() -} - -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" -} - -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} - -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Exception thrown as a result of concurrent modification to an application. -// For example, two individuals attempting to edit the same application at the -// same time. -type ConcurrentModificationException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConcurrentModificationException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConcurrentModificationException) GoString() string { - return s.String() -} - -func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { - return &ConcurrentModificationException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConcurrentModificationException) Code() string { - return "ConcurrentModificationException" -} - -// Message returns the exception's message. -func (s *ConcurrentModificationException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConcurrentModificationException) OrigErr() error { - return nil -} - -func (s *ConcurrentModificationException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConcurrentModificationException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConcurrentModificationException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The conditional check failed. Try again later. -type ConditionalCheckFailedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConditionalCheckFailedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConditionalCheckFailedException) GoString() string { - return s.String() -} - -func newErrorConditionalCheckFailedException(v protocol.ResponseMetadata) error { - return &ConditionalCheckFailedException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConditionalCheckFailedException) Code() string { - return "ConditionalCheckFailedException" -} - -// Message returns the exception's message. -func (s *ConditionalCheckFailedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConditionalCheckFailedException) OrigErr() error { - return nil -} - -func (s *ConditionalCheckFailedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConditionalCheckFailedException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConditionalCheckFailedException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Two conflicting operations have been made on the same resource. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) GoString() string { - return s.String() -} - -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} - -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil -} - -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} - -// A resource that is used to connect third-party source providers with services -// like CodePipeline. -// -// Note: A connection created through CloudFormation, the CLI, or the SDK is -// in `PENDING` status by default. You can make its status `AVAILABLE` by updating -// the connection in the console. -type Connection struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the connection. The ARN is used as the - // connection reference when the connection is shared between Amazon Web Services. - // - // The ARN is never reused if the connection is deleted. - ConnectionArn *string `type:"string"` - - // The name of the connection. Connection names must be unique in an Amazon - // Web Services account. - ConnectionName *string `min:"1" type:"string"` - - // The current status of the connection. - ConnectionStatus *string `type:"string" enum:"ConnectionStatus"` - - // The Amazon Resource Name (ARN) of the host associated with the connection. - HostArn *string `type:"string"` - - // The identifier of the external provider where your third-party code repository - // is configured. For Bitbucket, this is the account ID of the owner of the - // Bitbucket repository. - OwnerAccountId *string `min:"12" type:"string"` - - // The name of the external provider where your third-party code repository - // is configured. - ProviderType *string `type:"string" enum:"ProviderType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Connection) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Connection) GoString() string { - return s.String() -} - -// SetConnectionArn sets the ConnectionArn field's value. -func (s *Connection) SetConnectionArn(v string) *Connection { - s.ConnectionArn = &v - return s -} - -// SetConnectionName sets the ConnectionName field's value. -func (s *Connection) SetConnectionName(v string) *Connection { - s.ConnectionName = &v - return s -} - -// SetConnectionStatus sets the ConnectionStatus field's value. -func (s *Connection) SetConnectionStatus(v string) *Connection { - s.ConnectionStatus = &v - return s -} - -// SetHostArn sets the HostArn field's value. -func (s *Connection) SetHostArn(v string) *Connection { - s.HostArn = &v - return s -} - -// SetOwnerAccountId sets the OwnerAccountId field's value. -func (s *Connection) SetOwnerAccountId(v string) *Connection { - s.OwnerAccountId = &v - return s -} - -// SetProviderType sets the ProviderType field's value. -func (s *Connection) SetProviderType(v string) *Connection { - s.ProviderType = &v - return s -} - -type CreateConnectionInput struct { - _ struct{} `type:"structure"` - - // The name of the connection to be created. - // - // ConnectionName is a required field - ConnectionName *string `min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the host associated with the connection - // to be created. - HostArn *string `type:"string"` - - // The name of the external provider where your third-party code repository - // is configured. - ProviderType *string `type:"string" enum:"ProviderType"` - - // The key-value pair to use when tagging the resource. - Tags []*Tag `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateConnectionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateConnectionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} - if s.ConnectionName == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionName")) - } - if s.ConnectionName != nil && len(*s.ConnectionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetConnectionName sets the ConnectionName field's value. -func (s *CreateConnectionInput) SetConnectionName(v string) *CreateConnectionInput { - s.ConnectionName = &v - return s -} - -// SetHostArn sets the HostArn field's value. -func (s *CreateConnectionInput) SetHostArn(v string) *CreateConnectionInput { - s.HostArn = &v - return s -} - -// SetProviderType sets the ProviderType field's value. -func (s *CreateConnectionInput) SetProviderType(v string) *CreateConnectionInput { - s.ProviderType = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { - s.Tags = v - return s -} - -type CreateConnectionOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the connection to be created. The ARN is - // used as the connection reference when the connection is shared between Amazon - // Web Services services. - // - // The ARN is never reused if the connection is deleted. - // - // ConnectionArn is a required field - ConnectionArn *string `type:"string" required:"true"` - - // Specifies the tags applied to the resource. - Tags []*Tag `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateConnectionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateConnectionOutput) GoString() string { - return s.String() -} - -// SetConnectionArn sets the ConnectionArn field's value. -func (s *CreateConnectionOutput) SetConnectionArn(v string) *CreateConnectionOutput { - s.ConnectionArn = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateConnectionOutput) SetTags(v []*Tag) *CreateConnectionOutput { - s.Tags = v - return s -} - -type CreateHostInput struct { - _ struct{} `type:"structure"` - - // The name of the host to be created. - // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - // The endpoint of the infrastructure to be represented by the host after it - // is created. - // - // ProviderEndpoint is a required field - ProviderEndpoint *string `min:"1" type:"string" required:"true"` - - // The name of the installed provider to be associated with your connection. - // The host resource represents the infrastructure where your provider type - // is installed. The valid provider type is GitHub Enterprise Server. - // - // ProviderType is a required field - ProviderType *string `type:"string" required:"true" enum:"ProviderType"` - - // Tags for the host to be created. - Tags []*Tag `type:"list"` - - // The VPC configuration to be provisioned for the host. A VPC must be configured - // and the infrastructure to be represented by the host must already be connected - // to the VPC. - VpcConfiguration *VpcConfiguration `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateHostInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateHostInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHostInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.ProviderEndpoint == nil { - invalidParams.Add(request.NewErrParamRequired("ProviderEndpoint")) - } - if s.ProviderEndpoint != nil && len(*s.ProviderEndpoint) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProviderEndpoint", 1)) - } - if s.ProviderType == nil { - invalidParams.Add(request.NewErrParamRequired("ProviderType")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - if s.VpcConfiguration != nil { - if err := s.VpcConfiguration.Validate(); err != nil { - invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetName sets the Name field's value. -func (s *CreateHostInput) SetName(v string) *CreateHostInput { - s.Name = &v - return s -} - -// SetProviderEndpoint sets the ProviderEndpoint field's value. -func (s *CreateHostInput) SetProviderEndpoint(v string) *CreateHostInput { - s.ProviderEndpoint = &v - return s -} - -// SetProviderType sets the ProviderType field's value. -func (s *CreateHostInput) SetProviderType(v string) *CreateHostInput { - s.ProviderType = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateHostInput) SetTags(v []*Tag) *CreateHostInput { - s.Tags = v - return s -} - -// SetVpcConfiguration sets the VpcConfiguration field's value. -func (s *CreateHostInput) SetVpcConfiguration(v *VpcConfiguration) *CreateHostInput { - s.VpcConfiguration = v - return s -} - -type CreateHostOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the host to be created. - HostArn *string `type:"string"` - - // Tags for the created host. - Tags []*Tag `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateHostOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateHostOutput) GoString() string { - return s.String() -} - -// SetHostArn sets the HostArn field's value. -func (s *CreateHostOutput) SetHostArn(v string) *CreateHostOutput { - s.HostArn = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateHostOutput) SetTags(v []*Tag) *CreateHostOutput { - s.Tags = v - return s -} - -type CreateRepositoryLinkInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the connection to be associated with the - // repository link. - // - // ConnectionArn is a required field - ConnectionArn *string `type:"string" required:"true"` - - // The Amazon Resource Name (ARN) encryption key for the repository to be associated - // with the repository link. - EncryptionKeyArn *string `min:"1" type:"string"` - - // The owner ID for the repository associated with a specific sync configuration, - // such as the owner ID in GitHub. - // - // OwnerId is a required field - OwnerId *string `min:"1" type:"string" required:"true"` - - // The name of the repository to be associated with the repository link. - // - // RepositoryName is a required field - RepositoryName *string `min:"1" type:"string" required:"true"` - - // The tags for the repository to be associated with the repository link. - Tags []*Tag `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateRepositoryLinkInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateRepositoryLinkInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRepositoryLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryLinkInput"} - if s.ConnectionArn == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) - } - if s.EncryptionKeyArn != nil && len(*s.EncryptionKeyArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EncryptionKeyArn", 1)) - } - if s.OwnerId == nil { - invalidParams.Add(request.NewErrParamRequired("OwnerId")) - } - if s.OwnerId != nil && len(*s.OwnerId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OwnerId", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetConnectionArn sets the ConnectionArn field's value. -func (s *CreateRepositoryLinkInput) SetConnectionArn(v string) *CreateRepositoryLinkInput { - s.ConnectionArn = &v - return s -} - -// SetEncryptionKeyArn sets the EncryptionKeyArn field's value. -func (s *CreateRepositoryLinkInput) SetEncryptionKeyArn(v string) *CreateRepositoryLinkInput { - s.EncryptionKeyArn = &v - return s -} - -// SetOwnerId sets the OwnerId field's value. -func (s *CreateRepositoryLinkInput) SetOwnerId(v string) *CreateRepositoryLinkInput { - s.OwnerId = &v - return s -} - -// SetRepositoryName sets the RepositoryName field's value. -func (s *CreateRepositoryLinkInput) SetRepositoryName(v string) *CreateRepositoryLinkInput { - s.RepositoryName = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateRepositoryLinkInput) SetTags(v []*Tag) *CreateRepositoryLinkInput { - s.Tags = v - return s -} - -type CreateRepositoryLinkOutput struct { - _ struct{} `type:"structure"` - - // The returned information about the created repository link. - // - // RepositoryLinkInfo is a required field - RepositoryLinkInfo *RepositoryLinkInfo `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateRepositoryLinkOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateRepositoryLinkOutput) GoString() string { - return s.String() -} - -// SetRepositoryLinkInfo sets the RepositoryLinkInfo field's value. -func (s *CreateRepositoryLinkOutput) SetRepositoryLinkInfo(v *RepositoryLinkInfo) *CreateRepositoryLinkOutput { - s.RepositoryLinkInfo = v - return s -} - -type CreateSyncConfigurationInput struct { - _ struct{} `type:"structure"` - - // The branch in the repository from which changes will be synced. - // - // Branch is a required field - Branch *string `min:"1" type:"string" required:"true"` - - // The file name of the configuration file that manages syncing between the - // connection and the repository. This configuration file is stored in the repository. - // - // ConfigFile is a required field - ConfigFile *string `type:"string" required:"true"` - - // 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. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` - - // 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. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` - - // 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. - // - // RoleArn is a required field - RoleArn *string `min:"1" type:"string" required:"true"` - - // The type of sync configuration. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSyncConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSyncConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSyncConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSyncConfigurationInput"} - if s.Branch == nil { - invalidParams.Add(request.NewErrParamRequired("Branch")) - } - if s.Branch != nil && len(*s.Branch) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) - } - if s.ConfigFile == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigFile")) - } - if s.RepositoryLinkId == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryLinkId")) - } - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetBranch sets the Branch field's value. -func (s *CreateSyncConfigurationInput) SetBranch(v string) *CreateSyncConfigurationInput { - s.Branch = &v - return s -} - -// SetConfigFile sets the ConfigFile field's value. -func (s *CreateSyncConfigurationInput) SetConfigFile(v string) *CreateSyncConfigurationInput { - s.ConfigFile = &v - return s -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *CreateSyncConfigurationInput) SetRepositoryLinkId(v string) *CreateSyncConfigurationInput { - s.RepositoryLinkId = &v - return s -} - -// SetResourceName sets the ResourceName field's value. -func (s *CreateSyncConfigurationInput) SetResourceName(v string) *CreateSyncConfigurationInput { - s.ResourceName = &v - return s -} - -// SetRoleArn sets the RoleArn field's value. -func (s *CreateSyncConfigurationInput) SetRoleArn(v string) *CreateSyncConfigurationInput { - s.RoleArn = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *CreateSyncConfigurationInput) SetSyncType(v string) *CreateSyncConfigurationInput { - s.SyncType = &v - return s -} - -type CreateSyncConfigurationOutput struct { - _ struct{} `type:"structure"` - - // 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. - // - // SyncConfiguration is a required field - SyncConfiguration *SyncConfiguration `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSyncConfigurationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSyncConfigurationOutput) GoString() string { - return s.String() -} - -// SetSyncConfiguration sets the SyncConfiguration field's value. -func (s *CreateSyncConfigurationOutput) SetSyncConfiguration(v *SyncConfiguration) *CreateSyncConfigurationOutput { - s.SyncConfiguration = v - return s -} - -type DeleteConnectionInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the connection to be deleted. - // - // The ARN is never reused if the connection is deleted. - // - // ConnectionArn is a required field - ConnectionArn *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteConnectionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteConnectionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} - if s.ConnectionArn == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetConnectionArn sets the ConnectionArn field's value. -func (s *DeleteConnectionInput) SetConnectionArn(v string) *DeleteConnectionInput { - s.ConnectionArn = &v - return s -} - -type DeleteConnectionOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteConnectionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteConnectionOutput) GoString() string { - return s.String() -} - -type DeleteHostInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the host to be deleted. - // - // HostArn is a required field - HostArn *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteHostInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteHostInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteHostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteHostInput"} - if s.HostArn == nil { - invalidParams.Add(request.NewErrParamRequired("HostArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetHostArn sets the HostArn field's value. -func (s *DeleteHostInput) SetHostArn(v string) *DeleteHostInput { - s.HostArn = &v - return s -} - -type DeleteHostOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteHostOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteHostOutput) GoString() string { - return s.String() -} - -type DeleteRepositoryLinkInput struct { - _ struct{} `type:"structure"` - - // The ID of the repository link to be deleted. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteRepositoryLinkInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteRepositoryLinkInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRepositoryLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryLinkInput"} - if s.RepositoryLinkId == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryLinkId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *DeleteRepositoryLinkInput) SetRepositoryLinkId(v string) *DeleteRepositoryLinkInput { - s.RepositoryLinkId = &v - return s -} - -type DeleteRepositoryLinkOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteRepositoryLinkOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteRepositoryLinkOutput) GoString() string { - return s.String() -} - -type DeleteSyncConfigurationInput struct { - _ struct{} `type:"structure"` - - // The name of the Amazon Web Services resource associated with the sync configuration - // to be deleted. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` - - // The type of sync configuration to be deleted. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSyncConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSyncConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSyncConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSyncConfigurationInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceName sets the ResourceName field's value. -func (s *DeleteSyncConfigurationInput) SetResourceName(v string) *DeleteSyncConfigurationInput { - s.ResourceName = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *DeleteSyncConfigurationInput) SetSyncType(v string) *DeleteSyncConfigurationInput { - s.SyncType = &v - return s -} - -type DeleteSyncConfigurationOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSyncConfigurationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSyncConfigurationOutput) GoString() string { - return s.String() -} - -type GetConnectionInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of a connection. - // - // ConnectionArn is a required field - ConnectionArn *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetConnectionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetConnectionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetConnectionInput"} - if s.ConnectionArn == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetConnectionArn sets the ConnectionArn field's value. -func (s *GetConnectionInput) SetConnectionArn(v string) *GetConnectionInput { - s.ConnectionArn = &v - return s -} - -type GetConnectionOutput struct { - _ struct{} `type:"structure"` - - // The connection details, such as status, owner, and provider type. - Connection *Connection `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetConnectionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetConnectionOutput) GoString() string { - return s.String() -} - -// SetConnection sets the Connection field's value. -func (s *GetConnectionOutput) SetConnection(v *Connection) *GetConnectionOutput { - s.Connection = v - return s -} - -type GetHostInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the requested host. - // - // HostArn is a required field - HostArn *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetHostInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetHostInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetHostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetHostInput"} - if s.HostArn == nil { - invalidParams.Add(request.NewErrParamRequired("HostArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetHostArn sets the HostArn field's value. -func (s *GetHostInput) SetHostArn(v string) *GetHostInput { - s.HostArn = &v - return s -} - -type GetHostOutput struct { - _ struct{} `type:"structure"` - - // The name of the requested host. - Name *string `min:"1" type:"string"` - - // The endpoint of the infrastructure represented by the requested host. - ProviderEndpoint *string `min:"1" type:"string"` - - // The provider type of the requested host, such as GitHub Enterprise Server. - ProviderType *string `type:"string" enum:"ProviderType"` - - // The status of the requested host. - Status *string `min:"1" type:"string"` - - // The VPC configuration of the requested host. - VpcConfiguration *VpcConfiguration `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetHostOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetHostOutput) GoString() string { - return s.String() -} - -// SetName sets the Name field's value. -func (s *GetHostOutput) SetName(v string) *GetHostOutput { - s.Name = &v - return s -} - -// SetProviderEndpoint sets the ProviderEndpoint field's value. -func (s *GetHostOutput) SetProviderEndpoint(v string) *GetHostOutput { - s.ProviderEndpoint = &v - return s -} - -// SetProviderType sets the ProviderType field's value. -func (s *GetHostOutput) SetProviderType(v string) *GetHostOutput { - s.ProviderType = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *GetHostOutput) SetStatus(v string) *GetHostOutput { - s.Status = &v - return s -} - -// SetVpcConfiguration sets the VpcConfiguration field's value. -func (s *GetHostOutput) SetVpcConfiguration(v *VpcConfiguration) *GetHostOutput { - s.VpcConfiguration = v - return s -} - -type GetRepositoryLinkInput struct { - _ struct{} `type:"structure"` - - // The ID of the repository link to get. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositoryLinkInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositoryLinkInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRepositoryLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRepositoryLinkInput"} - if s.RepositoryLinkId == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryLinkId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *GetRepositoryLinkInput) SetRepositoryLinkId(v string) *GetRepositoryLinkInput { - s.RepositoryLinkId = &v - return s -} - -type GetRepositoryLinkOutput struct { - _ struct{} `type:"structure"` - - // The information returned for a specified repository link. - // - // RepositoryLinkInfo is a required field - RepositoryLinkInfo *RepositoryLinkInfo `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositoryLinkOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositoryLinkOutput) GoString() string { - return s.String() -} - -// SetRepositoryLinkInfo sets the RepositoryLinkInfo field's value. -func (s *GetRepositoryLinkOutput) SetRepositoryLinkInfo(v *RepositoryLinkInfo) *GetRepositoryLinkOutput { - s.RepositoryLinkInfo = v - return s -} - -type GetRepositorySyncStatusInput struct { - _ struct{} `type:"structure"` - - // The branch of the repository link for the requested repository sync status. - // - // Branch is a required field - Branch *string `min:"1" type:"string" required:"true"` - - // The repository link ID for the requested repository sync status. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` - - // The sync type of the requested sync status. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositorySyncStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositorySyncStatusInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRepositorySyncStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRepositorySyncStatusInput"} - if s.Branch == nil { - invalidParams.Add(request.NewErrParamRequired("Branch")) - } - if s.Branch != nil && len(*s.Branch) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) - } - if s.RepositoryLinkId == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryLinkId")) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetBranch sets the Branch field's value. -func (s *GetRepositorySyncStatusInput) SetBranch(v string) *GetRepositorySyncStatusInput { - s.Branch = &v - return s -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *GetRepositorySyncStatusInput) SetRepositoryLinkId(v string) *GetRepositorySyncStatusInput { - s.RepositoryLinkId = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *GetRepositorySyncStatusInput) SetSyncType(v string) *GetRepositorySyncStatusInput { - s.SyncType = &v - return s -} - -type GetRepositorySyncStatusOutput struct { - _ struct{} `type:"structure"` - - // The status of the latest sync returned for a specified repository and branch. - // - // LatestSync is a required field - LatestSync *RepositorySyncAttempt `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositorySyncStatusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRepositorySyncStatusOutput) GoString() string { - return s.String() -} - -// SetLatestSync sets the LatestSync field's value. -func (s *GetRepositorySyncStatusOutput) SetLatestSync(v *RepositorySyncAttempt) *GetRepositorySyncStatusOutput { - s.LatestSync = v - return s -} - -type GetResourceSyncStatusInput struct { - _ struct{} `type:"structure"` - - // The name of the Amazon Web Services resource for the sync status with the - // Git repository. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` - - // The sync type for the sync status with the Git repository. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourceSyncStatusInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourceSyncStatusInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourceSyncStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourceSyncStatusInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceName sets the ResourceName field's value. -func (s *GetResourceSyncStatusInput) SetResourceName(v string) *GetResourceSyncStatusInput { - s.ResourceName = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *GetResourceSyncStatusInput) SetSyncType(v string) *GetResourceSyncStatusInput { - s.SyncType = &v - return s -} - -type GetResourceSyncStatusOutput struct { - _ struct{} `type:"structure"` - - // The desired state of the Amazon Web Services resource for the sync status - // with the Git repository. - DesiredState *Revision `type:"structure"` - - // The latest successful sync for the sync status with the Git repository. - LatestSuccessfulSync *ResourceSyncAttempt `type:"structure"` - - // The latest sync for the sync status with the Git repository, whether successful - // or not. - // - // LatestSync is a required field - LatestSync *ResourceSyncAttempt `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourceSyncStatusOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourceSyncStatusOutput) GoString() string { - return s.String() -} - -// SetDesiredState sets the DesiredState field's value. -func (s *GetResourceSyncStatusOutput) SetDesiredState(v *Revision) *GetResourceSyncStatusOutput { - s.DesiredState = v - return s -} - -// SetLatestSuccessfulSync sets the LatestSuccessfulSync field's value. -func (s *GetResourceSyncStatusOutput) SetLatestSuccessfulSync(v *ResourceSyncAttempt) *GetResourceSyncStatusOutput { - s.LatestSuccessfulSync = v - return s -} - -// SetLatestSync sets the LatestSync field's value. -func (s *GetResourceSyncStatusOutput) SetLatestSync(v *ResourceSyncAttempt) *GetResourceSyncStatusOutput { - s.LatestSync = v - return s -} - -type GetSyncBlockerSummaryInput struct { - _ struct{} `type:"structure"` - - // The name of the Amazon Web Services resource currently blocked from automatically - // being synced from a Git repository. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` - - // The sync type for the sync blocker summary. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncBlockerSummaryInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncBlockerSummaryInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSyncBlockerSummaryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSyncBlockerSummaryInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceName sets the ResourceName field's value. -func (s *GetSyncBlockerSummaryInput) SetResourceName(v string) *GetSyncBlockerSummaryInput { - s.ResourceName = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *GetSyncBlockerSummaryInput) SetSyncType(v string) *GetSyncBlockerSummaryInput { - s.SyncType = &v - return s -} - -type GetSyncBlockerSummaryOutput struct { - _ struct{} `type:"structure"` - - // The list of sync blockers for a specified resource. - // - // SyncBlockerSummary is a required field - SyncBlockerSummary *SyncBlockerSummary `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncBlockerSummaryOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncBlockerSummaryOutput) GoString() string { - return s.String() -} - -// SetSyncBlockerSummary sets the SyncBlockerSummary field's value. -func (s *GetSyncBlockerSummaryOutput) SetSyncBlockerSummary(v *SyncBlockerSummary) *GetSyncBlockerSummaryOutput { - s.SyncBlockerSummary = v - return s -} - -type GetSyncConfigurationInput struct { - _ struct{} `type:"structure"` - - // The name of the Amazon Web Services resource for the sync configuration for - // which you want to retrieve information. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` - - // The sync type for the sync configuration for which you want to retrieve information. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncConfigurationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncConfigurationInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSyncConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSyncConfigurationInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceName sets the ResourceName field's value. -func (s *GetSyncConfigurationInput) SetResourceName(v string) *GetSyncConfigurationInput { - s.ResourceName = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *GetSyncConfigurationInput) SetSyncType(v string) *GetSyncConfigurationInput { - s.SyncType = &v - return s -} - -type GetSyncConfigurationOutput struct { - _ struct{} `type:"structure"` - - // The details about the sync configuration for which you want to retrieve information. - // - // SyncConfiguration is a required field - SyncConfiguration *SyncConfiguration `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncConfigurationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSyncConfigurationOutput) GoString() string { - return s.String() -} - -// SetSyncConfiguration sets the SyncConfiguration field's value. -func (s *GetSyncConfigurationOutput) SetSyncConfiguration(v *SyncConfiguration) *GetSyncConfigurationOutput { - s.SyncConfiguration = v - return s -} - -// A resource that represents the infrastructure where a third-party provider -// is installed. The host is used when you create connections to an installed -// third-party provider type, such as GitHub Enterprise Server. You create one -// host for all connections to that provider. -// -// A host created through the CLI or the SDK is in `PENDING` status by default. -// You can make its status `AVAILABLE` by setting up the host in the console. -type Host struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the host. - HostArn *string `type:"string"` - - // The name of the host. - Name *string `min:"1" type:"string"` - - // The endpoint of the infrastructure where your provider type is installed. - ProviderEndpoint *string `min:"1" type:"string"` - - // The name of the installed provider to be associated with your connection. - // The host resource represents the infrastructure where your provider type - // is installed. The valid provider type is GitHub Enterprise Server. - ProviderType *string `type:"string" enum:"ProviderType"` - - // The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, - // VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION. - Status *string `min:"1" type:"string"` - - // The status description for the host. - StatusMessage *string `type:"string"` - - // The VPC configuration provisioned for the host. - VpcConfiguration *VpcConfiguration `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Host) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Host) GoString() string { - return s.String() -} - -// SetHostArn sets the HostArn field's value. -func (s *Host) SetHostArn(v string) *Host { - s.HostArn = &v - return s -} - -// SetName sets the Name field's value. -func (s *Host) SetName(v string) *Host { - s.Name = &v - return s -} - -// SetProviderEndpoint sets the ProviderEndpoint field's value. -func (s *Host) SetProviderEndpoint(v string) *Host { - s.ProviderEndpoint = &v - return s -} - -// SetProviderType sets the ProviderType field's value. -func (s *Host) SetProviderType(v string) *Host { - s.ProviderType = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *Host) SetStatus(v string) *Host { - s.Status = &v - return s -} - -// SetStatusMessage sets the StatusMessage field's value. -func (s *Host) SetStatusMessage(v string) *Host { - s.StatusMessage = &v - return s -} - -// SetVpcConfiguration sets the VpcConfiguration field's value. -func (s *Host) SetVpcConfiguration(v *VpcConfiguration) *Host { - s.VpcConfiguration = v - return s -} - -// Received an internal server exception. Try again later. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { - return s.String() -} - -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" -} - -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil -} - -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The input is not valid. Verify that the action is typed correctly. -type InvalidInputException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InvalidInputException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InvalidInputException) GoString() string { - return s.String() -} - -func newErrorInvalidInputException(v protocol.ResponseMetadata) error { - return &InvalidInputException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidInputException) Code() string { - return "InvalidInputException" -} - -// Message returns the exception's message. -func (s *InvalidInputException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidInputException) OrigErr() error { - return nil -} - -func (s *InvalidInputException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidInputException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InvalidInputException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Exceeded the maximum limit for connections. -type LimitExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s LimitExceededException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s LimitExceededException) GoString() string { - return s.String() -} - -func newErrorLimitExceededException(v protocol.ResponseMetadata) error { - return &LimitExceededException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *LimitExceededException) Code() string { - return "LimitExceededException" -} - -// Message returns the exception's message. -func (s *LimitExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *LimitExceededException) OrigErr() error { - return nil -} - -func (s *LimitExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *LimitExceededException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *LimitExceededException) RequestID() string { - return s.RespMetadata.RequestID -} - -type ListConnectionsInput struct { - _ struct{} `type:"structure"` - - // Filters the list of connections to those associated with a specified host. - HostArnFilter *string `type:"string"` - - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned nextToken value. - MaxResults *int64 `type:"integer"` - - // The token that was returned from the previous ListConnections call, which - // can be used to return the next set of connections in the list. - NextToken *string `min:"1" type:"string"` - - // Filters the list of connections to those associated with a specified provider, - // such as Bitbucket. - ProviderTypeFilter *string `type:"string" enum:"ProviderType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListConnectionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListConnectionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListConnectionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListConnectionsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetHostArnFilter sets the HostArnFilter field's value. -func (s *ListConnectionsInput) SetHostArnFilter(v string) *ListConnectionsInput { - s.HostArnFilter = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListConnectionsInput) SetMaxResults(v int64) *ListConnectionsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListConnectionsInput) SetNextToken(v string) *ListConnectionsInput { - s.NextToken = &v - return s -} - -// SetProviderTypeFilter sets the ProviderTypeFilter field's value. -func (s *ListConnectionsInput) SetProviderTypeFilter(v string) *ListConnectionsInput { - s.ProviderTypeFilter = &v - return s -} - -type ListConnectionsOutput struct { - _ struct{} `type:"structure"` - - // A list of connections and the details for each connection, such as status, - // owner, and provider type. - Connections []*Connection `type:"list"` - - // A token that can be used in the next ListConnections call. To view all items - // in the list, continue to call this operation with each subsequent token until - // no more nextToken values are returned. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListConnectionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListConnectionsOutput) GoString() string { - return s.String() -} - -// SetConnections sets the Connections field's value. -func (s *ListConnectionsOutput) SetConnections(v []*Connection) *ListConnectionsOutput { - s.Connections = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput { - s.NextToken = &v - return s -} - -type ListHostsInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned nextToken value. - MaxResults *int64 `type:"integer"` - - // The token that was returned from the previous ListHosts call, which can be - // used to return the next set of hosts in the list. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListHostsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListHostsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListHostsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListHostsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListHostsInput) SetMaxResults(v int64) *ListHostsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListHostsInput) SetNextToken(v string) *ListHostsInput { - s.NextToken = &v - return s -} - -type ListHostsOutput struct { - _ struct{} `type:"structure"` - - // A list of hosts and the details for each host, such as status, endpoint, - // and provider type. - Hosts []*Host `type:"list"` - - // A token that can be used in the next ListHosts call. To view all items in - // the list, continue to call this operation with each subsequent token until - // no more nextToken values are returned. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListHostsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListHostsOutput) GoString() string { - return s.String() -} - -// SetHosts sets the Hosts field's value. -func (s *ListHostsOutput) SetHosts(v []*Host) *ListHostsOutput { - s.Hosts = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListHostsOutput) SetNextToken(v string) *ListHostsOutput { - s.NextToken = &v - return s -} - -type ListRepositoryLinksInput struct { - _ struct{} `type:"structure"` - - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults *int64 `type:"integer"` - - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositoryLinksInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositoryLinksInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRepositoryLinksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRepositoryLinksInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListRepositoryLinksInput) SetMaxResults(v int64) *ListRepositoryLinksInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListRepositoryLinksInput) SetNextToken(v string) *ListRepositoryLinksInput { - s.NextToken = &v - return s -} - -type ListRepositoryLinksOutput struct { - _ struct{} `type:"structure"` - - // An enumeration token that allows the operation to batch the results of the - // operation. - NextToken *string `min:"1" type:"string"` - - // Lists the repository links called by the list repository links operation. - // - // RepositoryLinks is a required field - RepositoryLinks []*RepositoryLinkInfo `type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositoryLinksOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositoryLinksOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListRepositoryLinksOutput) SetNextToken(v string) *ListRepositoryLinksOutput { - s.NextToken = &v - return s -} - -// SetRepositoryLinks sets the RepositoryLinks field's value. -func (s *ListRepositoryLinksOutput) SetRepositoryLinks(v []*RepositoryLinkInfo) *ListRepositoryLinksOutput { - s.RepositoryLinks = v - return s -} - -type ListRepositorySyncDefinitionsInput struct { - _ struct{} `type:"structure"` - - // The ID of the repository link for the sync definition for which you want - // to retrieve information. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` - - // The sync type of the repository link for the the sync definition for which - // you want to retrieve information. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositorySyncDefinitionsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositorySyncDefinitionsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRepositorySyncDefinitionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRepositorySyncDefinitionsInput"} - if s.RepositoryLinkId == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryLinkId")) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *ListRepositorySyncDefinitionsInput) SetRepositoryLinkId(v string) *ListRepositorySyncDefinitionsInput { - s.RepositoryLinkId = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *ListRepositorySyncDefinitionsInput) SetSyncType(v string) *ListRepositorySyncDefinitionsInput { - s.SyncType = &v - return s -} - -type ListRepositorySyncDefinitionsOutput struct { - _ struct{} `type:"structure"` - - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `min:"1" type:"string"` - - // 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. - // - // RepositorySyncDefinitions is a required field - RepositorySyncDefinitions []*RepositorySyncDefinition `type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositorySyncDefinitionsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRepositorySyncDefinitionsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListRepositorySyncDefinitionsOutput) SetNextToken(v string) *ListRepositorySyncDefinitionsOutput { - s.NextToken = &v - return s -} - -// SetRepositorySyncDefinitions sets the RepositorySyncDefinitions field's value. -func (s *ListRepositorySyncDefinitionsOutput) SetRepositorySyncDefinitions(v []*RepositorySyncDefinition) *ListRepositorySyncDefinitionsOutput { - s.RepositorySyncDefinitions = v - return s -} - -type ListSyncConfigurationsInput struct { - _ struct{} `type:"structure"` - - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults *int64 `type:"integer"` - - // An enumeration token that allows the operation to batch the results of the - // operation. - NextToken *string `min:"1" type:"string"` - - // The ID of the repository link for the requested list of sync configurations. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` - - // The sync type for the requested list of sync configurations. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSyncConfigurationsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSyncConfigurationsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSyncConfigurationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSyncConfigurationsInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - if s.RepositoryLinkId == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryLinkId")) - } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListSyncConfigurationsInput) SetMaxResults(v int64) *ListSyncConfigurationsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListSyncConfigurationsInput) SetNextToken(v string) *ListSyncConfigurationsInput { - s.NextToken = &v - return s -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *ListSyncConfigurationsInput) SetRepositoryLinkId(v string) *ListSyncConfigurationsInput { - s.RepositoryLinkId = &v - return s -} - -// SetSyncType sets the SyncType field's value. -func (s *ListSyncConfigurationsInput) SetSyncType(v string) *ListSyncConfigurationsInput { - s.SyncType = &v - return s -} - -type ListSyncConfigurationsOutput struct { - _ struct{} `type:"structure"` - - // An enumeration token that allows the operation to batch the next results - // of the operation. - NextToken *string `min:"1" type:"string"` - - // The list of repository sync definitions returned by the request. - // - // SyncConfigurations is a required field - SyncConfigurations []*SyncConfiguration `type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSyncConfigurationsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSyncConfigurationsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListSyncConfigurationsOutput) SetNextToken(v string) *ListSyncConfigurationsOutput { - s.NextToken = &v - return s -} - -// SetSyncConfigurations sets the SyncConfigurations field's value. -func (s *ListSyncConfigurationsOutput) SetSyncConfigurations(v []*SyncConfiguration) *ListSyncConfigurationsOutput { - s.SyncConfigurations = v - return s -} - -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource for which you want to get - // information about tags, if any. - // - // ResourceArn is a required field - ResourceArn *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v - return s -} - -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // A list of tag key and value pairs associated with the specified resource. - Tags []*Tag `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) GoString() string { - return s.String() -} - -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v - return s +// See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateHost +func (c *CodeStarConnections) UpdateHost(input *UpdateHostInput) (*UpdateHostOutput, error) { + req, out := c.UpdateHostRequest(input) + return out, req.Send() } -// 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 { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the connection associated with the repository - // link. - // - // ConnectionArn is a required field - ConnectionArn *string `type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the encryption key for the repository associated - // with the repository link. - EncryptionKeyArn *string `min:"1" type:"string"` - - // The owner ID for the repository associated with the repository link, such - // as the owner ID in GitHub. - // - // OwnerId is a required field - OwnerId *string `min:"1" type:"string" required:"true"` - - // The provider type for the connection, such as GitHub, associated with the - // repository link. - // - // ProviderType is a required field - ProviderType *string `type:"string" required:"true" enum:"ProviderType"` - - // The Amazon Resource Name (ARN) of the repository link. - // - // RepositoryLinkArn is a required field - RepositoryLinkArn *string `type:"string" required:"true"` +// UpdateHostWithContext is the same as UpdateHost with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateHost for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeStarConnections) UpdateHostWithContext(ctx aws.Context, input *UpdateHostInput, opts ...request.Option) (*UpdateHostOutput, error) { + req, out := c.UpdateHostRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} - // The ID of the repository link. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` +// Two conflicting operations have been made on the same resource. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The name of the repository associated with the repository link. - // - // RepositoryName is a required field - RepositoryName *string `min:"1" type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation. @@ -5561,7 +1124,7 @@ type RepositoryLinkInfo struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RepositoryLinkInfo) String() string { +func (s ConflictException) String() string { return awsutil.Prettify(s) } @@ -5570,146 +1133,81 @@ func (s RepositoryLinkInfo) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RepositoryLinkInfo) GoString() string { +func (s ConflictException) GoString() string { return s.String() } -// SetConnectionArn sets the ConnectionArn field's value. -func (s *RepositoryLinkInfo) SetConnectionArn(v string) *RepositoryLinkInfo { - s.ConnectionArn = &v - return s +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } } -// SetEncryptionKeyArn sets the EncryptionKeyArn field's value. -func (s *RepositoryLinkInfo) SetEncryptionKeyArn(v string) *RepositoryLinkInfo { - s.EncryptionKeyArn = &v - return s +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" } -// SetOwnerId sets the OwnerId field's value. -func (s *RepositoryLinkInfo) SetOwnerId(v string) *RepositoryLinkInfo { - s.OwnerId = &v - return s +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetProviderType sets the ProviderType field's value. -func (s *RepositoryLinkInfo) SetProviderType(v string) *RepositoryLinkInfo { - s.ProviderType = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil } -// SetRepositoryLinkArn sets the RepositoryLinkArn field's value. -func (s *RepositoryLinkInfo) SetRepositoryLinkArn(v string) *RepositoryLinkInfo { - s.RepositoryLinkArn = &v - return s +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *RepositoryLinkInfo) SetRepositoryLinkId(v string) *RepositoryLinkInfo { - s.RepositoryLinkId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetRepositoryName sets the RepositoryName field's value. -func (s *RepositoryLinkInfo) SetRepositoryName(v string) *RepositoryLinkInfo { - s.RepositoryName = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID } -// Information about a repository sync attempt for a repository with a sync -// configuration. -type RepositorySyncAttempt struct { +// A resource that is used to connect third-party source providers with services +// like CodePipeline. +// +// Note: A connection created through CloudFormation, the CLI, or the SDK is +// in `PENDING` status by default. You can make its status `AVAILABLE` by updating +// the connection in the console. +type Connection struct { _ struct{} `type:"structure"` - // The events associated with a specific sync attempt. - // - // Events is a required field - Events []*RepositorySyncEvent `type:"list" required:"true"` - - // The start time of a specific sync attempt. - // - // StartedAt is a required field - StartedAt *time.Time `type:"timestamp" required:"true"` - - // 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. + // The Amazon Resource Name (ARN) of the connection. The ARN is used as the + // connection reference when the connection is shared between Amazon Web Services. // - // Status is a required field - Status *string `type:"string" required:"true" enum:"RepositorySyncStatus"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RepositorySyncAttempt) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RepositorySyncAttempt) GoString() string { - return s.String() -} - -// SetEvents sets the Events field's value. -func (s *RepositorySyncAttempt) SetEvents(v []*RepositorySyncEvent) *RepositorySyncAttempt { - s.Events = v - return s -} - -// SetStartedAt sets the StartedAt field's value. -func (s *RepositorySyncAttempt) SetStartedAt(v time.Time) *RepositorySyncAttempt { - s.StartedAt = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *RepositorySyncAttempt) SetStatus(v string) *RepositorySyncAttempt { - s.Status = &v - return s -} + // The ARN is never reused if the connection is deleted. + ConnectionArn *string `type:"string"` -// The definition for a repository with a sync configuration. -type RepositorySyncDefinition struct { - _ struct{} `type:"structure"` + // The name of the connection. Connection names must be unique in an Amazon + // Web Services account. + ConnectionName *string `min:"1" type:"string"` - // The branch specified for a repository sync definition. - // - // Branch is a required field - Branch *string `min:"1" type:"string" required:"true"` + // The current status of the connection. + ConnectionStatus *string `type:"string" enum:"ConnectionStatus"` - // The configuration file for a repository sync definition. This value comes - // from creating or updating the config-file field of a sync-configuration. - // - // Directory is a required field - Directory *string `type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the host associated with the connection. + HostArn *string `type:"string"` - // The parent resource specified for a repository sync definition. - // - // Parent is a required field - Parent *string `type:"string" required:"true"` + // The identifier of the external provider where your third-party code repository + // is configured. For Bitbucket, this is the account ID of the owner of the + // Bitbucket repository. + OwnerAccountId *string `min:"12" type:"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. - // - // Target is a required field - Target *string `type:"string" required:"true"` + // The name of the external provider where your third-party code repository + // is configured. + ProviderType *string `type:"string" enum:"ProviderType"` } // String returns the string representation. @@ -5717,7 +1215,7 @@ type RepositorySyncDefinition struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RepositorySyncDefinition) String() string { +func (s Connection) String() string { return awsutil.Prettify(s) } @@ -5726,169 +1224,64 @@ func (s RepositorySyncDefinition) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RepositorySyncDefinition) GoString() string { +func (s Connection) GoString() string { return s.String() } -// SetBranch sets the Branch field's value. -func (s *RepositorySyncDefinition) SetBranch(v string) *RepositorySyncDefinition { - s.Branch = &v - return s -} - -// SetDirectory sets the Directory field's value. -func (s *RepositorySyncDefinition) SetDirectory(v string) *RepositorySyncDefinition { - s.Directory = &v - return s -} - -// SetParent sets the Parent field's value. -func (s *RepositorySyncDefinition) SetParent(v string) *RepositorySyncDefinition { - s.Parent = &v +// SetConnectionArn sets the ConnectionArn field's value. +func (s *Connection) SetConnectionArn(v string) *Connection { + s.ConnectionArn = &v return s } -// SetTarget sets the Target field's value. -func (s *RepositorySyncDefinition) SetTarget(v string) *RepositorySyncDefinition { - s.Target = &v +// SetConnectionName sets the ConnectionName field's value. +func (s *Connection) SetConnectionName(v string) *Connection { + s.ConnectionName = &v return s } -// Information about a repository sync event. -type RepositorySyncEvent struct { - _ struct{} `type:"structure"` - - // A description of a repository sync event. - // - // Event is a required field - Event *string `type:"string" required:"true"` - - // The ID for a repository sync event. - ExternalId *string `type:"string"` - - // The time that a repository sync event occurred. - // - // Time is a required field - Time *time.Time `type:"timestamp" required:"true"` - - // The event type for a repository sync event. - // - // Type is a required field - Type *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RepositorySyncEvent) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RepositorySyncEvent) GoString() string { - return s.String() -} - -// SetEvent sets the Event field's value. -func (s *RepositorySyncEvent) SetEvent(v string) *RepositorySyncEvent { - s.Event = &v +// SetConnectionStatus sets the ConnectionStatus field's value. +func (s *Connection) SetConnectionStatus(v string) *Connection { + s.ConnectionStatus = &v return s } -// SetExternalId sets the ExternalId field's value. -func (s *RepositorySyncEvent) SetExternalId(v string) *RepositorySyncEvent { - s.ExternalId = &v +// SetHostArn sets the HostArn field's value. +func (s *Connection) SetHostArn(v string) *Connection { + s.HostArn = &v return s } -// SetTime sets the Time field's value. -func (s *RepositorySyncEvent) SetTime(v time.Time) *RepositorySyncEvent { - s.Time = &v +// SetOwnerAccountId sets the OwnerAccountId field's value. +func (s *Connection) SetOwnerAccountId(v string) *Connection { + s.OwnerAccountId = &v return s } -// SetType sets the Type field's value. -func (s *RepositorySyncEvent) SetType(v string) *RepositorySyncEvent { - s.Type = &v +// SetProviderType sets the ProviderType field's value. +func (s *Connection) SetProviderType(v string) *Connection { + s.ProviderType = &v return s } -// Unable to create resource. Resource already exists. -type ResourceAlreadyExistsException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceAlreadyExistsException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceAlreadyExistsException) GoString() string { - return s.String() -} - -func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { - return &ResourceAlreadyExistsException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ResourceAlreadyExistsException) Code() string { - return "ResourceAlreadyExistsException" -} - -// Message returns the exception's message. -func (s *ResourceAlreadyExistsException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceAlreadyExistsException) OrigErr() error { - return nil -} - -func (s *ResourceAlreadyExistsException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} +type CreateConnectionInput struct { + _ struct{} `type:"structure"` -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceAlreadyExistsException) StatusCode() int { - return s.RespMetadata.StatusCode -} + // The name of the connection to be created. + // + // ConnectionName is a required field + ConnectionName *string `min:"1" type:"string" required:"true"` -// RequestID returns the service's response RequestID for request. -func (s *ResourceAlreadyExistsException) RequestID() string { - return s.RespMetadata.RequestID -} + // The Amazon Resource Name (ARN) of the host associated with the connection + // to be created. + HostArn *string `type:"string"` -// Resource not found. Verify the connection resource ARN and try again. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The name of the external provider where your third-party code repository + // is configured. + ProviderType *string `type:"string" enum:"ProviderType"` - Message_ *string `locationName:"Message" type:"string"` + // The key-value pair to use when tagging the resource. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -5896,7 +1289,7 @@ type ResourceNotFoundException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { +func (s CreateConnectionInput) String() string { return awsutil.Prettify(s) } @@ -5905,93 +1298,74 @@ func (s ResourceNotFoundException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { +func (s CreateConnectionInput) GoString() string { return s.String() } -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} + if s.ConnectionName == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionName")) + } + if s.ConnectionName != nil && len(*s.ConnectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } } -} - -// Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" -} -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil +// SetConnectionName sets the ConnectionName field's value. +func (s *CreateConnectionInput) SetConnectionName(v string) *CreateConnectionInput { + s.ConnectionName = &v + return s } -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetHostArn sets the HostArn field's value. +func (s *CreateConnectionInput) SetHostArn(v string) *CreateConnectionInput { + s.HostArn = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetProviderType sets the ProviderType field's value. +func (s *CreateConnectionInput) SetProviderType(v string) *CreateConnectionInput { + s.ProviderType = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID +// SetTags sets the Tags field's value. +func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { + s.Tags = v + return s } -// Information about a resource sync attempt. -type ResourceSyncAttempt struct { +type CreateConnectionOutput struct { _ struct{} `type:"structure"` - // The events related to a resource sync attempt. - // - // Events is a required field - Events []*ResourceSyncEvent `type:"list" required:"true"` - - // The current state of the resource as defined in the resource's config-file - // in the linked repository. - // - // InitialRevision is a required field - InitialRevision *Revision `type:"structure" required:"true"` - - // The start time for a resource sync attempt. - // - // StartedAt is a required field - StartedAt *time.Time `type:"timestamp" required:"true"` - - // 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. + // The Amazon Resource Name (ARN) of the connection to be created. The ARN is + // used as the connection reference when the connection is shared between Amazon + // Web Services services. // - // Status is a required field - Status *string `type:"string" required:"true" enum:"ResourceSyncStatus"` - - // The name of the Amazon Web Services resource that is attempted to be synchronized. + // The ARN is never reused if the connection is deleted. // - // Target is a required field - Target *string `type:"string" required:"true"` + // ConnectionArn is a required field + ConnectionArn *string `type:"string" required:"true"` - // 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. - // - // TargetRevision is a required field - TargetRevision *Revision `type:"structure" required:"true"` + // Specifies the tags applied to the resource. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -5999,7 +1373,7 @@ type ResourceSyncAttempt struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceSyncAttempt) String() string { +func (s CreateConnectionOutput) String() string { return awsutil.Prettify(s) } @@ -6008,68 +1382,49 @@ func (s ResourceSyncAttempt) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceSyncAttempt) GoString() string { +func (s CreateConnectionOutput) GoString() string { return s.String() } -// SetEvents sets the Events field's value. -func (s *ResourceSyncAttempt) SetEvents(v []*ResourceSyncEvent) *ResourceSyncAttempt { - s.Events = v - return s -} - -// SetInitialRevision sets the InitialRevision field's value. -func (s *ResourceSyncAttempt) SetInitialRevision(v *Revision) *ResourceSyncAttempt { - s.InitialRevision = v - return s -} - -// SetStartedAt sets the StartedAt field's value. -func (s *ResourceSyncAttempt) SetStartedAt(v time.Time) *ResourceSyncAttempt { - s.StartedAt = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *ResourceSyncAttempt) SetStatus(v string) *ResourceSyncAttempt { - s.Status = &v - return s -} - -// SetTarget sets the Target field's value. -func (s *ResourceSyncAttempt) SetTarget(v string) *ResourceSyncAttempt { - s.Target = &v +// SetConnectionArn sets the ConnectionArn field's value. +func (s *CreateConnectionOutput) SetConnectionArn(v string) *CreateConnectionOutput { + s.ConnectionArn = &v return s } -// SetTargetRevision sets the TargetRevision field's value. -func (s *ResourceSyncAttempt) SetTargetRevision(v *Revision) *ResourceSyncAttempt { - s.TargetRevision = v +// SetTags sets the Tags field's value. +func (s *CreateConnectionOutput) SetTags(v []*Tag) *CreateConnectionOutput { + s.Tags = v return s } -// Information about a resource sync event for the resource associated with -// a sync configuration. -type ResourceSyncEvent struct { +type CreateHostInput struct { _ struct{} `type:"structure"` - // The event for a resource sync event. + // The name of the host to be created. // - // Event is a required field - Event *string `type:"string" required:"true"` - - // The ID for a resource sync event. - ExternalId *string `type:"string"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` - // The time that a resource sync event occurred. + // The endpoint of the infrastructure to be represented by the host after it + // is created. // - // Time is a required field - Time *time.Time `type:"timestamp" required:"true"` + // ProviderEndpoint is a required field + ProviderEndpoint *string `min:"1" type:"string" required:"true"` - // The type of resource sync event. + // The name of the installed provider to be associated with your connection. + // The host resource represents the infrastructure where your provider type + // is installed. The valid provider type is GitHub Enterprise Server. // - // Type is a required field - Type *string `type:"string" required:"true"` + // ProviderType is a required field + ProviderType *string `type:"string" required:"true" enum:"ProviderType"` + + Tags []*Tag `type:"list"` + + // The VPC configuration to be provisioned for the host. A VPC must be configured + // and the infrastructure to be represented by the host must already be connected + // to the VPC. + VpcConfiguration *VpcConfiguration `type:"structure"` } // String returns the string representation. @@ -6077,7 +1432,7 @@ type ResourceSyncEvent struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceSyncEvent) String() string { +func (s CreateHostInput) String() string { return awsutil.Prettify(s) } @@ -6086,40 +1441,87 @@ func (s ResourceSyncEvent) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceSyncEvent) GoString() string { +func (s CreateHostInput) GoString() string { return s.String() } -// SetEvent sets the Event field's value. -func (s *ResourceSyncEvent) SetEvent(v string) *ResourceSyncEvent { - s.Event = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateHostInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateHostInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ProviderEndpoint == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderEndpoint")) + } + if s.ProviderEndpoint != nil && len(*s.ProviderEndpoint) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProviderEndpoint", 1)) + } + if s.ProviderType == nil { + invalidParams.Add(request.NewErrParamRequired("ProviderType")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + if s.VpcConfiguration != nil { + if err := s.VpcConfiguration.Validate(); err != nil { + invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateHostInput) SetName(v string) *CreateHostInput { + s.Name = &v return s } -// SetExternalId sets the ExternalId field's value. -func (s *ResourceSyncEvent) SetExternalId(v string) *ResourceSyncEvent { - s.ExternalId = &v +// SetProviderEndpoint sets the ProviderEndpoint field's value. +func (s *CreateHostInput) SetProviderEndpoint(v string) *CreateHostInput { + s.ProviderEndpoint = &v return s } -// SetTime sets the Time field's value. -func (s *ResourceSyncEvent) SetTime(v time.Time) *ResourceSyncEvent { - s.Time = &v +// SetProviderType sets the ProviderType field's value. +func (s *CreateHostInput) SetProviderType(v string) *CreateHostInput { + s.ProviderType = &v return s } -// SetType sets the Type field's value. -func (s *ResourceSyncEvent) SetType(v string) *ResourceSyncEvent { - s.Type = &v +// SetTags sets the Tags field's value. +func (s *CreateHostInput) SetTags(v []*Tag) *CreateHostInput { + s.Tags = v return s } -// Resource not found. Verify the ARN for the host resource and try again. -type ResourceUnavailableException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetVpcConfiguration sets the VpcConfiguration field's value. +func (s *CreateHostInput) SetVpcConfiguration(v *VpcConfiguration) *CreateHostInput { + s.VpcConfiguration = v + return s +} - Message_ *string `locationName:"Message" type:"string"` +type CreateHostOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the host to be created. + HostArn *string `type:"string"` + + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -6127,7 +1529,7 @@ type ResourceUnavailableException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceUnavailableException) String() string { +func (s CreateHostOutput) String() string { return awsutil.Prettify(s) } @@ -6136,54 +1538,31 @@ func (s ResourceUnavailableException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ResourceUnavailableException) GoString() string { +func (s CreateHostOutput) GoString() string { return s.String() } -func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { - return &ResourceUnavailableException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ResourceUnavailableException) Code() string { - return "ResourceUnavailableException" -} - -// Message returns the exception's message. -func (s *ResourceUnavailableException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceUnavailableException) OrigErr() error { - return nil -} - -func (s *ResourceUnavailableException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceUnavailableException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetHostArn sets the HostArn field's value. +func (s *CreateHostOutput) SetHostArn(v string) *CreateHostOutput { + s.HostArn = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ResourceUnavailableException) RequestID() string { - return s.RespMetadata.RequestID +// SetTags sets the Tags field's value. +func (s *CreateHostOutput) SetTags(v []*Tag) *CreateHostOutput { + s.Tags = v + return s } -// Retrying the latest commit failed. Try again later. -type RetryLatestCommitFailedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type DeleteConnectionInput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // The Amazon Resource Name (ARN) of the connection to be deleted. + // + // The ARN is never reused if the connection is deleted. + // + // ConnectionArn is a required field + ConnectionArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -6191,7 +1570,7 @@ type RetryLatestCommitFailedException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RetryLatestCommitFailedException) String() string { +func (s DeleteConnectionInput) String() string { return awsutil.Prettify(s) } @@ -6200,83 +1579,58 @@ func (s RetryLatestCommitFailedException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RetryLatestCommitFailedException) GoString() string { +func (s DeleteConnectionInput) GoString() string { return s.String() } -func newErrorRetryLatestCommitFailedException(v protocol.ResponseMetadata) error { - return &RetryLatestCommitFailedException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} + if s.ConnectionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) } -} -// Code returns the exception type name. -func (s *RetryLatestCommitFailedException) Code() string { - return "RetryLatestCommitFailedException" -} - -// Message returns the exception's message. -func (s *RetryLatestCommitFailedException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *RetryLatestCommitFailedException) OrigErr() error { - return nil +// SetConnectionArn sets the ConnectionArn field's value. +func (s *DeleteConnectionInput) SetConnectionArn(v string) *DeleteConnectionInput { + s.ConnectionArn = &v + return s } -func (s *RetryLatestCommitFailedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +type DeleteConnectionOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *RetryLatestCommitFailedException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteConnectionOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *RetryLatestCommitFailedException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteConnectionOutput) GoString() string { + return s.String() } -// Information about the revision for a specific sync event, such as the branch, -// owner ID, and name of the repository. -type Revision struct { +type DeleteHostInput struct { _ struct{} `type:"structure"` - // The branch name for a specific revision. - // - // Branch is a required field - Branch *string `min:"1" type:"string" required:"true"` - - // The directory, if any, for a specific revision. - // - // Directory is a required field - Directory *string `type:"string" required:"true"` - - // The owner ID for a specific revision, such as the GitHub owner ID for a GitHub - // repository. - // - // OwnerId is a required field - OwnerId *string `min:"1" type:"string" required:"true"` - - // The provider type for a revision, such as GitHub. - // - // ProviderType is a required field - ProviderType *string `type:"string" required:"true" enum:"ProviderType"` - - // The repository name for a specific revision. - // - // RepositoryName is a required field - RepositoryName *string `min:"1" type:"string" required:"true"` - - // The SHA, such as the commit ID, for a specific revision. + // The Amazon Resource Name (ARN) of the host to be deleted. // - // Sha is a required field - Sha *string `min:"1" type:"string" required:"true"` + // HostArn is a required field + HostArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -6284,7 +1638,7 @@ type Revision struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Revision) String() string { +func (s DeleteHostInput) String() string { return awsutil.Prettify(s) } @@ -6293,83 +1647,58 @@ func (s Revision) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Revision) GoString() string { +func (s DeleteHostInput) GoString() string { return s.String() } -// SetBranch sets the Branch field's value. -func (s *Revision) SetBranch(v string) *Revision { - s.Branch = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteHostInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteHostInput"} + if s.HostArn == nil { + invalidParams.Add(request.NewErrParamRequired("HostArn")) + } -// SetDirectory sets the Directory field's value. -func (s *Revision) SetDirectory(v string) *Revision { - s.Directory = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetOwnerId sets the OwnerId field's value. -func (s *Revision) SetOwnerId(v string) *Revision { - s.OwnerId = &v +// SetHostArn sets the HostArn field's value. +func (s *DeleteHostInput) SetHostArn(v string) *DeleteHostInput { + s.HostArn = &v return s } -// SetProviderType sets the ProviderType field's value. -func (s *Revision) SetProviderType(v string) *Revision { - s.ProviderType = &v - return s +type DeleteHostOutput struct { + _ struct{} `type:"structure"` } -// SetRepositoryName sets the RepositoryName field's value. -func (s *Revision) SetRepositoryName(v string) *Revision { - s.RepositoryName = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteHostOutput) String() string { + return awsutil.Prettify(s) } -// SetSha sets the Sha field's value. -func (s *Revision) SetSha(v string) *Revision { - s.Sha = &v - return s +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteHostOutput) GoString() string { + return s.String() } -// Information about a blocker for a sync event. -type SyncBlocker struct { +type GetConnectionInput struct { _ struct{} `type:"structure"` - // The contexts for a specific sync blocker. - Contexts []*SyncBlockerContext `type:"list"` - - // The creation time for a specific sync blocker. - // - // CreatedAt is a required field - CreatedAt *time.Time `type:"timestamp" required:"true"` - - // The provided reason for a specific sync blocker. - // - // CreatedReason is a required field - CreatedReason *string `type:"string" required:"true"` - - // The ID for a specific sync blocker. - // - // Id is a required field - Id *string `min:"1" type:"string" required:"true"` - - // The time that a specific sync blocker was resolved. - ResolvedAt *time.Time `type:"timestamp"` - - // The resolved reason for a specific sync blocker. - ResolvedReason *string `min:"1" type:"string"` - - // The status for a specific sync blocker. - // - // Status is a required field - Status *string `type:"string" required:"true" enum:"BlockerStatus"` - - // The sync blocker type. + // The Amazon Resource Name (ARN) of a connection. // - // Type is a required field - Type *string `type:"string" required:"true" enum:"BlockerType"` + // ConnectionArn is a required field + ConnectionArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -6377,7 +1706,7 @@ type SyncBlocker struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlocker) String() string { +func (s GetConnectionInput) String() string { return awsutil.Prettify(s) } @@ -6386,71 +1715,34 @@ func (s SyncBlocker) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlocker) GoString() string { +func (s GetConnectionInput) GoString() string { return s.String() } -// SetContexts sets the Contexts field's value. -func (s *SyncBlocker) SetContexts(v []*SyncBlockerContext) *SyncBlocker { - s.Contexts = v - return s -} - -// SetCreatedAt sets the CreatedAt field's value. -func (s *SyncBlocker) SetCreatedAt(v time.Time) *SyncBlocker { - s.CreatedAt = &v - return s -} - -// SetCreatedReason sets the CreatedReason field's value. -func (s *SyncBlocker) SetCreatedReason(v string) *SyncBlocker { - s.CreatedReason = &v - return s -} - -// SetId sets the Id field's value. -func (s *SyncBlocker) SetId(v string) *SyncBlocker { - s.Id = &v - return s -} - -// SetResolvedAt sets the ResolvedAt field's value. -func (s *SyncBlocker) SetResolvedAt(v time.Time) *SyncBlocker { - s.ResolvedAt = &v - return s -} - -// SetResolvedReason sets the ResolvedReason field's value. -func (s *SyncBlocker) SetResolvedReason(v string) *SyncBlocker { - s.ResolvedReason = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConnectionInput"} + if s.ConnectionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) + } -// SetStatus sets the Status field's value. -func (s *SyncBlocker) SetStatus(v string) *SyncBlocker { - s.Status = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetType sets the Type field's value. -func (s *SyncBlocker) SetType(v string) *SyncBlocker { - s.Type = &v +// SetConnectionArn sets the ConnectionArn field's value. +func (s *GetConnectionInput) SetConnectionArn(v string) *GetConnectionInput { + s.ConnectionArn = &v return s } -// The context for a specific sync blocker. -type SyncBlockerContext struct { +type GetConnectionOutput struct { _ struct{} `type:"structure"` - // The key provided for a context key-value pair for a specific sync blocker. - // - // Key is a required field - Key *string `type:"string" required:"true"` - - // The value provided for a context key-value pair for a specific sync blocker. - // - // Value is a required field - Value *string `type:"string" required:"true"` + // The connection details, such as status, owner, and provider type. + Connection *Connection `type:"structure"` } // String returns the string representation. @@ -6458,7 +1750,7 @@ type SyncBlockerContext struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlockerContext) String() string { +func (s GetConnectionOutput) String() string { return awsutil.Prettify(s) } @@ -6467,28 +1759,23 @@ func (s SyncBlockerContext) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlockerContext) GoString() string { +func (s GetConnectionOutput) GoString() string { return s.String() } -// SetKey sets the Key field's value. -func (s *SyncBlockerContext) SetKey(v string) *SyncBlockerContext { - s.Key = &v - return s -} - -// SetValue sets the Value field's value. -func (s *SyncBlockerContext) SetValue(v string) *SyncBlockerContext { - s.Value = &v +// SetConnection sets the Connection field's value. +func (s *GetConnectionOutput) SetConnection(v *Connection) *GetConnectionOutput { + s.Connection = v return s } -// Unable to continue. The sync blocker does not exist. -type SyncBlockerDoesNotExistException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type GetHostInput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // The Amazon Resource Name (ARN) of the requested host. + // + // HostArn is a required field + HostArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -6496,7 +1783,7 @@ type SyncBlockerDoesNotExistException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlockerDoesNotExistException) String() string { +func (s GetHostInput) String() string { return awsutil.Prettify(s) } @@ -6505,62 +1792,46 @@ func (s SyncBlockerDoesNotExistException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlockerDoesNotExistException) GoString() string { +func (s GetHostInput) GoString() string { return s.String() } -func newErrorSyncBlockerDoesNotExistException(v protocol.ResponseMetadata) error { - return &SyncBlockerDoesNotExistException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetHostInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetHostInput"} + if s.HostArn == nil { + invalidParams.Add(request.NewErrParamRequired("HostArn")) } -} - -// Code returns the exception type name. -func (s *SyncBlockerDoesNotExistException) Code() string { - return "SyncBlockerDoesNotExistException" -} -// Message returns the exception's message. -func (s *SyncBlockerDoesNotExistException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *SyncBlockerDoesNotExistException) OrigErr() error { return nil } -func (s *SyncBlockerDoesNotExistException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetHostArn sets the HostArn field's value. +func (s *GetHostInput) SetHostArn(v string) *GetHostInput { + s.HostArn = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *SyncBlockerDoesNotExistException) StatusCode() int { - return s.RespMetadata.StatusCode -} +type GetHostOutput struct { + _ struct{} `type:"structure"` -// RequestID returns the service's response RequestID for request. -func (s *SyncBlockerDoesNotExistException) RequestID() string { - return s.RespMetadata.RequestID -} + // The name of the requested host. + Name *string `min:"1" type:"string"` -// A summary for sync blockers. -type SyncBlockerSummary struct { - _ struct{} `type:"structure"` + // The endpoint of the infrastructure represented by the requested host. + ProviderEndpoint *string `min:"1" type:"string"` - // The latest events for a sync blocker summary. - LatestBlockers []*SyncBlocker `type:"list"` + // The provider type of the requested host, such as GitHub Enterprise Server. + ProviderType *string `type:"string" enum:"ProviderType"` - // The parent resource name for a sync blocker summary. - ParentResourceName *string `min:"1" type:"string"` + // The status of the requested host. + Status *string `min:"1" type:"string"` - // The resource name for sync blocker summary. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` + // The VPC configuration of the requested host. + VpcConfiguration *VpcConfiguration `type:"structure"` } // String returns the string representation. @@ -6568,7 +1839,7 @@ type SyncBlockerSummary struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlockerSummary) String() string { +func (s GetHostOutput) String() string { return awsutil.Prettify(s) } @@ -6577,80 +1848,73 @@ func (s SyncBlockerSummary) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncBlockerSummary) GoString() string { +func (s GetHostOutput) GoString() string { return s.String() } -// SetLatestBlockers sets the LatestBlockers field's value. -func (s *SyncBlockerSummary) SetLatestBlockers(v []*SyncBlocker) *SyncBlockerSummary { - s.LatestBlockers = v +// SetName sets the Name field's value. +func (s *GetHostOutput) SetName(v string) *GetHostOutput { + s.Name = &v + return s +} + +// SetProviderEndpoint sets the ProviderEndpoint field's value. +func (s *GetHostOutput) SetProviderEndpoint(v string) *GetHostOutput { + s.ProviderEndpoint = &v + return s +} + +// SetProviderType sets the ProviderType field's value. +func (s *GetHostOutput) SetProviderType(v string) *GetHostOutput { + s.ProviderType = &v return s } -// SetParentResourceName sets the ParentResourceName field's value. -func (s *SyncBlockerSummary) SetParentResourceName(v string) *SyncBlockerSummary { - s.ParentResourceName = &v +// SetStatus sets the Status field's value. +func (s *GetHostOutput) SetStatus(v string) *GetHostOutput { + s.Status = &v return s } -// SetResourceName sets the ResourceName field's value. -func (s *SyncBlockerSummary) SetResourceName(v string) *SyncBlockerSummary { - s.ResourceName = &v +// SetVpcConfiguration sets the VpcConfiguration field's value. +func (s *GetHostOutput) SetVpcConfiguration(v *VpcConfiguration) *GetHostOutput { + s.VpcConfiguration = v return s } -// Information, such as repository, branch, provider, and resource names for -// a specific sync configuration. -type SyncConfiguration struct { +// A resource that represents the infrastructure where a third-party provider +// is installed. The host is used when you create connections to an installed +// third-party provider type, such as GitHub Enterprise Server. You create one +// host for all connections to that provider. +// +// A host created through the CLI or the SDK is in `PENDING` status by default. +// You can make its status `AVAILABLE` by setting up the host in the console. +type Host struct { _ struct{} `type:"structure"` - // The branch associated with a specific sync configuration. - // - // Branch is a required field - Branch *string `min:"1" type:"string" required:"true"` - - // 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 `type:"string"` - - // The owner ID for the repository associated with a specific sync configuration, - // such as the owner ID in GitHub. - // - // OwnerId is a required field - OwnerId *string `min:"1" type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the host. + HostArn *string `type:"string"` - // The connection provider type associated with a specific sync configuration, - // such as GitHub. - // - // ProviderType is a required field - ProviderType *string `type:"string" required:"true" enum:"ProviderType"` + // The name of the host. + Name *string `min:"1" type:"string"` - // The ID of the repository link associated with a specific sync configuration. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` + // The endpoint of the infrastructure where your provider type is installed. + ProviderEndpoint *string `min:"1" type:"string"` - // The name of the repository associated with a specific sync configuration. - // - // RepositoryName is a required field - RepositoryName *string `min:"1" type:"string" required:"true"` + // The name of the installed provider to be associated with your connection. + // The host resource represents the infrastructure where your provider type + // is installed. The valid provider type is GitHub Enterprise Server. + ProviderType *string `type:"string" enum:"ProviderType"` - // The name of the connection resource associated with a specific sync configuration. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` + // The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING, + // VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION. + Status *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of the IAM role associated with a specific - // sync configuration. - // - // RoleArn is a required field - RoleArn *string `min:"1" type:"string" required:"true"` + // The status description for the host. + StatusMessage *string `type:"string"` - // The type of sync for a specific sync configuration. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` + // The VPC configuration provisioned for the host. + VpcConfiguration *VpcConfiguration `type:"structure"` } // String returns the string representation. @@ -6658,7 +1922,7 @@ type SyncConfiguration struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncConfiguration) String() string { +func (s Host) String() string { return awsutil.Prettify(s) } @@ -6667,66 +1931,54 @@ func (s SyncConfiguration) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncConfiguration) GoString() string { +func (s Host) GoString() string { return s.String() } -// SetBranch sets the Branch field's value. -func (s *SyncConfiguration) SetBranch(v string) *SyncConfiguration { - s.Branch = &v +// SetHostArn sets the HostArn field's value. +func (s *Host) SetHostArn(v string) *Host { + s.HostArn = &v return s } -// SetConfigFile sets the ConfigFile field's value. -func (s *SyncConfiguration) SetConfigFile(v string) *SyncConfiguration { - s.ConfigFile = &v +// SetName sets the Name field's value. +func (s *Host) SetName(v string) *Host { + s.Name = &v return s } -// SetOwnerId sets the OwnerId field's value. -func (s *SyncConfiguration) SetOwnerId(v string) *SyncConfiguration { - s.OwnerId = &v +// SetProviderEndpoint sets the ProviderEndpoint field's value. +func (s *Host) SetProviderEndpoint(v string) *Host { + s.ProviderEndpoint = &v return s } // SetProviderType sets the ProviderType field's value. -func (s *SyncConfiguration) SetProviderType(v string) *SyncConfiguration { +func (s *Host) SetProviderType(v string) *Host { s.ProviderType = &v return s } -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *SyncConfiguration) SetRepositoryLinkId(v string) *SyncConfiguration { - s.RepositoryLinkId = &v - return s -} - -// SetRepositoryName sets the RepositoryName field's value. -func (s *SyncConfiguration) SetRepositoryName(v string) *SyncConfiguration { - s.RepositoryName = &v - return s -} - -// SetResourceName sets the ResourceName field's value. -func (s *SyncConfiguration) SetResourceName(v string) *SyncConfiguration { - s.ResourceName = &v +// SetStatus sets the Status field's value. +func (s *Host) SetStatus(v string) *Host { + s.Status = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *SyncConfiguration) SetRoleArn(v string) *SyncConfiguration { - s.RoleArn = &v +// SetStatusMessage sets the StatusMessage field's value. +func (s *Host) SetStatusMessage(v string) *Host { + s.StatusMessage = &v return s } -// SetSyncType sets the SyncType field's value. -func (s *SyncConfiguration) SetSyncType(v string) *SyncConfiguration { - s.SyncType = &v +// SetVpcConfiguration sets the VpcConfiguration field's value. +func (s *Host) SetVpcConfiguration(v *VpcConfiguration) *Host { + s.VpcConfiguration = v return s } -// Unable to continue. The sync blocker still exists. -type SyncConfigurationStillExistsException struct { +// Exceeded the maximum limit for connections. +type LimitExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -6738,7 +1990,7 @@ type SyncConfigurationStillExistsException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncConfigurationStillExistsException) String() string { +func (s LimitExceededException) String() string { return awsutil.Prettify(s) } @@ -6747,23 +1999,23 @@ func (s SyncConfigurationStillExistsException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s SyncConfigurationStillExistsException) GoString() string { +func (s LimitExceededException) GoString() string { return s.String() } -func newErrorSyncConfigurationStillExistsException(v protocol.ResponseMetadata) error { - return &SyncConfigurationStillExistsException{ +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *SyncConfigurationStillExistsException) Code() string { - return "SyncConfigurationStillExistsException" +func (s *LimitExceededException) Code() string { + return "LimitExceededException" } // Message returns the exception's message. -func (s *SyncConfigurationStillExistsException) Message() string { +func (s *LimitExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -6771,40 +2023,41 @@ func (s *SyncConfigurationStillExistsException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *SyncConfigurationStillExistsException) OrigErr() error { +func (s *LimitExceededException) OrigErr() error { return nil } -func (s *SyncConfigurationStillExistsException) Error() string { +func (s *LimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *SyncConfigurationStillExistsException) StatusCode() int { +func (s *LimitExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *SyncConfigurationStillExistsException) RequestID() string { +func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } -// 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 { +type ListConnectionsInput struct { _ struct{} `type:"structure"` - // The tag's key. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` + // Filters the list of connections to those associated with a specified host. + HostArnFilter *string `type:"string"` - // The tag's value. - // - // Value is a required field - Value *string `type:"string" required:"true"` + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `type:"integer"` + + // The token that was returned from the previous ListConnections call, which + // can be used to return the next set of connections in the list. + NextToken *string `min:"1" type:"string"` + + // Filters the list of connections to those associated with a specified provider, + // such as Bitbucket. + ProviderTypeFilter *string `type:"string" enum:"ProviderType"` } // String returns the string representation. @@ -6812,7 +2065,7 @@ type Tag struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Tag) String() string { +func (s ListConnectionsInput) String() string { return awsutil.Prettify(s) } @@ -6821,21 +2074,15 @@ func (s Tag) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Tag) GoString() string { +func (s ListConnectionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) +func (s *ListConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListConnectionsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -6844,31 +2091,41 @@ func (s *Tag) Validate() error { return nil } -// SetKey sets the Key field's value. -func (s *Tag) SetKey(v string) *Tag { - s.Key = &v +// SetHostArnFilter sets the HostArnFilter field's value. +func (s *ListConnectionsInput) SetHostArnFilter(v string) *ListConnectionsInput { + s.HostArnFilter = &v return s } -// SetValue sets the Value field's value. -func (s *Tag) SetValue(v string) *Tag { - s.Value = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListConnectionsInput) SetMaxResults(v int64) *ListConnectionsInput { + s.MaxResults = &v return s } -type TagResourceInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListConnectionsInput) SetNextToken(v string) *ListConnectionsInput { + s.NextToken = &v + return s +} + +// SetProviderTypeFilter sets the ProviderTypeFilter field's value. +func (s *ListConnectionsInput) SetProviderTypeFilter(v string) *ListConnectionsInput { + s.ProviderTypeFilter = &v + return s +} + +type ListConnectionsOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the resource to which you want to add or - // update tags. - // - // ResourceArn is a required field - ResourceArn *string `min:"1" type:"string" required:"true"` + // A list of connections and the details for each connection, such as status, + // owner, and provider type. + Connections []*Connection `type:"list"` - // The tags you want to modify or add to the resource. - // - // Tags is a required field - Tags []*Tag `type:"list" required:"true"` + // A token that can be used in the next ListConnections call. To view all items + // in the list, continue to call this operation with each subsequent token until + // no more nextToken values are returned. + NextToken *string `min:"1" type:"string"` } // String returns the string representation. @@ -6876,7 +2133,7 @@ type TagResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s TagResourceInput) String() string { +func (s ListConnectionsOutput) String() string { return awsutil.Prettify(s) } @@ -6885,31 +2142,57 @@ func (s TagResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s TagResourceInput) GoString() string { +func (s ListConnectionsOutput) GoString() string { + return s.String() +} + +// SetConnections sets the Connections field's value. +func (s *ListConnectionsOutput) SetConnections(v []*Connection) *ListConnectionsOutput { + s.Connections = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput { + s.NextToken = &v + return s +} + +type ListHostsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `type:"integer"` + + // The token that was returned from the previous ListHosts call, which can be + // used to return the next set of hosts in the list. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListHostsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListHostsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *TagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } +func (s *ListHostsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListHostsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -6918,20 +2201,29 @@ func (s *TagResourceInput) Validate() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { - s.ResourceArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListHostsInput) SetMaxResults(v int64) *ListHostsInput { + s.MaxResults = &v return s } -// SetTags sets the Tags field's value. -func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { - s.Tags = v +// SetNextToken sets the NextToken field's value. +func (s *ListHostsInput) SetNextToken(v string) *ListHostsInput { + s.NextToken = &v return s } -type TagResourceOutput struct { +type ListHostsOutput struct { _ struct{} `type:"structure"` + + // A list of hosts and the details for each host, such as status, endpoint, + // and provider type. + Hosts []*Host `type:"list"` + + // A token that can be used in the next ListHosts call. To view all items in + // the list, continue to call this operation with each subsequent token until + // no more nextToken values are returned. + NextToken *string `min:"1" type:"string"` } // String returns the string representation. @@ -6939,7 +2231,7 @@ type TagResourceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s TagResourceOutput) String() string { +func (s ListHostsOutput) String() string { return awsutil.Prettify(s) } @@ -6948,16 +2240,30 @@ func (s TagResourceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s TagResourceOutput) GoString() string { +func (s ListHostsOutput) GoString() string { return s.String() } -// The request was denied due to request throttling. -type ThrottlingException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetHosts sets the Hosts field's value. +func (s *ListHostsOutput) SetHosts(v []*Host) *ListHostsOutput { + s.Hosts = v + return s +} - Message_ *string `locationName:"Message" type:"string"` +// SetNextToken sets the NextToken field's value. +func (s *ListHostsOutput) SetNextToken(v string) *ListHostsOutput { + s.NextToken = &v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource for which you want to get + // information about tags, if any. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -6965,7 +2271,7 @@ type ThrottlingException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThrottlingException) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -6974,50 +2280,65 @@ func (s ThrottlingException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThrottlingException) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } -func newErrorThrottlingException(v protocol.ResponseMetadata) error { - return &ThrottlingException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } -} -// Code returns the exception type name. -func (s *ThrottlingException) Code() string { - return "ThrottlingException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *ThrottlingException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ThrottlingException) OrigErr() error { - return nil +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of tag key and value pairs associated with the specified resource. + Tags []*Tag `type:"list"` } -func (s *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) } -// Status code returns the HTTP status code for the request's response error. -func (s *ThrottlingException) StatusCode() int { - return s.RespMetadata.StatusCode +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() } -// RequestID returns the service's response RequestID for request. -func (s *ThrottlingException) RequestID() string { - return s.RespMetadata.RequestID +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s } -// The operation is not supported. Check the connection status and try again. -type UnsupportedOperationException struct { +// Resource not found. Verify the connection resource ARN and try again. +type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -7029,7 +2350,7 @@ type UnsupportedOperationException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnsupportedOperationException) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } @@ -7038,23 +2359,23 @@ func (s UnsupportedOperationException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnsupportedOperationException) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { - return &UnsupportedOperationException{ +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *UnsupportedOperationException) Code() string { - return "UnsupportedOperationException" +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" } // Message returns the exception's message. -func (s *UnsupportedOperationException) Message() string { +func (s *ResourceNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -7062,26 +2383,26 @@ func (s *UnsupportedOperationException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *UnsupportedOperationException) OrigErr() error { +func (s *ResourceNotFoundException) OrigErr() error { return nil } -func (s *UnsupportedOperationException) Error() string { +func (s *ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *UnsupportedOperationException) StatusCode() int { +func (s *ResourceNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *UnsupportedOperationException) RequestID() string { +func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } -// The specified provider type is not supported for connections. -type UnsupportedProviderTypeException struct { +// Resource not found. Verify the ARN for the host resource and try again. +type ResourceUnavailableException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -7093,7 +2414,7 @@ type UnsupportedProviderTypeException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnsupportedProviderTypeException) String() string { +func (s ResourceUnavailableException) String() string { return awsutil.Prettify(s) } @@ -7102,23 +2423,23 @@ func (s UnsupportedProviderTypeException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UnsupportedProviderTypeException) GoString() string { +func (s ResourceUnavailableException) GoString() string { return s.String() } -func newErrorUnsupportedProviderTypeException(v protocol.ResponseMetadata) error { - return &UnsupportedProviderTypeException{ +func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { + return &ResourceUnavailableException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *UnsupportedProviderTypeException) Code() string { - return "UnsupportedProviderTypeException" +func (s *ResourceUnavailableException) Code() string { + return "ResourceUnavailableException" } // Message returns the exception's message. -func (s *UnsupportedProviderTypeException) Message() string { +func (s *ResourceUnavailableException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -7126,36 +2447,40 @@ func (s *UnsupportedProviderTypeException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *UnsupportedProviderTypeException) OrigErr() error { +func (s *ResourceUnavailableException) OrigErr() error { return nil } -func (s *UnsupportedProviderTypeException) Error() string { +func (s *ResourceUnavailableException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *UnsupportedProviderTypeException) StatusCode() int { +func (s *ResourceUnavailableException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *UnsupportedProviderTypeException) RequestID() string { +func (s *ResourceUnavailableException) RequestID() string { return s.RespMetadata.RequestID } -type UntagResourceInput struct { +// 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 { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the resource to remove tags from. + // The tag's key. // - // ResourceArn is a required field - ResourceArn *string `min:"1" type:"string" required:"true"` + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` - // The list of keys for the tags to be removed from the resource. + // The tag's value. // - // TagKeys is a required field - TagKeys []*string `type:"list" required:"true"` + // Value is a required field + Value *string `type:"string" required:"true"` } // String returns the string representation. @@ -7163,7 +2488,7 @@ type UntagResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UntagResourceInput) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } @@ -7172,21 +2497,21 @@ func (s UntagResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UntagResourceInput) GoString() string { +func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UntagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) } if invalidParams.Len() > 0 { @@ -7195,55 +2520,31 @@ func (s *UntagResourceInput) Validate() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { - s.ResourceArn = &v +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { - s.TagKeys = v +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v return s } -type UntagResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceOutput) GoString() string { - return s.String() -} - -type UpdateHostInput struct { +type TagResourceInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the host to be updated. + // The Amazon Resource Name (ARN) of the resource to which you want to add or + // update tags. // - // HostArn is a required field - HostArn *string `type:"string" required:"true"` - - // The URL or endpoint of the host to be updated. - ProviderEndpoint *string `min:"1" type:"string"` + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` - // The VPC configuration of the host to be updated. A VPC must be configured - // and the infrastructure to be represented by the host must already be connected - // to the VPC. - VpcConfiguration *VpcConfiguration `type:"structure"` + // The tags you want to modify or add to the resource. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` } // String returns the string representation. @@ -7251,7 +2552,7 @@ type UpdateHostInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateHostInput) String() string { +func (s TagResourceInput) String() string { return awsutil.Prettify(s) } @@ -7260,50 +2561,52 @@ func (s UpdateHostInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateHostInput) GoString() string { +func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateHostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateHostInput"} - if s.HostArn == nil { - invalidParams.Add(request.NewErrParamRequired("HostArn")) +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.ProviderEndpoint != nil && len(*s.ProviderEndpoint) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProviderEndpoint", 1)) + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } - if s.VpcConfiguration != nil { - if err := s.VpcConfiguration.Validate(); err != nil { - invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams)) - } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) } - - if invalidParams.Len() > 0 { - return invalidParams + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } } - return nil -} - -// SetHostArn sets the HostArn field's value. -func (s *UpdateHostInput) SetHostArn(v string) *UpdateHostInput { - s.HostArn = &v - return s + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetProviderEndpoint sets the ProviderEndpoint field's value. -func (s *UpdateHostInput) SetProviderEndpoint(v string) *UpdateHostInput { - s.ProviderEndpoint = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v return s } -// SetVpcConfiguration sets the VpcConfiguration field's value. -func (s *UpdateHostInput) SetVpcConfiguration(v *VpcConfiguration) *UpdateHostInput { - s.VpcConfiguration = v +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v return s } -type UpdateHostOutput struct { +type TagResourceOutput struct { _ struct{} `type:"structure"` } @@ -7312,7 +2615,7 @@ type UpdateHostOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateHostOutput) String() string { +func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } @@ -7321,12 +2624,12 @@ func (s UpdateHostOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateHostOutput) GoString() string { +func (s TagResourceOutput) GoString() string { return s.String() } -// The update is out of sync. Try syncing again. -type UpdateOutOfSyncException struct { +// The operation is not supported. Check the connection status and try again. +type UnsupportedOperationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -7338,7 +2641,7 @@ type UpdateOutOfSyncException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateOutOfSyncException) String() string { +func (s UnsupportedOperationException) String() string { return awsutil.Prettify(s) } @@ -7347,23 +2650,23 @@ func (s UpdateOutOfSyncException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateOutOfSyncException) GoString() string { +func (s UnsupportedOperationException) GoString() string { return s.String() } -func newErrorUpdateOutOfSyncException(v protocol.ResponseMetadata) error { - return &UpdateOutOfSyncException{ +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *UpdateOutOfSyncException) Code() string { - return "UpdateOutOfSyncException" +func (s *UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" } // Message returns the exception's message. -func (s *UpdateOutOfSyncException) Message() string { +func (s *UnsupportedOperationException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -7371,149 +2674,36 @@ func (s *UpdateOutOfSyncException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *UpdateOutOfSyncException) OrigErr() error { +func (s *UnsupportedOperationException) OrigErr() error { return nil } -func (s *UpdateOutOfSyncException) Error() string { +func (s *UnsupportedOperationException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *UpdateOutOfSyncException) StatusCode() int { +func (s *UnsupportedOperationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *UpdateOutOfSyncException) RequestID() string { +func (s *UnsupportedOperationException) RequestID() string { return s.RespMetadata.RequestID } -type UpdateRepositoryLinkInput struct { - _ struct{} `type:"structure"` - - // 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 `type:"string"` - - // The Amazon Resource Name (ARN) of the encryption key for the repository link - // to be updated. - EncryptionKeyArn *string `min:"1" type:"string"` - - // The ID of the repository link to be updated. - // - // RepositoryLinkId is a required field - RepositoryLinkId *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateRepositoryLinkInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateRepositoryLinkInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateRepositoryLinkInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryLinkInput"} - if s.EncryptionKeyArn != nil && len(*s.EncryptionKeyArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EncryptionKeyArn", 1)) - } - if s.RepositoryLinkId == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryLinkId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetConnectionArn sets the ConnectionArn field's value. -func (s *UpdateRepositoryLinkInput) SetConnectionArn(v string) *UpdateRepositoryLinkInput { - s.ConnectionArn = &v - return s -} - -// SetEncryptionKeyArn sets the EncryptionKeyArn field's value. -func (s *UpdateRepositoryLinkInput) SetEncryptionKeyArn(v string) *UpdateRepositoryLinkInput { - s.EncryptionKeyArn = &v - return s -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *UpdateRepositoryLinkInput) SetRepositoryLinkId(v string) *UpdateRepositoryLinkInput { - s.RepositoryLinkId = &v - return s -} - -type UpdateRepositoryLinkOutput struct { - _ struct{} `type:"structure"` - - // Information about the repository link to be updated. - // - // RepositoryLinkInfo is a required field - RepositoryLinkInfo *RepositoryLinkInfo `type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateRepositoryLinkOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateRepositoryLinkOutput) GoString() string { - return s.String() -} - -// SetRepositoryLinkInfo sets the RepositoryLinkInfo field's value. -func (s *UpdateRepositoryLinkOutput) SetRepositoryLinkInfo(v *RepositoryLinkInfo) *UpdateRepositoryLinkOutput { - s.RepositoryLinkInfo = v - return s -} - -type UpdateSyncBlockerInput struct { +type UntagResourceInput struct { _ struct{} `type:"structure"` - // The ID of the sync blocker to be updated. - // - // Id is a required field - Id *string `min:"1" type:"string" required:"true"` - - // The reason for resolving the sync blocker. - // - // ResolvedReason is a required field - ResolvedReason *string `min:"1" type:"string" required:"true"` - - // The name of the resource for the sync blocker to be updated. + // The Amazon Resource Name (ARN) of the resource to remove tags from. // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` - // The sync type of the sync blocker to be updated. + // The list of keys for the tags to be removed from the resource. // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` } // String returns the string representation. @@ -7521,7 +2711,7 @@ type UpdateSyncBlockerInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncBlockerInput) String() string { +func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } @@ -7530,33 +2720,21 @@ func (s UpdateSyncBlockerInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncBlockerInput) GoString() string { +func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSyncBlockerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSyncBlockerInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } - if s.ResolvedReason == nil { - invalidParams.Add(request.NewErrParamRequired("ResolvedReason")) - } - if s.ResolvedReason != nil && len(*s.ResolvedReason) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResolvedReason", 1)) - } - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { @@ -7565,45 +2743,20 @@ func (s *UpdateSyncBlockerInput) Validate() error { return nil } -// SetId sets the Id field's value. -func (s *UpdateSyncBlockerInput) SetId(v string) *UpdateSyncBlockerInput { - s.Id = &v - return s -} - -// SetResolvedReason sets the ResolvedReason field's value. -func (s *UpdateSyncBlockerInput) SetResolvedReason(v string) *UpdateSyncBlockerInput { - s.ResolvedReason = &v - return s -} - -// SetResourceName sets the ResourceName field's value. -func (s *UpdateSyncBlockerInput) SetResourceName(v string) *UpdateSyncBlockerInput { - s.ResourceName = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v return s } -// SetSyncType sets the SyncType field's value. -func (s *UpdateSyncBlockerInput) SetSyncType(v string) *UpdateSyncBlockerInput { - s.SyncType = &v +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v return s } -type UpdateSyncBlockerOutput struct { +type UntagResourceOutput struct { _ struct{} `type:"structure"` - - // The parent resource name for the sync blocker. - ParentResourceName *string `min:"1" type:"string"` - - // The resource name for the sync blocker. - // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` - - // Information about the sync blocker to be updated. - // - // SyncBlocker is a required field - SyncBlocker *SyncBlocker `type:"structure" required:"true"` } // String returns the string representation. @@ -7611,7 +2764,7 @@ type UpdateSyncBlockerOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncBlockerOutput) String() string { +func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } @@ -7620,53 +2773,25 @@ func (s UpdateSyncBlockerOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncBlockerOutput) GoString() string { +func (s UntagResourceOutput) GoString() string { return s.String() } -// SetParentResourceName sets the ParentResourceName field's value. -func (s *UpdateSyncBlockerOutput) SetParentResourceName(v string) *UpdateSyncBlockerOutput { - s.ParentResourceName = &v - return s -} - -// SetResourceName sets the ResourceName field's value. -func (s *UpdateSyncBlockerOutput) SetResourceName(v string) *UpdateSyncBlockerOutput { - s.ResourceName = &v - return s -} - -// SetSyncBlocker sets the SyncBlocker field's value. -func (s *UpdateSyncBlockerOutput) SetSyncBlocker(v *SyncBlocker) *UpdateSyncBlockerOutput { - s.SyncBlocker = v - return s -} - -type UpdateSyncConfigurationInput struct { +type UpdateHostInput struct { _ struct{} `type:"structure"` - // The branch for the sync configuration to be updated. - Branch *string `min:"1" type:"string"` - - // The configuration file for the sync configuration to be updated. - ConfigFile *string `type:"string"` - - // The ID of the repository link for the sync configuration to be updated. - RepositoryLinkId *string `type:"string"` - - // The name of the Amazon Web Services resource for the sync configuration to - // be updated. + // The Amazon Resource Name (ARN) of the host to be updated. // - // ResourceName is a required field - ResourceName *string `min:"1" type:"string" required:"true"` + // HostArn is a required field + HostArn *string `type:"string" required:"true"` - // The ARN of the IAM role for the sync configuration to be updated. - RoleArn *string `min:"1" type:"string"` + // The URL or endpoint of the host to be updated. + ProviderEndpoint *string `min:"1" type:"string"` - // The sync type for the sync configuration to be updated. - // - // SyncType is a required field - SyncType *string `type:"string" required:"true" enum:"SyncConfigurationType"` + // The VPC configuration of the host to be updated. A VPC must be configured + // and the infrastructure to be represented by the host must already be connected + // to the VPC. + VpcConfiguration *VpcConfiguration `type:"structure"` } // String returns the string representation. @@ -7674,7 +2799,7 @@ type UpdateSyncConfigurationInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncConfigurationInput) String() string { +func (s UpdateHostInput) String() string { return awsutil.Prettify(s) } @@ -7683,27 +2808,23 @@ func (s UpdateSyncConfigurationInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncConfigurationInput) GoString() string { +func (s UpdateHostInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSyncConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSyncConfigurationInput"} - if s.Branch != nil && len(*s.Branch) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) - } - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) - } - if s.ResourceName != nil && len(*s.ResourceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1)) +func (s *UpdateHostInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateHostInput"} + if s.HostArn == nil { + invalidParams.Add(request.NewErrParamRequired("HostArn")) } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) + if s.ProviderEndpoint != nil && len(*s.ProviderEndpoint) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProviderEndpoint", 1)) } - if s.SyncType == nil { - invalidParams.Add(request.NewErrParamRequired("SyncType")) + if s.VpcConfiguration != nil { + if err := s.VpcConfiguration.Validate(); err != nil { + invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -7712,49 +2833,26 @@ func (s *UpdateSyncConfigurationInput) Validate() error { return nil } -// SetBranch sets the Branch field's value. -func (s *UpdateSyncConfigurationInput) SetBranch(v string) *UpdateSyncConfigurationInput { - s.Branch = &v - return s -} - -// SetConfigFile sets the ConfigFile field's value. -func (s *UpdateSyncConfigurationInput) SetConfigFile(v string) *UpdateSyncConfigurationInput { - s.ConfigFile = &v - return s -} - -// SetRepositoryLinkId sets the RepositoryLinkId field's value. -func (s *UpdateSyncConfigurationInput) SetRepositoryLinkId(v string) *UpdateSyncConfigurationInput { - s.RepositoryLinkId = &v - return s -} - -// SetResourceName sets the ResourceName field's value. -func (s *UpdateSyncConfigurationInput) SetResourceName(v string) *UpdateSyncConfigurationInput { - s.ResourceName = &v +// SetHostArn sets the HostArn field's value. +func (s *UpdateHostInput) SetHostArn(v string) *UpdateHostInput { + s.HostArn = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *UpdateSyncConfigurationInput) SetRoleArn(v string) *UpdateSyncConfigurationInput { - s.RoleArn = &v +// SetProviderEndpoint sets the ProviderEndpoint field's value. +func (s *UpdateHostInput) SetProviderEndpoint(v string) *UpdateHostInput { + s.ProviderEndpoint = &v return s } -// SetSyncType sets the SyncType field's value. -func (s *UpdateSyncConfigurationInput) SetSyncType(v string) *UpdateSyncConfigurationInput { - s.SyncType = &v +// SetVpcConfiguration sets the VpcConfiguration field's value. +func (s *UpdateHostInput) SetVpcConfiguration(v *VpcConfiguration) *UpdateHostInput { + s.VpcConfiguration = v return s } -type UpdateSyncConfigurationOutput struct { +type UpdateHostOutput struct { _ struct{} `type:"structure"` - - // The information returned for the sync configuration to be updated. - // - // SyncConfiguration is a required field - SyncConfiguration *SyncConfiguration `type:"structure" required:"true"` } // String returns the string representation. @@ -7762,7 +2860,7 @@ type UpdateSyncConfigurationOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncConfigurationOutput) String() string { +func (s UpdateHostOutput) String() string { return awsutil.Prettify(s) } @@ -7771,16 +2869,10 @@ func (s UpdateSyncConfigurationOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s UpdateSyncConfigurationOutput) GoString() string { +func (s UpdateHostOutput) GoString() string { return s.String() } -// SetSyncConfiguration sets the SyncConfiguration field's value. -func (s *UpdateSyncConfigurationOutput) SetSyncConfiguration(v *SyncConfiguration) *UpdateSyncConfigurationOutput { - s.SyncConfiguration = v - return s -} - // The VPC configuration provisioned for the host. type VpcConfiguration struct { _ struct{} `type:"structure"` @@ -7881,34 +2973,6 @@ func (s *VpcConfiguration) SetVpcId(v string) *VpcConfiguration { return s } -const ( - // BlockerStatusActive is a BlockerStatus enum value - BlockerStatusActive = "ACTIVE" - - // BlockerStatusResolved is a BlockerStatus enum value - BlockerStatusResolved = "RESOLVED" -) - -// BlockerStatus_Values returns all elements of the BlockerStatus enum -func BlockerStatus_Values() []string { - return []string{ - BlockerStatusActive, - BlockerStatusResolved, - } -} - -const ( - // BlockerTypeAutomated is a BlockerType enum value - BlockerTypeAutomated = "AUTOMATED" -) - -// BlockerType_Values returns all elements of the BlockerType enum -func BlockerType_Values() []string { - return []string{ - BlockerTypeAutomated, - } -} - const ( // ConnectionStatusPending is a ConnectionStatus enum value ConnectionStatusPending = "PENDING" @@ -7952,67 +3016,3 @@ func ProviderType_Values() []string { ProviderTypeGitLab, } } - -const ( - // RepositorySyncStatusFailed is a RepositorySyncStatus enum value - RepositorySyncStatusFailed = "FAILED" - - // RepositorySyncStatusInitiated is a RepositorySyncStatus enum value - RepositorySyncStatusInitiated = "INITIATED" - - // RepositorySyncStatusInProgress is a RepositorySyncStatus enum value - RepositorySyncStatusInProgress = "IN_PROGRESS" - - // RepositorySyncStatusSucceeded is a RepositorySyncStatus enum value - RepositorySyncStatusSucceeded = "SUCCEEDED" - - // RepositorySyncStatusQueued is a RepositorySyncStatus enum value - RepositorySyncStatusQueued = "QUEUED" -) - -// RepositorySyncStatus_Values returns all elements of the RepositorySyncStatus enum -func RepositorySyncStatus_Values() []string { - return []string{ - RepositorySyncStatusFailed, - RepositorySyncStatusInitiated, - RepositorySyncStatusInProgress, - RepositorySyncStatusSucceeded, - RepositorySyncStatusQueued, - } -} - -const ( - // ResourceSyncStatusFailed is a ResourceSyncStatus enum value - ResourceSyncStatusFailed = "FAILED" - - // ResourceSyncStatusInitiated is a ResourceSyncStatus enum value - ResourceSyncStatusInitiated = "INITIATED" - - // ResourceSyncStatusInProgress is a ResourceSyncStatus enum value - ResourceSyncStatusInProgress = "IN_PROGRESS" - - // ResourceSyncStatusSucceeded is a ResourceSyncStatus enum value - ResourceSyncStatusSucceeded = "SUCCEEDED" -) - -// ResourceSyncStatus_Values returns all elements of the ResourceSyncStatus enum -func ResourceSyncStatus_Values() []string { - return []string{ - ResourceSyncStatusFailed, - ResourceSyncStatusInitiated, - ResourceSyncStatusInProgress, - ResourceSyncStatusSucceeded, - } -} - -const ( - // SyncConfigurationTypeCfnStackSync is a SyncConfigurationType enum value - SyncConfigurationTypeCfnStackSync = "CFN_STACK_SYNC" -) - -// SyncConfigurationType_Values returns all elements of the SyncConfigurationType enum -func SyncConfigurationType_Values() []string { - return []string{ - SyncConfigurationTypeCfnStackSync, - } -} diff --git a/service/codestarconnections/codestarconnectionsiface/interface.go b/service/codestarconnections/codestarconnectionsiface/interface.go index fd26f3fd334..902cf7e5142 100644 --- a/service/codestarconnections/codestarconnectionsiface/interface.go +++ b/service/codestarconnections/codestarconnectionsiface/interface.go @@ -68,14 +68,6 @@ type CodeStarConnectionsAPI interface { CreateHostWithContext(aws.Context, *codestarconnections.CreateHostInput, ...request.Option) (*codestarconnections.CreateHostOutput, error) CreateHostRequest(*codestarconnections.CreateHostInput) (*request.Request, *codestarconnections.CreateHostOutput) - CreateRepositoryLink(*codestarconnections.CreateRepositoryLinkInput) (*codestarconnections.CreateRepositoryLinkOutput, error) - CreateRepositoryLinkWithContext(aws.Context, *codestarconnections.CreateRepositoryLinkInput, ...request.Option) (*codestarconnections.CreateRepositoryLinkOutput, error) - CreateRepositoryLinkRequest(*codestarconnections.CreateRepositoryLinkInput) (*request.Request, *codestarconnections.CreateRepositoryLinkOutput) - - CreateSyncConfiguration(*codestarconnections.CreateSyncConfigurationInput) (*codestarconnections.CreateSyncConfigurationOutput, error) - CreateSyncConfigurationWithContext(aws.Context, *codestarconnections.CreateSyncConfigurationInput, ...request.Option) (*codestarconnections.CreateSyncConfigurationOutput, error) - CreateSyncConfigurationRequest(*codestarconnections.CreateSyncConfigurationInput) (*request.Request, *codestarconnections.CreateSyncConfigurationOutput) - DeleteConnection(*codestarconnections.DeleteConnectionInput) (*codestarconnections.DeleteConnectionOutput, error) DeleteConnectionWithContext(aws.Context, *codestarconnections.DeleteConnectionInput, ...request.Option) (*codestarconnections.DeleteConnectionOutput, error) DeleteConnectionRequest(*codestarconnections.DeleteConnectionInput) (*request.Request, *codestarconnections.DeleteConnectionOutput) @@ -84,14 +76,6 @@ type CodeStarConnectionsAPI interface { DeleteHostWithContext(aws.Context, *codestarconnections.DeleteHostInput, ...request.Option) (*codestarconnections.DeleteHostOutput, error) DeleteHostRequest(*codestarconnections.DeleteHostInput) (*request.Request, *codestarconnections.DeleteHostOutput) - DeleteRepositoryLink(*codestarconnections.DeleteRepositoryLinkInput) (*codestarconnections.DeleteRepositoryLinkOutput, error) - DeleteRepositoryLinkWithContext(aws.Context, *codestarconnections.DeleteRepositoryLinkInput, ...request.Option) (*codestarconnections.DeleteRepositoryLinkOutput, error) - DeleteRepositoryLinkRequest(*codestarconnections.DeleteRepositoryLinkInput) (*request.Request, *codestarconnections.DeleteRepositoryLinkOutput) - - DeleteSyncConfiguration(*codestarconnections.DeleteSyncConfigurationInput) (*codestarconnections.DeleteSyncConfigurationOutput, error) - DeleteSyncConfigurationWithContext(aws.Context, *codestarconnections.DeleteSyncConfigurationInput, ...request.Option) (*codestarconnections.DeleteSyncConfigurationOutput, error) - DeleteSyncConfigurationRequest(*codestarconnections.DeleteSyncConfigurationInput) (*request.Request, *codestarconnections.DeleteSyncConfigurationOutput) - GetConnection(*codestarconnections.GetConnectionInput) (*codestarconnections.GetConnectionOutput, error) GetConnectionWithContext(aws.Context, *codestarconnections.GetConnectionInput, ...request.Option) (*codestarconnections.GetConnectionOutput, error) GetConnectionRequest(*codestarconnections.GetConnectionInput) (*request.Request, *codestarconnections.GetConnectionOutput) @@ -100,26 +84,6 @@ type CodeStarConnectionsAPI interface { GetHostWithContext(aws.Context, *codestarconnections.GetHostInput, ...request.Option) (*codestarconnections.GetHostOutput, error) GetHostRequest(*codestarconnections.GetHostInput) (*request.Request, *codestarconnections.GetHostOutput) - GetRepositoryLink(*codestarconnections.GetRepositoryLinkInput) (*codestarconnections.GetRepositoryLinkOutput, error) - GetRepositoryLinkWithContext(aws.Context, *codestarconnections.GetRepositoryLinkInput, ...request.Option) (*codestarconnections.GetRepositoryLinkOutput, error) - GetRepositoryLinkRequest(*codestarconnections.GetRepositoryLinkInput) (*request.Request, *codestarconnections.GetRepositoryLinkOutput) - - GetRepositorySyncStatus(*codestarconnections.GetRepositorySyncStatusInput) (*codestarconnections.GetRepositorySyncStatusOutput, error) - GetRepositorySyncStatusWithContext(aws.Context, *codestarconnections.GetRepositorySyncStatusInput, ...request.Option) (*codestarconnections.GetRepositorySyncStatusOutput, error) - GetRepositorySyncStatusRequest(*codestarconnections.GetRepositorySyncStatusInput) (*request.Request, *codestarconnections.GetRepositorySyncStatusOutput) - - GetResourceSyncStatus(*codestarconnections.GetResourceSyncStatusInput) (*codestarconnections.GetResourceSyncStatusOutput, error) - GetResourceSyncStatusWithContext(aws.Context, *codestarconnections.GetResourceSyncStatusInput, ...request.Option) (*codestarconnections.GetResourceSyncStatusOutput, error) - GetResourceSyncStatusRequest(*codestarconnections.GetResourceSyncStatusInput) (*request.Request, *codestarconnections.GetResourceSyncStatusOutput) - - GetSyncBlockerSummary(*codestarconnections.GetSyncBlockerSummaryInput) (*codestarconnections.GetSyncBlockerSummaryOutput, error) - GetSyncBlockerSummaryWithContext(aws.Context, *codestarconnections.GetSyncBlockerSummaryInput, ...request.Option) (*codestarconnections.GetSyncBlockerSummaryOutput, error) - GetSyncBlockerSummaryRequest(*codestarconnections.GetSyncBlockerSummaryInput) (*request.Request, *codestarconnections.GetSyncBlockerSummaryOutput) - - GetSyncConfiguration(*codestarconnections.GetSyncConfigurationInput) (*codestarconnections.GetSyncConfigurationOutput, error) - GetSyncConfigurationWithContext(aws.Context, *codestarconnections.GetSyncConfigurationInput, ...request.Option) (*codestarconnections.GetSyncConfigurationOutput, error) - GetSyncConfigurationRequest(*codestarconnections.GetSyncConfigurationInput) (*request.Request, *codestarconnections.GetSyncConfigurationOutput) - ListConnections(*codestarconnections.ListConnectionsInput) (*codestarconnections.ListConnectionsOutput, error) ListConnectionsWithContext(aws.Context, *codestarconnections.ListConnectionsInput, ...request.Option) (*codestarconnections.ListConnectionsOutput, error) ListConnectionsRequest(*codestarconnections.ListConnectionsInput) (*request.Request, *codestarconnections.ListConnectionsOutput) @@ -134,24 +98,6 @@ type CodeStarConnectionsAPI interface { ListHostsPages(*codestarconnections.ListHostsInput, func(*codestarconnections.ListHostsOutput, bool) bool) error ListHostsPagesWithContext(aws.Context, *codestarconnections.ListHostsInput, func(*codestarconnections.ListHostsOutput, bool) bool, ...request.Option) error - ListRepositoryLinks(*codestarconnections.ListRepositoryLinksInput) (*codestarconnections.ListRepositoryLinksOutput, error) - ListRepositoryLinksWithContext(aws.Context, *codestarconnections.ListRepositoryLinksInput, ...request.Option) (*codestarconnections.ListRepositoryLinksOutput, error) - ListRepositoryLinksRequest(*codestarconnections.ListRepositoryLinksInput) (*request.Request, *codestarconnections.ListRepositoryLinksOutput) - - ListRepositoryLinksPages(*codestarconnections.ListRepositoryLinksInput, func(*codestarconnections.ListRepositoryLinksOutput, bool) bool) error - ListRepositoryLinksPagesWithContext(aws.Context, *codestarconnections.ListRepositoryLinksInput, func(*codestarconnections.ListRepositoryLinksOutput, bool) bool, ...request.Option) error - - ListRepositorySyncDefinitions(*codestarconnections.ListRepositorySyncDefinitionsInput) (*codestarconnections.ListRepositorySyncDefinitionsOutput, error) - ListRepositorySyncDefinitionsWithContext(aws.Context, *codestarconnections.ListRepositorySyncDefinitionsInput, ...request.Option) (*codestarconnections.ListRepositorySyncDefinitionsOutput, error) - ListRepositorySyncDefinitionsRequest(*codestarconnections.ListRepositorySyncDefinitionsInput) (*request.Request, *codestarconnections.ListRepositorySyncDefinitionsOutput) - - ListSyncConfigurations(*codestarconnections.ListSyncConfigurationsInput) (*codestarconnections.ListSyncConfigurationsOutput, error) - ListSyncConfigurationsWithContext(aws.Context, *codestarconnections.ListSyncConfigurationsInput, ...request.Option) (*codestarconnections.ListSyncConfigurationsOutput, error) - ListSyncConfigurationsRequest(*codestarconnections.ListSyncConfigurationsInput) (*request.Request, *codestarconnections.ListSyncConfigurationsOutput) - - ListSyncConfigurationsPages(*codestarconnections.ListSyncConfigurationsInput, func(*codestarconnections.ListSyncConfigurationsOutput, bool) bool) error - ListSyncConfigurationsPagesWithContext(aws.Context, *codestarconnections.ListSyncConfigurationsInput, func(*codestarconnections.ListSyncConfigurationsOutput, bool) bool, ...request.Option) error - ListTagsForResource(*codestarconnections.ListTagsForResourceInput) (*codestarconnections.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *codestarconnections.ListTagsForResourceInput, ...request.Option) (*codestarconnections.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*codestarconnections.ListTagsForResourceInput) (*request.Request, *codestarconnections.ListTagsForResourceOutput) @@ -167,18 +113,6 @@ type CodeStarConnectionsAPI interface { UpdateHost(*codestarconnections.UpdateHostInput) (*codestarconnections.UpdateHostOutput, error) UpdateHostWithContext(aws.Context, *codestarconnections.UpdateHostInput, ...request.Option) (*codestarconnections.UpdateHostOutput, error) UpdateHostRequest(*codestarconnections.UpdateHostInput) (*request.Request, *codestarconnections.UpdateHostOutput) - - UpdateRepositoryLink(*codestarconnections.UpdateRepositoryLinkInput) (*codestarconnections.UpdateRepositoryLinkOutput, error) - UpdateRepositoryLinkWithContext(aws.Context, *codestarconnections.UpdateRepositoryLinkInput, ...request.Option) (*codestarconnections.UpdateRepositoryLinkOutput, error) - UpdateRepositoryLinkRequest(*codestarconnections.UpdateRepositoryLinkInput) (*request.Request, *codestarconnections.UpdateRepositoryLinkOutput) - - UpdateSyncBlocker(*codestarconnections.UpdateSyncBlockerInput) (*codestarconnections.UpdateSyncBlockerOutput, error) - UpdateSyncBlockerWithContext(aws.Context, *codestarconnections.UpdateSyncBlockerInput, ...request.Option) (*codestarconnections.UpdateSyncBlockerOutput, error) - UpdateSyncBlockerRequest(*codestarconnections.UpdateSyncBlockerInput) (*request.Request, *codestarconnections.UpdateSyncBlockerOutput) - - UpdateSyncConfiguration(*codestarconnections.UpdateSyncConfigurationInput) (*codestarconnections.UpdateSyncConfigurationOutput, error) - UpdateSyncConfigurationWithContext(aws.Context, *codestarconnections.UpdateSyncConfigurationInput, ...request.Option) (*codestarconnections.UpdateSyncConfigurationOutput, error) - UpdateSyncConfigurationRequest(*codestarconnections.UpdateSyncConfigurationInput) (*request.Request, *codestarconnections.UpdateSyncConfigurationOutput) } var _ CodeStarConnectionsAPI = (*codestarconnections.CodeStarConnections)(nil) diff --git a/service/codestarconnections/errors.go b/service/codestarconnections/errors.go index 270e0c07c32..e29878b6028 100644 --- a/service/codestarconnections/errors.go +++ b/service/codestarconnections/errors.go @@ -8,56 +8,18 @@ import ( const ( - // ErrCodeAccessDeniedException for service response error code - // "AccessDeniedException". - // - // You do not have sufficient access to perform this action. - ErrCodeAccessDeniedException = "AccessDeniedException" - - // ErrCodeConcurrentModificationException for service response error code - // "ConcurrentModificationException". - // - // 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. - ErrCodeConcurrentModificationException = "ConcurrentModificationException" - - // ErrCodeConditionalCheckFailedException for service response error code - // "ConditionalCheckFailedException". - // - // The conditional check failed. Try again later. - ErrCodeConditionalCheckFailedException = "ConditionalCheckFailedException" - // ErrCodeConflictException for service response error code // "ConflictException". // // Two conflicting operations have been made on the same resource. ErrCodeConflictException = "ConflictException" - // ErrCodeInternalServerException for service response error code - // "InternalServerException". - // - // Received an internal server exception. Try again later. - ErrCodeInternalServerException = "InternalServerException" - - // ErrCodeInvalidInputException for service response error code - // "InvalidInputException". - // - // The input is not valid. Verify that the action is typed correctly. - ErrCodeInvalidInputException = "InvalidInputException" - // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // Exceeded the maximum limit for connections. ErrCodeLimitExceededException = "LimitExceededException" - // ErrCodeResourceAlreadyExistsException for service response error code - // "ResourceAlreadyExistsException". - // - // Unable to create resource. Resource already exists. - ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" - // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // @@ -70,65 +32,17 @@ const ( // Resource not found. Verify the ARN for the host resource and try again. ErrCodeResourceUnavailableException = "ResourceUnavailableException" - // ErrCodeRetryLatestCommitFailedException for service response error code - // "RetryLatestCommitFailedException". - // - // Retrying the latest commit failed. Try again later. - ErrCodeRetryLatestCommitFailedException = "RetryLatestCommitFailedException" - - // ErrCodeSyncBlockerDoesNotExistException for service response error code - // "SyncBlockerDoesNotExistException". - // - // Unable to continue. The sync blocker does not exist. - ErrCodeSyncBlockerDoesNotExistException = "SyncBlockerDoesNotExistException" - - // ErrCodeSyncConfigurationStillExistsException for service response error code - // "SyncConfigurationStillExistsException". - // - // Unable to continue. The sync blocker still exists. - ErrCodeSyncConfigurationStillExistsException = "SyncConfigurationStillExistsException" - - // ErrCodeThrottlingException for service response error code - // "ThrottlingException". - // - // The request was denied due to request throttling. - ErrCodeThrottlingException = "ThrottlingException" - // ErrCodeUnsupportedOperationException for service response error code // "UnsupportedOperationException". // // The operation is not supported. Check the connection status and try again. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" - - // ErrCodeUnsupportedProviderTypeException for service response error code - // "UnsupportedProviderTypeException". - // - // The specified provider type is not supported for connections. - ErrCodeUnsupportedProviderTypeException = "UnsupportedProviderTypeException" - - // ErrCodeUpdateOutOfSyncException for service response error code - // "UpdateOutOfSyncException". - // - // The update is out of sync. Try syncing again. - ErrCodeUpdateOutOfSyncException = "UpdateOutOfSyncException" ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "AccessDeniedException": newErrorAccessDeniedException, - "ConcurrentModificationException": newErrorConcurrentModificationException, - "ConditionalCheckFailedException": newErrorConditionalCheckFailedException, - "ConflictException": newErrorConflictException, - "InternalServerException": newErrorInternalServerException, - "InvalidInputException": newErrorInvalidInputException, - "LimitExceededException": newErrorLimitExceededException, - "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, - "ResourceNotFoundException": newErrorResourceNotFoundException, - "ResourceUnavailableException": newErrorResourceUnavailableException, - "RetryLatestCommitFailedException": newErrorRetryLatestCommitFailedException, - "SyncBlockerDoesNotExistException": newErrorSyncBlockerDoesNotExistException, - "SyncConfigurationStillExistsException": newErrorSyncConfigurationStillExistsException, - "ThrottlingException": newErrorThrottlingException, - "UnsupportedOperationException": newErrorUnsupportedOperationException, - "UnsupportedProviderTypeException": newErrorUnsupportedProviderTypeException, - "UpdateOutOfSyncException": newErrorUpdateOutOfSyncException, + "ConflictException": newErrorConflictException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceUnavailableException": newErrorResourceUnavailableException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, } diff --git a/service/docdb/api.go b/service/docdb/api.go index 44a7dcafe7a..935a706090a 100644 --- a/service/docdb/api.go +++ b/service/docdb/api.go @@ -6636,6 +6636,20 @@ type CreateDBClusterInput struct { // Specifies whether the cluster is encrypted. StorageEncrypted *bool `type:"boolean"` + // 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 `type:"string"` + // The tags to be assigned to the cluster. Tags []*Tag `locationNameList:"Tag" type:"list"` @@ -6800,6 +6814,12 @@ func (s *CreateDBClusterInput) SetStorageEncrypted(v bool) *CreateDBClusterInput return s } +// SetStorageType sets the StorageType field's value. +func (s *CreateDBClusterInput) SetStorageType(v string) *CreateDBClusterInput { + s.StorageType = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateDBClusterInput) SetTags(v []*Tag) *CreateDBClusterInput { s.Tags = v @@ -7885,6 +7905,18 @@ type DBCluster struct { // Specifies whether the cluster is encrypted. StorageEncrypted *bool `type:"boolean"` + // 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 `type:"string"` + // Provides a list of virtual private cloud (VPC) security groups that the cluster // belongs to. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"` @@ -8094,6 +8126,12 @@ func (s *DBCluster) SetStorageEncrypted(v bool) *DBCluster { return s } +// SetStorageType sets the StorageType field's value. +func (s *DBCluster) SetStorageType(v string) *DBCluster { + s.StorageType = &v + return s +} + // SetVpcSecurityGroups sets the VpcSecurityGroups field's value. func (s *DBCluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBCluster { s.VpcSecurityGroups = v @@ -8333,6 +8371,16 @@ type DBClusterSnapshot struct { // Specifies whether the cluster snapshot is encrypted. StorageEncrypted *bool `type:"boolean"` + // 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 `type:"string"` + // Provides the virtual private cloud (VPC) ID that is associated with the cluster // snapshot. VpcId *string `type:"string"` @@ -8452,6 +8500,12 @@ func (s *DBClusterSnapshot) SetStorageEncrypted(v bool) *DBClusterSnapshot { return s } +// SetStorageType sets the StorageType field's value. +func (s *DBClusterSnapshot) SetStorageType(v string) *DBClusterSnapshot { + s.StorageType = &v + return s +} + // SetVpcId sets the VpcId field's value. func (s *DBClusterSnapshot) SetVpcId(v string) *DBClusterSnapshot { s.VpcId = &v @@ -12910,6 +12964,16 @@ type ModifyDBClusterInput struct { // Constraints: Minimum 30-minute window. PreferredMaintenanceWindow *string `type:"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 `type:"string"` + // A list of virtual private cloud (VPC) security groups that the cluster will // belong to. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` @@ -13024,6 +13088,12 @@ func (s *ModifyDBClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyDB return s } +// SetStorageType sets the StorageType field's value. +func (s *ModifyDBClusterInput) SetStorageType(v string) *ModifyDBClusterInput { + s.StorageType = &v + return s +} + // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. func (s *ModifyDBClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBClusterInput { s.VpcSecurityGroupIds = v @@ -13909,6 +13979,9 @@ type OrderableDBInstanceOption struct { // The license model for an instance. LicenseModel *string `type:"string"` + // The storage type to associate with the DB cluster + StorageType *string `type:"string"` + // Indicates whether an instance is in a virtual private cloud (VPC). Vpc *bool `type:"boolean"` } @@ -13961,6 +14034,12 @@ func (s *OrderableDBInstanceOption) SetLicenseModel(v string) *OrderableDBInstan return s } +// SetStorageType sets the StorageType field's value. +func (s *OrderableDBInstanceOption) SetStorageType(v string) *OrderableDBInstanceOption { + s.StorageType = &v + return s +} + // SetVpc sets the Vpc field's value. func (s *OrderableDBInstanceOption) SetVpc(v bool) *OrderableDBInstanceOption { s.Vpc = &v @@ -14993,6 +15072,16 @@ type RestoreDBClusterFromSnapshotInput struct { // SnapshotIdentifier is a required field SnapshotIdentifier *string `type:"string" required:"true"` + // 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 `type:"string"` + // The tags to be assigned to the restored cluster. Tags []*Tag `locationNameList:"Tag" type:"list"` @@ -15104,6 +15193,12 @@ func (s *RestoreDBClusterFromSnapshotInput) SetSnapshotIdentifier(v string) *Res return s } +// SetStorageType sets the StorageType field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetStorageType(v string) *RestoreDBClusterFromSnapshotInput { + s.StorageType = &v + return s +} + // SetTags sets the Tags field's value. func (s *RestoreDBClusterFromSnapshotInput) SetTags(v []*Tag) *RestoreDBClusterFromSnapshotInput { s.Tags = v @@ -15255,6 +15350,16 @@ type RestoreDBClusterToPointInTimeInput struct { // SourceDBClusterIdentifier is a required field SourceDBClusterIdentifier *string `type:"string" required:"true"` + // 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 `type:"string"` + // The tags to be assigned to the restored cluster. Tags []*Tag `locationNameList:"Tag" type:"list"` @@ -15358,6 +15463,12 @@ func (s *RestoreDBClusterToPointInTimeInput) SetSourceDBClusterIdentifier(v stri return s } +// SetStorageType sets the StorageType field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetStorageType(v string) *RestoreDBClusterToPointInTimeInput { + s.StorageType = &v + return s +} + // SetTags sets the Tags field's value. func (s *RestoreDBClusterToPointInTimeInput) SetTags(v []*Tag) *RestoreDBClusterToPointInTimeInput { s.Tags = v diff --git a/service/ec2/api.go b/service/ec2/api.go index 0188aa96fa2..77246fe6c9b 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -3129,6 +3129,11 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE // // 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. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -28952,8 +28957,9 @@ func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGrou // DescribeSecurityGroupReferences API operation for Amazon Elastic Compute Cloud. // -// 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. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -30323,8 +30329,12 @@ func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGro // // 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. +// same 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. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -80015,6 +80025,24 @@ type CreateTransitGatewayVpcAttachmentRequestOptions struct { // Enable or disable IPv6 support. The default is disable. Ipv6Support *string `type:"string" enum:"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 *string `type:"string" enum:"SecurityGroupReferencingSupportValue"` } // String returns the string representation. @@ -80053,6 +80081,12 @@ func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v strin return s } +// SetSecurityGroupReferencingSupport sets the SecurityGroupReferencingSupport field's value. +func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetSecurityGroupReferencingSupport(v string) *CreateTransitGatewayVpcAttachmentRequestOptions { + s.SecurityGroupReferencingSupport = &v + return s +} + // Describes the network interface options when creating an Amazon Web Services // Verified Access endpoint using the network-interface type. type CreateVerifiedAccessEndpointEniOptions struct { @@ -152035,6 +152069,20 @@ type ModifyTransitGatewayOptions struct { // Removes CIDR blocks for the transit gateway. RemoveTransitGatewayCidrBlocks []*string `locationNameList:"item" type:"list"` + // 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 *string `type:"string" enum:"SecurityGroupReferencingSupportValue"` + // Enable or disable Equal Cost Multipath Protocol support. VpnEcmpSupport *string `type:"string" enum:"VpnEcmpSupportValue"` } @@ -152111,6 +152159,12 @@ func (s *ModifyTransitGatewayOptions) SetRemoveTransitGatewayCidrBlocks(v []*str return s } +// SetSecurityGroupReferencingSupport sets the SecurityGroupReferencingSupport field's value. +func (s *ModifyTransitGatewayOptions) SetSecurityGroupReferencingSupport(v string) *ModifyTransitGatewayOptions { + s.SecurityGroupReferencingSupport = &v + return s +} + // SetVpnEcmpSupport sets the VpnEcmpSupport field's value. func (s *ModifyTransitGatewayOptions) SetVpnEcmpSupport(v string) *ModifyTransitGatewayOptions { s.VpnEcmpSupport = &v @@ -152400,6 +152454,20 @@ type ModifyTransitGatewayVpcAttachmentRequestOptions struct { // Enable or disable IPv6 support. The default is enable. Ipv6Support *string `type:"string" enum:"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 *string `type:"string" enum:"SecurityGroupReferencingSupportValue"` } // String returns the string representation. @@ -152438,6 +152506,12 @@ func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v strin return s } +// SetSecurityGroupReferencingSupport sets the SecurityGroupReferencingSupport field's value. +func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetSecurityGroupReferencingSupport(v string) *ModifyTransitGatewayVpcAttachmentRequestOptions { + s.SecurityGroupReferencingSupport = &v + return s +} + // Describes the options when modifying a Verified Access endpoint with the // network-interface type. type ModifyVerifiedAccessEndpointEniOptions struct { @@ -162666,7 +162740,7 @@ type ReferencedSecurityGroup struct { // The ID of the VPC. VpcId *string `locationName:"vpcId" type:"string"` - // The ID of the VPC peering connection. + // The ID of the VPC peering connection (if applicable). VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` } @@ -173060,7 +173134,16 @@ type SecurityGroupReference struct { // The ID of the VPC with the referencing security group. ReferencingVpcId *string `locationName:"referencingVpcId" type:"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 `locationName:"transitGatewayId" type:"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 `locationName:"vpcPeeringConnectionId" type:"string"` } @@ -173094,6 +173177,12 @@ func (s *SecurityGroupReference) SetReferencingVpcId(v string) *SecurityGroupRef return s } +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *SecurityGroupReference) SetTransitGatewayId(v string) *SecurityGroupReference { + s.TransitGatewayId = &v + return s +} + // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. func (s *SecurityGroupReference) SetVpcPeeringConnectionId(v string) *SecurityGroupReference { s.VpcPeeringConnectionId = &v @@ -181333,6 +181422,20 @@ type TransitGatewayOptions struct { // The ID of the default propagation route table. PropagationDefaultRouteTableId *string `locationName:"propagationDefaultRouteTableId" type:"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 *string `locationName:"securityGroupReferencingSupport" type:"string" enum:"SecurityGroupReferencingSupportValue"` + // The transit gateway CIDR blocks. TransitGatewayCidrBlocks []*string `locationName:"transitGatewayCidrBlocks" locationNameList:"item" type:"list"` @@ -181406,6 +181509,12 @@ func (s *TransitGatewayOptions) SetPropagationDefaultRouteTableId(v string) *Tra return s } +// SetSecurityGroupReferencingSupport sets the SecurityGroupReferencingSupport field's value. +func (s *TransitGatewayOptions) SetSecurityGroupReferencingSupport(v string) *TransitGatewayOptions { + s.SecurityGroupReferencingSupport = &v + return s +} + // SetTransitGatewayCidrBlocks sets the TransitGatewayCidrBlocks field's value. func (s *TransitGatewayOptions) SetTransitGatewayCidrBlocks(v []*string) *TransitGatewayOptions { s.TransitGatewayCidrBlocks = v @@ -182093,6 +182202,20 @@ type TransitGatewayRequestOptions struct { // Indicates whether multicast is enabled on the transit gateway MulticastSupport *string `type:"string" enum:"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 *string `type:"string" enum:"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. @@ -182156,6 +182279,12 @@ func (s *TransitGatewayRequestOptions) SetMulticastSupport(v string) *TransitGat return s } +// SetSecurityGroupReferencingSupport sets the SecurityGroupReferencingSupport field's value. +func (s *TransitGatewayRequestOptions) SetSecurityGroupReferencingSupport(v string) *TransitGatewayRequestOptions { + s.SecurityGroupReferencingSupport = &v + return s +} + // SetTransitGatewayCidrBlocks sets the TransitGatewayCidrBlocks field's value. func (s *TransitGatewayRequestOptions) SetTransitGatewayCidrBlocks(v []*string) *TransitGatewayRequestOptions { s.TransitGatewayCidrBlocks = v @@ -182839,6 +182968,11 @@ type TransitGatewayVpcAttachmentOptions struct { // Indicates whether IPv6 support is disabled. Ipv6Support *string `locationName:"ipv6Support" type:"string" enum:"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 *string `locationName:"securityGroupReferencingSupport" type:"string" enum:"SecurityGroupReferencingSupportValue"` } // String returns the string representation. @@ -182877,6 +183011,12 @@ func (s *TransitGatewayVpcAttachmentOptions) SetIpv6Support(v string) *TransitGa return s } +// SetSecurityGroupReferencingSupport sets the SecurityGroupReferencingSupport field's value. +func (s *TransitGatewayVpcAttachmentOptions) SetSecurityGroupReferencingSupport(v string) *TransitGatewayVpcAttachmentOptions { + s.SecurityGroupReferencingSupport = &v + return s +} + // Information about an association between a branch network interface with // a trunk network interface. type TrunkInterfaceAssociation struct { @@ -197567,6 +197707,22 @@ func Scope_Values() []string { } } +const ( + // SecurityGroupReferencingSupportValueEnable is a SecurityGroupReferencingSupportValue enum value + SecurityGroupReferencingSupportValueEnable = "enable" + + // SecurityGroupReferencingSupportValueDisable is a SecurityGroupReferencingSupportValue enum value + SecurityGroupReferencingSupportValueDisable = "disable" +) + +// SecurityGroupReferencingSupportValue_Values returns all elements of the SecurityGroupReferencingSupportValue enum +func SecurityGroupReferencingSupportValue_Values() []string { + return []string{ + SecurityGroupReferencingSupportValueEnable, + SecurityGroupReferencingSupportValueDisable, + } +} + const ( // SelfServicePortalEnabled is a SelfServicePortal enum value SelfServicePortalEnabled = "enabled"