From b7f7e8b14f6b5ac17da3fac37901f13d84a102ee Mon Sep 17 00:00:00 2001 From: Dane H Lim Date: Fri, 28 Apr 2023 16:15:24 -0700 Subject: [PATCH 1/2] Update inline tools.go documentation --- agent/tools.go | 3 +++ ecs-agent/tools.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/agent/tools.go b/agent/tools.go index 9a3df51a80b..21ff2d80580 100644 --- a/agent/tools.go +++ b/agent/tools.go @@ -14,8 +14,11 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. +// The tools package manages tool dependencies with go.mod. package tools +// Some packages are required by tools we use but are not used explicitly in the code. +// Import such packages so that they are copied to the vendor directory by go mod. import ( _ "github.com/aws/aws-sdk-go/private/model/api" _ "github.com/aws/aws-sdk-go/private/util" diff --git a/ecs-agent/tools.go b/ecs-agent/tools.go index 080ff5ab54a..3d08a08ccfa 100644 --- a/ecs-agent/tools.go +++ b/ecs-agent/tools.go @@ -14,10 +14,11 @@ // express or implied. See the License for the specific language governing // permissions and limitations under the License. +// The tools package manages tool dependencies with go.mod. package tools // Some packages are required by tools we use but are not used explicitly in the code. -// Import those packages so that they are copied to the vendor directory by go mod. +// Import such packages so that they are copied to the vendor directory by go mod. import ( _ "github.com/golang/mock/mockgen/model" ) From 677b7224913a6fc5f3fb74b98b0eaa064cc4a3a0 Mon Sep 17 00:00:00 2001 From: Dane H Lim Date: Wed, 3 May 2023 13:14:09 -0700 Subject: [PATCH 2/2] Remove unused agent/acs/model --- agent/acs/model/api/api-2.json | 953 -------------- agent/acs/model/ecsacs/api.go | 2159 -------------------------------- 2 files changed, 3112 deletions(-) delete mode 100644 agent/acs/model/api/api-2.json delete mode 100644 agent/acs/model/ecsacs/api.go diff --git a/agent/acs/model/api/api-2.json b/agent/acs/model/api/api-2.json deleted file mode 100644 index f68a5cee873..00000000000 --- a/agent/acs/model/api/api-2.json +++ /dev/null @@ -1,953 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2014-11-13", - "endpointPrefix":"ecsacs", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"Amazon ECS ACS", - "serviceFullName":"Amazon EC2 Container Service Agent Communication Service", - "signatureVersion":"v4", - "targetPrefix":"AmazonEC2ContainerAgentServiceV20141113", - "uid":"ecsacs-2014-11-13" - }, - "operations":{ - "AttachInstanceNetworkInterfaces":{ - "name":"AttachInstanceNetworkInterfaces", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachInstanceNetworkInterfacesMessage"}, - "output":{"shape":"AckRequest"}, - "documentation":"AttachInstanceNetworkInterfaces requests that the Agent look for and confirm the attachment of a network interface by the control plane that is not bound to a specific task." - }, - "AttachTaskNetworkInterfaces":{ - "name":"AttachTaskNetworkInterfaces", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"AttachTaskNetworkInterfacesMessage"}, - "output":{"shape":"AckRequest"}, - "documentation":"AttachNetworkInterface requests that the Agent look for and confirm the attachment of a network interface by the control plane." - }, - "ConfirmAttachment":{ - "name":"ConfirmAttachment", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ConfirmAttachmentMessage"}, - "output":{"shape":"AckRequest"}, - "documentation":"ConfirmAttachment requests that the Agent look for and confirm an attachment request by the control plane." - }, - "Error":{ - "name":"Error", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ErrorMessage"} - }, - "Heartbeat":{ - "name":"Heartbeat", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"HeartbeatMessage"}, - "output":{"shape":"HeartbeatAckRequest"}, - "documentation":"Heartbeat is a periodic message that informs the agent all is well." - }, - "Payload":{ - "name":"Payload", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PayloadMessage"}, - "output":{"shape":"AckRequest"}, - "documentation":"Payload requests the Agent parse and launch a given Payload. In response, the Agent will 'ack' the request it recieved after procesing it." - }, - "PerformUpdate":{ - "name":"PerformUpdate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PerformUpdateMessage"}, - "output":{"shape":"AckRequest"} - }, - "Poll":{ - "name":"Poll", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PollRequest"}, - "output":{"shape":"CloseMessage"}, - "errors":[ - {"shape":"ServerException"}, - {"shape":"BadRequestException"}, - {"shape":"InvalidClusterException"}, - {"shape":"AccessDeniedException"}, - {"shape":"InvalidInstanceException"}, - {"shape":"InactiveInstanceException"} - ], - "documentation":"Poll is the (increasingly poorly named) method by which the agent creates an initial long-lasting connection over which more specific operations are performed. More accurately, this would be named \"StartSession\"" - }, - "RefreshTaskIAMRoleCredentials":{ - "name":"RefreshTaskIAMRoleCredentials", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"IAMRoleCredentialsMessage"}, - "output":{"shape":"IAMRoleCredentialsAckRequest"} - }, - "StageUpdate":{ - "name":"StageUpdate", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"StageUpdateMessage"}, - "output":{"shape":"AckRequest"} - }, - "TaskManifest":{ - "name":"TaskManifest", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TaskManifestMessage"}, - "output":{"shape":"AckRequest"} - }, - "TaskStopVerification":{ - "name":"TaskStopVerification", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TaskStopVerificationMessage"}, - "output":{"shape":"TaskStopVerificationAck"} - }, - "UpdateFailure":{ - "name":"UpdateFailure", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"NackRequest"} - } - }, - "shapes":{ - "ASMAuthData":{ - "type":"structure", - "members":{ - "credentialsParameter":{"shape":"String"}, - "region":{"shape":"String"} - } - }, - "AccessDeniedException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "AckRequest":{ - "type":"structure", - "members":{ - "cluster":{"shape":"String"}, - "containerInstance":{"shape":"String"}, - "messageId":{"shape":"String"} - } - }, - "Association":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "type":{"shape":"AssociationType"}, - "content":{"shape":"EncodedString"}, - "containers":{"shape":"StringList"} - } - }, - "AssociationType":{ - "type":"string", - "enum":[ - "elastic-inference", - "gpu" - ] - }, - "Associations":{ - "type":"list", - "member":{"shape":"Association"} - }, - "AttachInstanceNetworkInterfacesMessage":{ - "type":"structure", - "members":{ - "containerInstanceArn":{"shape":"String"}, - "clusterArn":{"shape":"String"}, - "generatedAt":{"shape":"Long"}, - "messageId":{"shape":"String"}, - "waitTimeoutMs":{"shape":"Long"}, - "elasticNetworkInterfaces":{"shape":"ElasticNetworkInterfaceList"} - } - }, - "AttachTaskNetworkInterfacesMessage":{ - "type":"structure", - "members":{ - "containerInstanceArn":{"shape":"String"}, - "clusterArn":{"shape":"String"}, - "taskArn":{"shape":"String"}, - "taskClusterArn":{"shape":"String"}, - "generatedAt":{"shape":"Long"}, - "messageId":{"shape":"String"}, - "waitTimeoutMs":{"shape":"Long"}, - "elasticNetworkInterfaces":{"shape":"ElasticNetworkInterfaceList"} - } - }, - "Attachment":{ - "type":"structure", - "members":{ - "attachmentArn":{"shape":"String"}, - "attachmentType":{"shape":"String"}, - "attachmentProperties":{"shape":"AttachmentPropertyList"} - } - }, - "AttachmentList":{ - "type":"list", - "member":{"shape":"Attachment"} - }, - "AttachmentProperty":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "value":{"shape":"String"} - } - }, - "AttachmentPropertyList":{ - "type":"list", - "member":{"shape":"AttachmentProperty"} - }, - "AuthStrategy":{ - "type":"string", - "enum":["ExecutionRole"] - }, - "AuthenticationType":{ - "type":"string", - "enum":[ - "ecr", - "asm" - ] - }, - "BadRequestException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "Boolean":{"type":"boolean"}, - "CloseMessage":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - } - }, - "ConfirmAttachmentMessage":{ - "type":"structure", - "members":{ - "containerInstanceArn":{"shape":"String"}, - "clusterArn":{"shape":"String"}, - "taskArn":{"shape":"String"}, - "taskClusterArn":{"shape":"String"}, - "generatedAt":{"shape":"Long"}, - "messageId":{"shape":"String"}, - "waitTimeoutMs":{"shape":"Long"}, - "attachment":{"shape":"Attachment"} - } - }, - "Container":{ - "type":"structure", - "members":{ - "command":{"shape":"StringList"}, - "cpu":{"shape":"Integer"}, - "entryPoint":{"shape":"StringList"}, - "environment":{"shape":"EnvironmentVariables"}, - "environmentFiles":{"shape":"EnvironmentFiles"}, - "essential":{"shape":"Boolean"}, - "restartPolicy":{"shape":"RestartPolicy"}, - "restartMaxAttempts":{"shape":"Integer"}, - "image":{"shape":"String"}, - "links":{"shape":"StringList"}, - "memory":{"shape":"Integer"}, - "name":{"shape":"String"}, - "overrides":{"shape":"String"}, - "portMappings":{"shape":"PortMappingList"}, - "managedAgents":{"shape":"ManagedAgentList"}, - "mountPoints":{"shape":"MountPointList"}, - "networkInterfaceNames":{"shape":"StringList"}, - "volumesFrom":{"shape":"VolumeFromList"}, - "dockerConfig":{"shape":"DockerConfig"}, - "healthCheckType":{"shape":"HealthCheckType"}, - "registryAuthentication":{"shape":"RegistryAuthenticationData"}, - "logsAuthStrategy":{"shape":"AuthStrategy"}, - "secrets":{"shape":"SecretList"}, - "dependsOn":{"shape":"ContainerDependencies"}, - "startTimeout":{"shape":"Integer"}, - "stopTimeout":{"shape":"Integer"}, - "firelensConfiguration":{"shape":"FirelensConfiguration"}, - "containerArn":{"shape":"String"} - } - }, - "ContainerCondition":{ - "type":"string", - "enum":[ - "START", - "COMPLETE", - "SUCCESS", - "HEALTHY" - ] - }, - "ContainerDependencies":{ - "type":"list", - "member":{"shape":"ContainerDependency"} - }, - "ContainerDependency":{ - "type":"structure", - "members":{ - "containerName":{"shape":"String"}, - "condition":{"shape":"ContainerCondition"} - } - }, - "ContainerList":{ - "type":"list", - "member":{"shape":"Container"} - }, - "DockerConfig":{ - "type":"structure", - "members":{ - "version":{"shape":"String"}, - "config":{"shape":"String"}, - "hostConfig":{"shape":"String"} - } - }, - "DockerVolumeConfiguration":{ - "type":"structure", - "members":{ - "scope":{"shape":"Scope"}, - "autoprovision":{"shape":"Boolean"}, - "driver":{"shape":"String"}, - "driverOpts":{"shape":"StringMap"}, - "labels":{"shape":"StringMap"} - } - }, - "Double":{"type":"double"}, - "EBSVolumeConfiguration":{ - "type":"structure", - "members":{ - "volumeId":{"shape":"String"}, - "deleteOnTermination":{"shape":"Boolean"}, - "deviceName":{"shape":"String"}, - "filesystemType":{"shape":"String"} - } - }, - "ECRAuthData":{ - "type":"structure", - "members":{ - "registryId":{"shape":"String"}, - "region":{"shape":"String"}, - "endpointOverride":{"shape":"String"}, - "useExecutionRole":{"shape":"Boolean"} - } - }, - "EFSAuthorizationConfig":{ - "type":"structure", - "members":{ - "accessPointId":{"shape":"String"}, - "iam":{"shape":"EFSAuthorizationConfigIAM"} - } - }, - "EFSAuthorizationConfigIAM":{ - "type":"string", - "enum":[ - "ENABLED", - "DISABLED" - ] - }, - "EFSTransitEncryption":{ - "type":"string", - "enum":[ - "ENABLED", - "DISABLED" - ] - }, - "EFSVolumeConfiguration":{ - "type":"structure", - "members":{ - "fileSystemId":{"shape":"String"}, - "rootDirectory":{"shape":"String"}, - "transitEncryption":{"shape":"EFSTransitEncryption"}, - "transitEncryptionPort":{"shape":"Integer"}, - "authorizationConfig":{"shape":"EFSAuthorizationConfig"} - } - }, - "ElasticNetworkInterface":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "macAddress":{"shape":"String"}, - "attachmentArn":{"shape":"String"}, - "ec2Id":{"shape":"String"}, - "index":{"shape":"Integer"}, - "interfaceAssociationProtocol":{"shape":"NetworkInterfaceAssociationProtocol"}, - "interfaceTunnelProperties":{"shape":"NetworkInterfaceTunnelProperties"}, - "interfaceVethProperties":{"shape":"NetworkInterfaceVethProperties"}, - "interfaceVlanProperties":{"shape":"NetworkInterfaceVlanProperties"}, - "ipv4Addresses":{"shape":"IPv4AddressList"}, - "ipv6Addresses":{"shape":"IPv6AddressList"}, - "domainName":{"shape":"StringList"}, - "domainNameServers":{"shape":"StringList"}, - "privateDnsName":{"shape":"String"}, - "subnetGatewayIpv4Address":{"shape":"String"} - } - }, - "ElasticNetworkInterfaceList":{ - "type":"list", - "member":{"shape":"ElasticNetworkInterface"} - }, - "EncodedString":{ - "type":"structure", - "members":{ - "value":{"shape":"String"}, - "encoding":{"shape":"Encoding"} - } - }, - "Encoding":{ - "type":"string", - "enum":[ - "identity", - "base64" - ] - }, - "EnvironmentFile":{ - "type":"structure", - "members":{ - "value":{"shape":"String"}, - "type":{"shape":"EnvironmentFileType"} - } - }, - "EnvironmentFileType":{ - "type":"string", - "enum":["s3"] - }, - "EnvironmentFiles":{ - "type":"list", - "member":{"shape":"EnvironmentFile"} - }, - "EnvironmentVariables":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"}, - "sensitive":true - }, - "ErrorMessage":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - } - }, - "FSxWindowsFileServerAuthorizationConfig":{ - "type":"structure", - "members":{ - "credentialsParameter":{"shape":"String"}, - "domain":{"shape":"String"} - } - }, - "FSxWindowsFileServerVolumeConfiguration":{ - "type":"structure", - "members":{ - "fileSystemId":{"shape":"String"}, - "rootDirectory":{"shape":"String"}, - "authorizationConfig":{"shape":"FSxWindowsFileServerAuthorizationConfig"} - } - }, - "FirelensConfiguration":{ - "type":"structure", - "members":{ - "type":{"shape":"FirelensConfigurationType"}, - "options":{"shape":"FirelensConfigurationOptionsMap"} - } - }, - "FirelensConfigurationOptionsMap":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "FirelensConfigurationType":{ - "type":"string", - "enum":[ - "fluentd", - "fluentbit" - ] - }, - "HealthCheckType":{ - "type":"string", - "enum":["docker"] - }, - "HeartbeatAckRequest":{ - "type":"structure", - "members":{ - "messageId":{"shape":"String"} - } - }, - "HeartbeatMessage":{ - "type":"structure", - "members":{ - "healthy":{"shape":"Boolean"}, - "messageId":{"shape":"String"} - } - }, - "HostVolumeProperties":{ - "type":"structure", - "members":{ - "sourcePath":{"shape":"String"} - } - }, - "IAMRoleCredentials":{ - "type":"structure", - "members":{ - "credentialsId":{"shape":"String"}, - "roleArn":{"shape":"String"}, - "accessKeyId":{"shape":"String"}, - "secretAccessKey":{"shape":"SensitiveString"}, - "sessionToken":{"shape":"String"}, - "expiration":{"shape":"String"} - } - }, - "IAMRoleCredentialsAckRequest":{ - "type":"structure", - "members":{ - "messageId":{"shape":"String"}, - "expiration":{"shape":"String"}, - "credentialsId":{"shape":"String"} - } - }, - "IAMRoleCredentialsMessage":{ - "type":"structure", - "members":{ - "taskArn":{"shape":"String"}, - "taskClusterArn":{"shape":"String"}, - "roleCredentials":{"shape":"IAMRoleCredentials"}, - "roleType":{"shape":"RoleType"}, - "messageId":{"shape":"String"} - } - }, - "IPv4AddressAssignment":{ - "type":"structure", - "members":{ - "privateAddress":{"shape":"String"}, - "primary":{"shape":"Boolean"} - } - }, - "IPv4AddressList":{ - "type":"list", - "member":{"shape":"IPv4AddressAssignment"} - }, - "IPv6AddressAssignment":{ - "type":"structure", - "members":{ - "address":{"shape":"String"} - } - }, - "IPv6AddressList":{ - "type":"list", - "member":{"shape":"IPv6AddressAssignment"} - }, - "InactiveInstanceException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "Integer":{"type":"integer"}, - "InvalidClusterException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "InvalidInstanceException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "Long":{"type":"long"}, - "ManagedAgent":{ - "type":"structure", - "members":{ - "name":{"shape":"ManagedAgentName"}, - "properties":{"shape":"StringMap"} - } - }, - "ManagedAgentList":{ - "type":"list", - "member":{"shape":"ManagedAgent"} - }, - "ManagedAgentName":{ - "type":"string", - "enum":["ExecuteCommandAgent"] - }, - "MountPoint":{ - "type":"structure", - "members":{ - "sourceVolume":{"shape":"String"}, - "containerPath":{"shape":"String"}, - "readOnly":{"shape":"Boolean"} - } - }, - "MountPointList":{ - "type":"list", - "member":{"shape":"MountPoint"} - }, - "NackRequest":{ - "type":"structure", - "members":{ - "cluster":{"shape":"String"}, - "containerInstance":{"shape":"String"}, - "messageId":{"shape":"String"}, - "reason":{"shape":"String"} - } - }, - "NetworkInterfaceAssociationProtocol":{ - "type":"string", - "enum":[ - "default", - "tunnel", - "veth", - "vlan" - ] - }, - "NetworkInterfaceTunnelProperties":{ - "type":"structure", - "members":{ - "tunnelId":{"shape":"String"}, - "interfaceIpAddress":{"shape":"String"} - } - }, - "NetworkInterfaceVethProperties":{ - "type":"structure", - "members":{ - "peerInterface":{"shape":"String"} - } - }, - "NetworkInterfaceVlanProperties":{ - "type":"structure", - "members":{ - "vlanId":{"shape":"String"}, - "trunkInterfaceMacAddress":{"shape":"String"} - } - }, - "NullableInteger":{ - "type":"integer", - "box":true - }, - "NullableLong":{ - "type":"long", - "box":true - }, - "PayloadMessage":{ - "type":"structure", - "members":{ - "containerInstanceArn":{"shape":"String"}, - "clusterArn":{"shape":"String"}, - "tasks":{"shape":"TaskList"}, - "generatedAt":{"shape":"Long"}, - "messageId":{"shape":"String"}, - "seqNum":{"shape":"Integer"}, - "timeline":{"shape":"NullableLong"} - } - }, - "PerformUpdateMessage":{ - "type":"structure", - "members":{ - "containerInstanceArn":{"shape":"String"}, - "clusterArn":{"shape":"String"}, - "updateInfo":{"shape":"UpdateInfo"}, - "messageId":{"shape":"String"} - } - }, - "PollRequest":{ - "type":"structure", - "members":{ - "cluster":{"shape":"String"}, - "containerInstance":{"shape":"String"}, - "seqNum":{"shape":"Integer"}, - "timeline":{"shape":"NullableLong"}, - "versionInfo":{"shape":"VersionInfo"}, - "sendCredentials":{"shape":"Boolean"}, - "protocolVersion":{"shape":"NullableInteger"} - } - }, - "PortMapping":{ - "type":"structure", - "members":{ - "containerPort":{"shape":"Integer"}, - "hostPort":{"shape":"Integer"}, - "containerPortRange":{"shape":"String"}, - "protocol":{"shape":"TransportProtocol"} - } - }, - "PortMappingList":{ - "type":"list", - "member":{"shape":"PortMapping"} - }, - "ProxyConfiguration":{ - "type":"structure", - "members":{ - "type":{"shape":"ProxyConfigurationType"}, - "containerName":{"shape":"String"}, - "properties":{"shape":"StringMap"} - } - }, - "ProxyConfigurationType":{ - "type":"string", - "enum":["APPMESH"] - }, - "RegistryAuthenticationData":{ - "type":"structure", - "members":{ - "type":{"shape":"AuthenticationType"}, - "ecrAuthData":{"shape":"ECRAuthData"}, - "asmAuthData":{"shape":"ASMAuthData"} - } - }, - "RestartPolicy":{ - "type":"string", - "enum":[ - "NEVER", - "UNLESS_TASK_STOPPED", - "ON_FAILURE" - ] - }, - "RoleType":{ - "type":"string", - "enum":[ - "TaskApplication", - "TaskExecution" - ] - }, - "Scope":{ - "type":"string", - "enum":[ - "task", - "shared" - ] - }, - "Secret":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "valueFrom":{"shape":"String"}, - "containerPath":{"shape":"String"}, - "type":{"shape":"SecretType"}, - "region":{"shape":"String"}, - "provider":{"shape":"SecretProvider"}, - "target":{"shape":"SecretTarget"} - } - }, - "SecretList":{ - "type":"list", - "member":{"shape":"Secret"} - }, - "SecretProvider":{ - "type":"string", - "enum":[ - "ssm", - "asm" - ] - }, - "SecretTarget":{ - "type":"string", - "enum":[ - "CONTAINER", - "LOG_DRIVER" - ] - }, - "SecretType":{ - "type":"string", - "enum":[ - "ENVIRONMENT_VARIABLE", - "MOUNT_POINT", - "BOOTSTRAP" - ] - }, - "SensitiveString":{ - "type":"string", - "sensitive":true - }, - "ServerException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "StageUpdateMessage":{ - "type":"structure", - "members":{ - "containerInstanceArn":{"shape":"String"}, - "clusterArn":{"shape":"String"}, - "updateInfo":{"shape":"UpdateInfo"}, - "messageId":{"shape":"String"} - } - }, - "String":{"type":"string"}, - "StringList":{ - "type":"list", - "member":{"shape":"String"} - }, - "StringMap":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, - "Task":{ - "type":"structure", - "members":{ - "arn":{"shape":"String"}, - "taskClusterArn":{"shape":"String"}, - "containers":{"shape":"ContainerList"}, - "desiredStatus":{"shape":"String"}, - "family":{"shape":"String"}, - "overrides":{"shape":"String"}, - "version":{"shape":"String"}, - "zone":{"shape":"String"}, - "taskDefinitionAccountId":{"shape":"String"}, - "volumes":{"shape":"VolumeList"}, - "roleCredentials":{"shape":"IAMRoleCredentials"}, - "executionRoleCredentials":{"shape":"IAMRoleCredentials"}, - "elasticNetworkInterfaces":{"shape":"ElasticNetworkInterfaceList"}, - "cpu":{"shape":"Double"}, - "memory":{"shape":"Integer"}, - "associations":{"shape":"Associations"}, - "pidMode":{"shape":"String"}, - "ipcMode":{"shape":"String"}, - "proxyConfiguration":{"shape":"ProxyConfiguration"}, - "agentConfiguration":{"shape":"String"}, - "launchType":{"shape":"String"}, - "attachments":{"shape":"AttachmentList"}, - "networkMode":{"shape":"String"}, - "serviceName":{"shape":"String"} - } - }, - "TaskIdentifier":{ - "type":"structure", - "members":{ - "taskArn":{"shape":"String"}, - "taskClusterArn":{"shape":"String"}, - "desiredStatus":{"shape":"String"} - } - }, - "TaskIdentifierList":{ - "type":"list", - "member":{"shape":"TaskIdentifier"} - }, - "TaskList":{ - "type":"list", - "member":{"shape":"Task"} - }, - "TaskManifestMessage":{ - "type":"structure", - "members":{ - "containerInstanceArn":{"shape":"String"}, - "clusterArn":{"shape":"String"}, - "tasks":{"shape":"TaskIdentifierList"}, - "generatedAt":{"shape":"Long"}, - "messageId":{"shape":"String"}, - "timeline":{"shape":"Long"} - } - }, - "TaskStopVerificationAck":{ - "type":"structure", - "members":{ - "generatedAt":{"shape":"Long"}, - "messageId":{"shape":"String"}, - "stopTasks":{"shape":"TaskIdentifierList"} - } - }, - "TaskStopVerificationMessage":{ - "type":"structure", - "members":{ - "messageId":{"shape":"String"}, - "stopCandidates":{"shape":"TaskIdentifierList"} - } - }, - "TransportProtocol":{ - "type":"string", - "enum":[ - "tcp", - "udp" - ] - }, - "UpdateInfo":{ - "type":"structure", - "members":{ - "location":{"shape":"String"}, - "signature":{"shape":"String"} - } - }, - "VersionInfo":{ - "type":"structure", - "members":{ - "agentVersion":{"shape":"String"}, - "agentHash":{"shape":"String"}, - "dockerVersion":{"shape":"String"} - } - }, - "Volume":{ - "type":"structure", - "members":{ - "name":{"shape":"String"}, - "type":{"shape":"VolumeType"}, - "host":{"shape":"HostVolumeProperties"}, - "dockerVolumeConfiguration":{"shape":"DockerVolumeConfiguration"}, - "efsVolumeConfiguration":{"shape":"EFSVolumeConfiguration"}, - "fsxWindowsFileServerVolumeConfiguration":{"shape":"FSxWindowsFileServerVolumeConfiguration"}, - "ebsVolumeConfiguration":{"shape":"EBSVolumeConfiguration"} - } - }, - "VolumeFrom":{ - "type":"structure", - "members":{ - "sourceContainer":{"shape":"String"}, - "readOnly":{"shape":"Boolean"} - } - }, - "VolumeFromList":{ - "type":"list", - "member":{"shape":"VolumeFrom"} - }, - "VolumeList":{ - "type":"list", - "member":{"shape":"Volume"} - }, - "VolumeType":{ - "type":"string", - "enum":[ - "host", - "docker", - "efs", - "fsxWindowsFileServer", - "ebs" - ] - } - } -} \ No newline at end of file diff --git a/agent/acs/model/ecsacs/api.go b/agent/acs/model/ecsacs/api.go deleted file mode 100644 index 20a41865d0b..00000000000 --- a/agent/acs/model/ecsacs/api.go +++ /dev/null @@ -1,2159 +0,0 @@ -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"). You may -// not use this file except in compliance with the License. A copy of the -// License is located at -// -// http://aws.amazon.com/apache2.0/ -// -// or in the "license" file accompanying this file. This file is distributed -// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either -// express or implied. See the License for the specific language governing -// permissions and limitations under the License. -// -// Code generated by [agent/gogenerate/awssdk.go] DO NOT EDIT. - -package ecsacs - -import ( - "fmt" - - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/private/protocol" -) - -type ASMAuthData struct { - _ struct{} `type:"structure"` - - CredentialsParameter *string `locationName:"credentialsParameter" type:"string"` - - Region *string `locationName:"region" type:"string"` -} - -// String returns the string representation -func (s ASMAuthData) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ASMAuthData) GoString() string { - return s.String() -} - -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -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 -} - -type AckRequest struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s AckRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AckRequest) GoString() string { - return s.String() -} - -type Association struct { - _ struct{} `type:"structure"` - - Containers []*string `locationName:"containers" type:"list"` - - Content *EncodedString `locationName:"content" type:"structure"` - - Name *string `locationName:"name" type:"string"` - - Type *string `locationName:"type" type:"string" enum:"AssociationType"` -} - -// String returns the string representation -func (s Association) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Association) GoString() string { - return s.String() -} - -type AttachInstanceNetworkInterfacesInput struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - ElasticNetworkInterfaces []*ElasticNetworkInterface `locationName:"elasticNetworkInterfaces" type:"list"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - WaitTimeoutMs *int64 `locationName:"waitTimeoutMs" type:"long"` -} - -// String returns the string representation -func (s AttachInstanceNetworkInterfacesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachInstanceNetworkInterfacesInput) GoString() string { - return s.String() -} - -type AttachInstanceNetworkInterfacesMessage struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - ElasticNetworkInterfaces []*ElasticNetworkInterface `locationName:"elasticNetworkInterfaces" type:"list"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - WaitTimeoutMs *int64 `locationName:"waitTimeoutMs" type:"long"` -} - -// String returns the string representation -func (s AttachInstanceNetworkInterfacesMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachInstanceNetworkInterfacesMessage) GoString() string { - return s.String() -} - -type AttachInstanceNetworkInterfacesOutput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s AttachInstanceNetworkInterfacesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachInstanceNetworkInterfacesOutput) GoString() string { - return s.String() -} - -type AttachTaskNetworkInterfacesInput struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - ElasticNetworkInterfaces []*ElasticNetworkInterface `locationName:"elasticNetworkInterfaces" type:"list"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - TaskArn *string `locationName:"taskArn" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` - - WaitTimeoutMs *int64 `locationName:"waitTimeoutMs" type:"long"` -} - -// String returns the string representation -func (s AttachTaskNetworkInterfacesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachTaskNetworkInterfacesInput) GoString() string { - return s.String() -} - -type AttachTaskNetworkInterfacesMessage struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - ElasticNetworkInterfaces []*ElasticNetworkInterface `locationName:"elasticNetworkInterfaces" type:"list"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - TaskArn *string `locationName:"taskArn" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` - - WaitTimeoutMs *int64 `locationName:"waitTimeoutMs" type:"long"` -} - -// String returns the string representation -func (s AttachTaskNetworkInterfacesMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachTaskNetworkInterfacesMessage) GoString() string { - return s.String() -} - -type AttachTaskNetworkInterfacesOutput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s AttachTaskNetworkInterfacesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachTaskNetworkInterfacesOutput) GoString() string { - return s.String() -} - -type Attachment struct { - _ struct{} `type:"structure"` - - AttachmentArn *string `locationName:"attachmentArn" type:"string"` - - AttachmentProperties []*AttachmentProperty `locationName:"attachmentProperties" type:"list"` - - AttachmentType *string `locationName:"attachmentType" type:"string"` -} - -// String returns the string representation -func (s Attachment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Attachment) GoString() string { - return s.String() -} - -type AttachmentProperty struct { - _ struct{} `type:"structure"` - - Name *string `locationName:"name" type:"string"` - - Value *string `locationName:"value" type:"string"` -} - -// String returns the string representation -func (s AttachmentProperty) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AttachmentProperty) GoString() string { - return s.String() -} - -type BadRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s BadRequestException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BadRequestException) GoString() string { - return s.String() -} - -func newErrorBadRequestException(v protocol.ResponseMetadata) error { - return &BadRequestException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *BadRequestException) Code() string { - return "BadRequestException" -} - -// Message returns the exception's message. -func (s *BadRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *BadRequestException) OrigErr() error { - return nil -} - -func (s *BadRequestException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *BadRequestException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *BadRequestException) RequestID() string { - return s.RespMetadata.RequestID -} - -type CloseMessage struct { - _ struct{} `type:"structure"` - - Message *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s CloseMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CloseMessage) GoString() string { - return s.String() -} - -type ConfirmAttachmentInput struct { - _ struct{} `type:"structure"` - - Attachment *Attachment `locationName:"attachment" type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - TaskArn *string `locationName:"taskArn" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` - - WaitTimeoutMs *int64 `locationName:"waitTimeoutMs" type:"long"` -} - -// String returns the string representation -func (s ConfirmAttachmentInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmAttachmentInput) GoString() string { - return s.String() -} - -type ConfirmAttachmentMessage struct { - _ struct{} `type:"structure"` - - Attachment *Attachment `locationName:"attachment" type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - TaskArn *string `locationName:"taskArn" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` - - WaitTimeoutMs *int64 `locationName:"waitTimeoutMs" type:"long"` -} - -// String returns the string representation -func (s ConfirmAttachmentMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmAttachmentMessage) GoString() string { - return s.String() -} - -type ConfirmAttachmentOutput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s ConfirmAttachmentOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ConfirmAttachmentOutput) GoString() string { - return s.String() -} - -type Container struct { - _ struct{} `type:"structure"` - - Command []*string `locationName:"command" type:"list"` - - ContainerArn *string `locationName:"containerArn" type:"string"` - - Cpu *int64 `locationName:"cpu" type:"integer"` - - DependsOn []*ContainerDependency `locationName:"dependsOn" type:"list"` - - DockerConfig *DockerConfig `locationName:"dockerConfig" type:"structure"` - - EntryPoint []*string `locationName:"entryPoint" type:"list"` - - Environment map[string]*string `locationName:"environment" type:"map" sensitive:"true"` - - EnvironmentFiles []*EnvironmentFile `locationName:"environmentFiles" type:"list"` - - Essential *bool `locationName:"essential" type:"boolean"` - - FirelensConfiguration *FirelensConfiguration `locationName:"firelensConfiguration" type:"structure"` - - HealthCheckType *string `locationName:"healthCheckType" type:"string" enum:"HealthCheckType"` - - Image *string `locationName:"image" type:"string"` - - Links []*string `locationName:"links" type:"list"` - - LogsAuthStrategy *string `locationName:"logsAuthStrategy" type:"string" enum:"AuthStrategy"` - - ManagedAgents []*ManagedAgent `locationName:"managedAgents" type:"list"` - - Memory *int64 `locationName:"memory" type:"integer"` - - MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` - - Name *string `locationName:"name" type:"string"` - - NetworkInterfaceNames []*string `locationName:"networkInterfaceNames" type:"list"` - - Overrides *string `locationName:"overrides" type:"string"` - - PortMappings []*PortMapping `locationName:"portMappings" type:"list"` - - RegistryAuthentication *RegistryAuthenticationData `locationName:"registryAuthentication" type:"structure"` - - RestartMaxAttempts *int64 `locationName:"restartMaxAttempts" type:"integer"` - - RestartPolicy *string `locationName:"restartPolicy" type:"string" enum:"RestartPolicy"` - - Secrets []*Secret `locationName:"secrets" type:"list"` - - StartTimeout *int64 `locationName:"startTimeout" type:"integer"` - - StopTimeout *int64 `locationName:"stopTimeout" type:"integer"` - - VolumesFrom []*VolumeFrom `locationName:"volumesFrom" type:"list"` -} - -// String returns the string representation -func (s Container) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Container) GoString() string { - return s.String() -} - -type ContainerDependency struct { - _ struct{} `type:"structure"` - - Condition *string `locationName:"condition" type:"string" enum:"ContainerCondition"` - - ContainerName *string `locationName:"containerName" type:"string"` -} - -// String returns the string representation -func (s ContainerDependency) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ContainerDependency) GoString() string { - return s.String() -} - -type DockerConfig struct { - _ struct{} `type:"structure"` - - Config *string `locationName:"config" type:"string"` - - HostConfig *string `locationName:"hostConfig" type:"string"` - - Version *string `locationName:"version" type:"string"` -} - -// String returns the string representation -func (s DockerConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DockerConfig) GoString() string { - return s.String() -} - -type DockerVolumeConfiguration struct { - _ struct{} `type:"structure"` - - Autoprovision *bool `locationName:"autoprovision" type:"boolean"` - - Driver *string `locationName:"driver" type:"string"` - - DriverOpts map[string]*string `locationName:"driverOpts" type:"map"` - - Labels map[string]*string `locationName:"labels" type:"map"` - - Scope *string `locationName:"scope" type:"string" enum:"Scope"` -} - -// String returns the string representation -func (s DockerVolumeConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DockerVolumeConfiguration) GoString() string { - return s.String() -} - -type EBSVolumeConfiguration struct { - _ struct{} `type:"structure"` - - DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` - - DeviceName *string `locationName:"deviceName" type:"string"` - - FilesystemType *string `locationName:"filesystemType" type:"string"` - - VolumeId *string `locationName:"volumeId" type:"string"` -} - -// String returns the string representation -func (s EBSVolumeConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EBSVolumeConfiguration) GoString() string { - return s.String() -} - -type ECRAuthData struct { - _ struct{} `type:"structure"` - - EndpointOverride *string `locationName:"endpointOverride" type:"string"` - - Region *string `locationName:"region" type:"string"` - - RegistryId *string `locationName:"registryId" type:"string"` - - UseExecutionRole *bool `locationName:"useExecutionRole" type:"boolean"` -} - -// String returns the string representation -func (s ECRAuthData) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ECRAuthData) GoString() string { - return s.String() -} - -type EFSAuthorizationConfig struct { - _ struct{} `type:"structure"` - - AccessPointId *string `locationName:"accessPointId" type:"string"` - - Iam *string `locationName:"iam" type:"string" enum:"EFSAuthorizationConfigIAM"` -} - -// String returns the string representation -func (s EFSAuthorizationConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EFSAuthorizationConfig) GoString() string { - return s.String() -} - -type EFSVolumeConfiguration struct { - _ struct{} `type:"structure"` - - AuthorizationConfig *EFSAuthorizationConfig `locationName:"authorizationConfig" type:"structure"` - - FileSystemId *string `locationName:"fileSystemId" type:"string"` - - RootDirectory *string `locationName:"rootDirectory" type:"string"` - - TransitEncryption *string `locationName:"transitEncryption" type:"string" enum:"EFSTransitEncryption"` - - TransitEncryptionPort *int64 `locationName:"transitEncryptionPort" type:"integer"` -} - -// String returns the string representation -func (s EFSVolumeConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EFSVolumeConfiguration) GoString() string { - return s.String() -} - -type ElasticNetworkInterface struct { - _ struct{} `type:"structure"` - - AttachmentArn *string `locationName:"attachmentArn" type:"string"` - - DomainName []*string `locationName:"domainName" type:"list"` - - DomainNameServers []*string `locationName:"domainNameServers" type:"list"` - - Ec2Id *string `locationName:"ec2Id" type:"string"` - - Index *int64 `locationName:"index" type:"integer"` - - InterfaceAssociationProtocol *string `locationName:"interfaceAssociationProtocol" type:"string" enum:"NetworkInterfaceAssociationProtocol"` - - InterfaceTunnelProperties *NetworkInterfaceTunnelProperties `locationName:"interfaceTunnelProperties" type:"structure"` - - InterfaceVethProperties *NetworkInterfaceVethProperties `locationName:"interfaceVethProperties" type:"structure"` - - InterfaceVlanProperties *NetworkInterfaceVlanProperties `locationName:"interfaceVlanProperties" type:"structure"` - - Ipv4Addresses []*IPv4AddressAssignment `locationName:"ipv4Addresses" type:"list"` - - Ipv6Addresses []*IPv6AddressAssignment `locationName:"ipv6Addresses" type:"list"` - - MacAddress *string `locationName:"macAddress" type:"string"` - - Name *string `locationName:"name" type:"string"` - - PrivateDnsName *string `locationName:"privateDnsName" type:"string"` - - SubnetGatewayIpv4Address *string `locationName:"subnetGatewayIpv4Address" type:"string"` -} - -// String returns the string representation -func (s ElasticNetworkInterface) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ElasticNetworkInterface) GoString() string { - return s.String() -} - -type EncodedString struct { - _ struct{} `type:"structure"` - - Encoding *string `locationName:"encoding" type:"string" enum:"Encoding"` - - Value *string `locationName:"value" type:"string"` -} - -// String returns the string representation -func (s EncodedString) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EncodedString) GoString() string { - return s.String() -} - -type EnvironmentFile struct { - _ struct{} `type:"structure"` - - Type *string `locationName:"type" type:"string" enum:"EnvironmentFileType"` - - Value *string `locationName:"value" type:"string"` -} - -// String returns the string representation -func (s EnvironmentFile) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s EnvironmentFile) GoString() string { - return s.String() -} - -type ErrorInput struct { - _ struct{} `type:"structure"` - - Message *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s ErrorInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ErrorInput) GoString() string { - return s.String() -} - -type ErrorMessage struct { - _ struct{} `type:"structure"` - - Message *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s ErrorMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ErrorMessage) GoString() string { - return s.String() -} - -type ErrorOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s ErrorOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ErrorOutput) GoString() string { - return s.String() -} - -type FSxWindowsFileServerAuthorizationConfig struct { - _ struct{} `type:"structure"` - - CredentialsParameter *string `locationName:"credentialsParameter" type:"string"` - - Domain *string `locationName:"domain" type:"string"` -} - -// String returns the string representation -func (s FSxWindowsFileServerAuthorizationConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FSxWindowsFileServerAuthorizationConfig) GoString() string { - return s.String() -} - -type FSxWindowsFileServerVolumeConfiguration struct { - _ struct{} `type:"structure"` - - AuthorizationConfig *FSxWindowsFileServerAuthorizationConfig `locationName:"authorizationConfig" type:"structure"` - - FileSystemId *string `locationName:"fileSystemId" type:"string"` - - RootDirectory *string `locationName:"rootDirectory" type:"string"` -} - -// String returns the string representation -func (s FSxWindowsFileServerVolumeConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FSxWindowsFileServerVolumeConfiguration) GoString() string { - return s.String() -} - -type FirelensConfiguration struct { - _ struct{} `type:"structure"` - - Options map[string]*string `locationName:"options" type:"map"` - - Type *string `locationName:"type" type:"string" enum:"FirelensConfigurationType"` -} - -// String returns the string representation -func (s FirelensConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s FirelensConfiguration) GoString() string { - return s.String() -} - -type HeartbeatAckRequest struct { - _ struct{} `type:"structure"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s HeartbeatAckRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HeartbeatAckRequest) GoString() string { - return s.String() -} - -type HeartbeatInput struct { - _ struct{} `type:"structure"` - - Healthy *bool `locationName:"healthy" type:"boolean"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s HeartbeatInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HeartbeatInput) GoString() string { - return s.String() -} - -type HeartbeatMessage struct { - _ struct{} `type:"structure"` - - Healthy *bool `locationName:"healthy" type:"boolean"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s HeartbeatMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HeartbeatMessage) GoString() string { - return s.String() -} - -type HeartbeatOutput struct { - _ struct{} `type:"structure"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s HeartbeatOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HeartbeatOutput) GoString() string { - return s.String() -} - -type HostVolumeProperties struct { - _ struct{} `type:"structure"` - - SourcePath *string `locationName:"sourcePath" type:"string"` -} - -// String returns the string representation -func (s HostVolumeProperties) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s HostVolumeProperties) GoString() string { - return s.String() -} - -type IAMRoleCredentials struct { - _ struct{} `type:"structure"` - - AccessKeyId *string `locationName:"accessKeyId" type:"string"` - - CredentialsId *string `locationName:"credentialsId" type:"string"` - - Expiration *string `locationName:"expiration" type:"string"` - - RoleArn *string `locationName:"roleArn" type:"string"` - - SecretAccessKey *string `locationName:"secretAccessKey" type:"string" sensitive:"true"` - - SessionToken *string `locationName:"sessionToken" type:"string"` -} - -// String returns the string representation -func (s IAMRoleCredentials) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IAMRoleCredentials) GoString() string { - return s.String() -} - -type IAMRoleCredentialsAckRequest struct { - _ struct{} `type:"structure"` - - CredentialsId *string `locationName:"credentialsId" type:"string"` - - Expiration *string `locationName:"expiration" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s IAMRoleCredentialsAckRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IAMRoleCredentialsAckRequest) GoString() string { - return s.String() -} - -type IAMRoleCredentialsMessage struct { - _ struct{} `type:"structure"` - - MessageId *string `locationName:"messageId" type:"string"` - - RoleCredentials *IAMRoleCredentials `locationName:"roleCredentials" type:"structure"` - - RoleType *string `locationName:"roleType" type:"string" enum:"RoleType"` - - TaskArn *string `locationName:"taskArn" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` -} - -// String returns the string representation -func (s IAMRoleCredentialsMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IAMRoleCredentialsMessage) GoString() string { - return s.String() -} - -type IPv4AddressAssignment struct { - _ struct{} `type:"structure"` - - Primary *bool `locationName:"primary" type:"boolean"` - - PrivateAddress *string `locationName:"privateAddress" type:"string"` -} - -// String returns the string representation -func (s IPv4AddressAssignment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IPv4AddressAssignment) GoString() string { - return s.String() -} - -type IPv6AddressAssignment struct { - _ struct{} `type:"structure"` - - Address *string `locationName:"address" type:"string"` -} - -// String returns the string representation -func (s IPv6AddressAssignment) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s IPv6AddressAssignment) GoString() string { - return s.String() -} - -type InactiveInstanceException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s InactiveInstanceException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InactiveInstanceException) GoString() string { - return s.String() -} - -func newErrorInactiveInstanceException(v protocol.ResponseMetadata) error { - return &InactiveInstanceException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InactiveInstanceException) Code() string { - return "InactiveInstanceException" -} - -// Message returns the exception's message. -func (s *InactiveInstanceException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InactiveInstanceException) OrigErr() error { - return nil -} - -func (s *InactiveInstanceException) 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 *InactiveInstanceException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InactiveInstanceException) RequestID() string { - return s.RespMetadata.RequestID -} - -type InvalidClusterException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s InvalidClusterException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InvalidClusterException) GoString() string { - return s.String() -} - -func newErrorInvalidClusterException(v protocol.ResponseMetadata) error { - return &InvalidClusterException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidClusterException) Code() string { - return "InvalidClusterException" -} - -// Message returns the exception's message. -func (s *InvalidClusterException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidClusterException) OrigErr() error { - return nil -} - -func (s *InvalidClusterException) 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 *InvalidClusterException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InvalidClusterException) RequestID() string { - return s.RespMetadata.RequestID -} - -type InvalidInstanceException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s InvalidInstanceException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s InvalidInstanceException) GoString() string { - return s.String() -} - -func newErrorInvalidInstanceException(v protocol.ResponseMetadata) error { - return &InvalidInstanceException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidInstanceException) Code() string { - return "InvalidInstanceException" -} - -// Message returns the exception's message. -func (s *InvalidInstanceException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidInstanceException) OrigErr() error { - return nil -} - -func (s *InvalidInstanceException) 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 *InvalidInstanceException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InvalidInstanceException) RequestID() string { - return s.RespMetadata.RequestID -} - -type ManagedAgent struct { - _ struct{} `type:"structure"` - - Name *string `locationName:"name" type:"string" enum:"ManagedAgentName"` - - Properties map[string]*string `locationName:"properties" type:"map"` -} - -// String returns the string representation -func (s ManagedAgent) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ManagedAgent) GoString() string { - return s.String() -} - -type MountPoint struct { - _ struct{} `type:"structure"` - - ContainerPath *string `locationName:"containerPath" type:"string"` - - ReadOnly *bool `locationName:"readOnly" type:"boolean"` - - SourceVolume *string `locationName:"sourceVolume" type:"string"` -} - -// String returns the string representation -func (s MountPoint) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MountPoint) GoString() string { - return s.String() -} - -type NackRequest struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` - - Reason *string `locationName:"reason" type:"string"` -} - -// String returns the string representation -func (s NackRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s NackRequest) GoString() string { - return s.String() -} - -type NetworkInterfaceTunnelProperties struct { - _ struct{} `type:"structure"` - - InterfaceIpAddress *string `locationName:"interfaceIpAddress" type:"string"` - - TunnelId *string `locationName:"tunnelId" type:"string"` -} - -// String returns the string representation -func (s NetworkInterfaceTunnelProperties) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s NetworkInterfaceTunnelProperties) GoString() string { - return s.String() -} - -type NetworkInterfaceVethProperties struct { - _ struct{} `type:"structure"` - - PeerInterface *string `locationName:"peerInterface" type:"string"` -} - -// String returns the string representation -func (s NetworkInterfaceVethProperties) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s NetworkInterfaceVethProperties) GoString() string { - return s.String() -} - -type NetworkInterfaceVlanProperties struct { - _ struct{} `type:"structure"` - - TrunkInterfaceMacAddress *string `locationName:"trunkInterfaceMacAddress" type:"string"` - - VlanId *string `locationName:"vlanId" type:"string"` -} - -// String returns the string representation -func (s NetworkInterfaceVlanProperties) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s NetworkInterfaceVlanProperties) GoString() string { - return s.String() -} - -type PayloadInput struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - SeqNum *int64 `locationName:"seqNum" type:"integer"` - - Tasks []*Task `locationName:"tasks" type:"list"` - - Timeline *int64 `locationName:"timeline" type:"long"` -} - -// String returns the string representation -func (s PayloadInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PayloadInput) GoString() string { - return s.String() -} - -type PayloadMessage struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - SeqNum *int64 `locationName:"seqNum" type:"integer"` - - Tasks []*Task `locationName:"tasks" type:"list"` - - Timeline *int64 `locationName:"timeline" type:"long"` -} - -// String returns the string representation -func (s PayloadMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PayloadMessage) GoString() string { - return s.String() -} - -type PayloadOutput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s PayloadOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PayloadOutput) GoString() string { - return s.String() -} - -type PerformUpdateInput struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` - - UpdateInfo *UpdateInfo `locationName:"updateInfo" type:"structure"` -} - -// String returns the string representation -func (s PerformUpdateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PerformUpdateInput) GoString() string { - return s.String() -} - -type PerformUpdateMessage struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` - - UpdateInfo *UpdateInfo `locationName:"updateInfo" type:"structure"` -} - -// String returns the string representation -func (s PerformUpdateMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PerformUpdateMessage) GoString() string { - return s.String() -} - -type PerformUpdateOutput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s PerformUpdateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PerformUpdateOutput) GoString() string { - return s.String() -} - -type PollInput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - ProtocolVersion *int64 `locationName:"protocolVersion" type:"integer"` - - SendCredentials *bool `locationName:"sendCredentials" type:"boolean"` - - SeqNum *int64 `locationName:"seqNum" type:"integer"` - - Timeline *int64 `locationName:"timeline" type:"long"` - - VersionInfo *VersionInfo `locationName:"versionInfo" type:"structure"` -} - -// String returns the string representation -func (s PollInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PollInput) GoString() string { - return s.String() -} - -type PollOutput struct { - _ struct{} `type:"structure"` - - Message *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s PollOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PollOutput) GoString() string { - return s.String() -} - -type PollRequest struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - ProtocolVersion *int64 `locationName:"protocolVersion" type:"integer"` - - SendCredentials *bool `locationName:"sendCredentials" type:"boolean"` - - SeqNum *int64 `locationName:"seqNum" type:"integer"` - - Timeline *int64 `locationName:"timeline" type:"long"` - - VersionInfo *VersionInfo `locationName:"versionInfo" type:"structure"` -} - -// String returns the string representation -func (s PollRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PollRequest) GoString() string { - return s.String() -} - -type PortMapping struct { - _ struct{} `type:"structure"` - - ContainerPort *int64 `locationName:"containerPort" type:"integer"` - - ContainerPortRange *string `locationName:"containerPortRange" type:"string"` - - HostPort *int64 `locationName:"hostPort" type:"integer"` - - Protocol *string `locationName:"protocol" type:"string" enum:"TransportProtocol"` -} - -// String returns the string representation -func (s PortMapping) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s PortMapping) GoString() string { - return s.String() -} - -type ProxyConfiguration struct { - _ struct{} `type:"structure"` - - ContainerName *string `locationName:"containerName" type:"string"` - - Properties map[string]*string `locationName:"properties" type:"map"` - - Type *string `locationName:"type" type:"string" enum:"ProxyConfigurationType"` -} - -// String returns the string representation -func (s ProxyConfiguration) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ProxyConfiguration) GoString() string { - return s.String() -} - -type RefreshTaskIAMRoleCredentialsInput struct { - _ struct{} `type:"structure"` - - MessageId *string `locationName:"messageId" type:"string"` - - RoleCredentials *IAMRoleCredentials `locationName:"roleCredentials" type:"structure"` - - RoleType *string `locationName:"roleType" type:"string" enum:"RoleType"` - - TaskArn *string `locationName:"taskArn" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` -} - -// String returns the string representation -func (s RefreshTaskIAMRoleCredentialsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RefreshTaskIAMRoleCredentialsInput) GoString() string { - return s.String() -} - -type RefreshTaskIAMRoleCredentialsOutput struct { - _ struct{} `type:"structure"` - - CredentialsId *string `locationName:"credentialsId" type:"string"` - - Expiration *string `locationName:"expiration" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s RefreshTaskIAMRoleCredentialsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RefreshTaskIAMRoleCredentialsOutput) GoString() string { - return s.String() -} - -type RegistryAuthenticationData struct { - _ struct{} `type:"structure"` - - AsmAuthData *ASMAuthData `locationName:"asmAuthData" type:"structure"` - - EcrAuthData *ECRAuthData `locationName:"ecrAuthData" type:"structure"` - - Type *string `locationName:"type" type:"string" enum:"AuthenticationType"` -} - -// String returns the string representation -func (s RegistryAuthenticationData) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s RegistryAuthenticationData) GoString() string { - return s.String() -} - -type Secret struct { - _ struct{} `type:"structure"` - - ContainerPath *string `locationName:"containerPath" type:"string"` - - Name *string `locationName:"name" type:"string"` - - Provider *string `locationName:"provider" type:"string" enum:"SecretProvider"` - - Region *string `locationName:"region" type:"string"` - - Target *string `locationName:"target" type:"string" enum:"SecretTarget"` - - Type *string `locationName:"type" type:"string" enum:"SecretType"` - - ValueFrom *string `locationName:"valueFrom" type:"string"` -} - -// String returns the string representation -func (s Secret) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Secret) GoString() string { - return s.String() -} - -type ServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation -func (s ServerException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ServerException) GoString() string { - return s.String() -} - -func newErrorServerException(v protocol.ResponseMetadata) error { - return &ServerException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServerException) Code() string { - return "ServerException" -} - -// Message returns the exception's message. -func (s *ServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServerException) OrigErr() error { - return nil -} - -func (s *ServerException) 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 *ServerException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ServerException) RequestID() string { - return s.RespMetadata.RequestID -} - -type StageUpdateInput struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` - - UpdateInfo *UpdateInfo `locationName:"updateInfo" type:"structure"` -} - -// String returns the string representation -func (s StageUpdateInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StageUpdateInput) GoString() string { - return s.String() -} - -type StageUpdateMessage struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` - - UpdateInfo *UpdateInfo `locationName:"updateInfo" type:"structure"` -} - -// String returns the string representation -func (s StageUpdateMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StageUpdateMessage) GoString() string { - return s.String() -} - -type StageUpdateOutput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s StageUpdateOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StageUpdateOutput) GoString() string { - return s.String() -} - -type Task struct { - _ struct{} `type:"structure"` - - AgentConfiguration *string `locationName:"agentConfiguration" type:"string"` - - Arn *string `locationName:"arn" type:"string"` - - Associations []*Association `locationName:"associations" type:"list"` - - Attachments []*Attachment `locationName:"attachments" type:"list"` - - Containers []*Container `locationName:"containers" type:"list"` - - Cpu *float64 `locationName:"cpu" type:"double"` - - DesiredStatus *string `locationName:"desiredStatus" type:"string"` - - ElasticNetworkInterfaces []*ElasticNetworkInterface `locationName:"elasticNetworkInterfaces" type:"list"` - - ExecutionRoleCredentials *IAMRoleCredentials `locationName:"executionRoleCredentials" type:"structure"` - - Family *string `locationName:"family" type:"string"` - - IpcMode *string `locationName:"ipcMode" type:"string"` - - LaunchType *string `locationName:"launchType" type:"string"` - - Memory *int64 `locationName:"memory" type:"integer"` - - NetworkMode *string `locationName:"networkMode" type:"string"` - - Overrides *string `locationName:"overrides" type:"string"` - - PidMode *string `locationName:"pidMode" type:"string"` - - ProxyConfiguration *ProxyConfiguration `locationName:"proxyConfiguration" type:"structure"` - - RoleCredentials *IAMRoleCredentials `locationName:"roleCredentials" type:"structure"` - - ServiceName *string `locationName:"serviceName" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` - - TaskDefinitionAccountId *string `locationName:"taskDefinitionAccountId" type:"string"` - - Version *string `locationName:"version" type:"string"` - - Volumes []*Volume `locationName:"volumes" type:"list"` - - Zone *string `locationName:"zone" type:"string"` -} - -// String returns the string representation -func (s Task) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Task) GoString() string { - return s.String() -} - -type TaskIdentifier struct { - _ struct{} `type:"structure"` - - DesiredStatus *string `locationName:"desiredStatus" type:"string"` - - TaskArn *string `locationName:"taskArn" type:"string"` - - TaskClusterArn *string `locationName:"taskClusterArn" type:"string"` -} - -// String returns the string representation -func (s TaskIdentifier) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskIdentifier) GoString() string { - return s.String() -} - -type TaskManifestInput struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - Tasks []*TaskIdentifier `locationName:"tasks" type:"list"` - - Timeline *int64 `locationName:"timeline" type:"long"` -} - -// String returns the string representation -func (s TaskManifestInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskManifestInput) GoString() string { - return s.String() -} - -type TaskManifestMessage struct { - _ struct{} `type:"structure"` - - ClusterArn *string `locationName:"clusterArn" type:"string"` - - ContainerInstanceArn *string `locationName:"containerInstanceArn" type:"string"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - Tasks []*TaskIdentifier `locationName:"tasks" type:"list"` - - Timeline *int64 `locationName:"timeline" type:"long"` -} - -// String returns the string representation -func (s TaskManifestMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskManifestMessage) GoString() string { - return s.String() -} - -type TaskManifestOutput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` -} - -// String returns the string representation -func (s TaskManifestOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskManifestOutput) GoString() string { - return s.String() -} - -type TaskStopVerificationAck struct { - _ struct{} `type:"structure"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - StopTasks []*TaskIdentifier `locationName:"stopTasks" type:"list"` -} - -// String returns the string representation -func (s TaskStopVerificationAck) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskStopVerificationAck) GoString() string { - return s.String() -} - -type TaskStopVerificationInput struct { - _ struct{} `type:"structure"` - - MessageId *string `locationName:"messageId" type:"string"` - - StopCandidates []*TaskIdentifier `locationName:"stopCandidates" type:"list"` -} - -// String returns the string representation -func (s TaskStopVerificationInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskStopVerificationInput) GoString() string { - return s.String() -} - -type TaskStopVerificationMessage struct { - _ struct{} `type:"structure"` - - MessageId *string `locationName:"messageId" type:"string"` - - StopCandidates []*TaskIdentifier `locationName:"stopCandidates" type:"list"` -} - -// String returns the string representation -func (s TaskStopVerificationMessage) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskStopVerificationMessage) GoString() string { - return s.String() -} - -type TaskStopVerificationOutput struct { - _ struct{} `type:"structure"` - - GeneratedAt *int64 `locationName:"generatedAt" type:"long"` - - MessageId *string `locationName:"messageId" type:"string"` - - StopTasks []*TaskIdentifier `locationName:"stopTasks" type:"list"` -} - -// String returns the string representation -func (s TaskStopVerificationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s TaskStopVerificationOutput) GoString() string { - return s.String() -} - -type UpdateFailureInput struct { - _ struct{} `type:"structure"` - - Cluster *string `locationName:"cluster" type:"string"` - - ContainerInstance *string `locationName:"containerInstance" type:"string"` - - MessageId *string `locationName:"messageId" type:"string"` - - Reason *string `locationName:"reason" type:"string"` -} - -// String returns the string representation -func (s UpdateFailureInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFailureInput) GoString() string { - return s.String() -} - -type UpdateFailureOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateFailureOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateFailureOutput) GoString() string { - return s.String() -} - -type UpdateInfo struct { - _ struct{} `type:"structure"` - - Location *string `locationName:"location" type:"string"` - - Signature *string `locationName:"signature" type:"string"` -} - -// String returns the string representation -func (s UpdateInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateInfo) GoString() string { - return s.String() -} - -type VersionInfo struct { - _ struct{} `type:"structure"` - - AgentHash *string `locationName:"agentHash" type:"string"` - - AgentVersion *string `locationName:"agentVersion" type:"string"` - - DockerVersion *string `locationName:"dockerVersion" type:"string"` -} - -// String returns the string representation -func (s VersionInfo) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VersionInfo) GoString() string { - return s.String() -} - -type Volume struct { - _ struct{} `type:"structure"` - - DockerVolumeConfiguration *DockerVolumeConfiguration `locationName:"dockerVolumeConfiguration" type:"structure"` - - EbsVolumeConfiguration *EBSVolumeConfiguration `locationName:"ebsVolumeConfiguration" type:"structure"` - - EfsVolumeConfiguration *EFSVolumeConfiguration `locationName:"efsVolumeConfiguration" type:"structure"` - - FsxWindowsFileServerVolumeConfiguration *FSxWindowsFileServerVolumeConfiguration `locationName:"fsxWindowsFileServerVolumeConfiguration" type:"structure"` - - Host *HostVolumeProperties `locationName:"host" type:"structure"` - - Name *string `locationName:"name" type:"string"` - - Type *string `locationName:"type" type:"string" enum:"VolumeType"` -} - -// String returns the string representation -func (s Volume) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Volume) GoString() string { - return s.String() -} - -type VolumeFrom struct { - _ struct{} `type:"structure"` - - ReadOnly *bool `locationName:"readOnly" type:"boolean"` - - SourceContainer *string `locationName:"sourceContainer" type:"string"` -} - -// String returns the string representation -func (s VolumeFrom) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s VolumeFrom) GoString() string { - return s.String() -}