Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
@@ -0,0 +1,119 @@
{
"version":"2.0",
"metadata":{
"apiVersion":"2018-04-02",
"endpointPrefix":"ec2-instance-connect",
"jsonVersion":"1.1",
"protocol":"json",
"serviceAbbreviation":"EC2 Instance Connect",
"serviceFullName":"AWS EC2 Instance Connect",
"serviceId":"EC2 Instance Connect",
"signatureVersion":"v4",
"targetPrefix":"AWSEC2InstanceConnectService",
"uid":"ec2-instance-connect-2018-04-02"
},
"operations":{
"SendSSHPublicKey":{
"name":"SendSSHPublicKey",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"SendSSHPublicKeyRequest"},
"output":{"shape":"SendSSHPublicKeyResponse"},
"errors":[
{"shape":"AuthException"},
{"shape":"InvalidArgsException"},
{"shape":"ServiceException"},
{"shape":"ThrottlingException"},
{"shape":"EC2InstanceNotFoundException"}
]
}
},
"shapes":{
"AuthException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
},
"AvailabilityZone":{
"type":"string",
"max":32,
"min":6,
"pattern":"^(\\w+-){2,3}\\d+\\w+$"
},
"EC2InstanceNotFoundException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
},
"InstanceId":{
"type":"string",
"max":32,
"min":10,
"pattern":"^i-[a-f0-9]+$"
},
"InstanceOSUser":{
"type":"string",
"max":32,
"min":1,
"pattern":"^[A-Za-z_][A-Za-z0-9\\@\\._-]{0,30}[A-Za-z0-9\\$_-]?$"
},
"InvalidArgsException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
},
"RequestId":{"type":"string"},
"SSHPublicKey":{
"type":"string",
"max":4096,
"min":256
},
"SendSSHPublicKeyRequest":{
"type":"structure",
"required":[
"InstanceId",
"InstanceOSUser",
"SSHPublicKey",
"AvailabilityZone"
],
"members":{
"InstanceId":{"shape":"InstanceId"},
"InstanceOSUser":{"shape":"InstanceOSUser"},
"SSHPublicKey":{"shape":"SSHPublicKey"},
"AvailabilityZone":{"shape":"AvailabilityZone"}
}
},
"SendSSHPublicKeyResponse":{
"type":"structure",
"members":{
"RequestId":{"shape":"RequestId"},
"Success":{"shape":"Success"}
}
},
"ServiceException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true,
"fault":true
},
"String":{"type":"string"},
"Success":{"type":"boolean"},
"ThrottlingException":{
"type":"structure",
"members":{
"Message":{"shape":"String"}
},
"exception":true
}
}
}
@@ -0,0 +1,90 @@
{
"version": "2.0",
"service": "<p>AWS EC2 Connect Service is a service that enables system administrators to publish temporary SSH keys to their EC2 instances in order to establish connections to their instances without leaving a permanent authentication option.</p>",
"operations": {
"SendSSHPublicKey": "<p>Pushes an SSH public key to a particular OS user on a given EC2 instance for 60 seconds.</p>"
},
"shapes": {
"AuthException": {
"base": "<p>Indicates that either your AWS credentials are invalid or you do not have access to the EC2 instance.</p>",
"refs": {
}
},
"AvailabilityZone": {
"base": null,
"refs": {
"SendSSHPublicKeyRequest$AvailabilityZone": "<p>The availability zone the EC2 instance was launched in.</p>"
}
},
"EC2InstanceNotFoundException": {
"base": "<p>Indicates that the instance requested was not found in the given zone. Check that you have provided a valid instance ID and the correct zone.</p>",
"refs": {
}
},
"InstanceId": {
"base": null,
"refs": {
"SendSSHPublicKeyRequest$InstanceId": "<p>The EC2 instance you wish to publish the SSH key to.</p>"
}
},
"InstanceOSUser": {
"base": null,
"refs": {
"SendSSHPublicKeyRequest$InstanceOSUser": "<p>The OS user on the EC2 instance whom the key may be used to authenticate as.</p>"
}
},
"InvalidArgsException": {
"base": "<p>Indicates that you provided bad input. Ensure you have a valid instance ID, the correct zone, and a valid SSH public key.</p>",
"refs": {
}
},
"RequestId": {
"base": null,
"refs": {
"SendSSHPublicKeyResponse$RequestId": "<p>The request ID as logged by EC2 Connect. Please provide this when contacting AWS Support.</p>"
}
},
"SSHPublicKey": {
"base": null,
"refs": {
"SendSSHPublicKeyRequest$SSHPublicKey": "<p>The public key to be published to the instance. To use it after publication you must have the matching private key.</p>"
}
},
"SendSSHPublicKeyRequest": {
"base": null,
"refs": {
}
},
"SendSSHPublicKeyResponse": {
"base": null,
"refs": {
}
},
"ServiceException": {
"base": "<p>Indicates that the service encountered an error. Follow the message's instructions and try again.</p>",
"refs": {
}
},
"String": {
"base": null,
"refs": {
"AuthException$Message": null,
"EC2InstanceNotFoundException$Message": null,
"InvalidArgsException$Message": null,
"ServiceException$Message": null,
"ThrottlingException$Message": null
}
},
"Success": {
"base": null,
"refs": {
"SendSSHPublicKeyResponse$Success": "<p>Indicates request success.</p>"
}
},
"ThrottlingException": {
"base": "<p>Indicates you have been making requests too frequently and have been throttled. Wait for a while and try again. If higher call volume is warranted contact AWS Support.</p>",
"refs": {
}
}
}
}
@@ -0,0 +1,34 @@
{
"version": "1.0",
"examples": {
"SendSSHPublicKey": [
{
"input": {
"AvailabilityZone": "us-west-2a",
"InstanceId": "i-abcd1234",
"InstanceOSUser": "ec2-user",
"SSHPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3FlHqj2eqCdrGHuA6dRjfZXQ4HX5lXEIRHaNbxEwE5Te7xNF7StwhrDtiV7IdT5fDqbRyGw/szPj3xGkNTVoElCZ2dDFb2qYZ1WLIpZwj/UhO9l2mgfjR56UojjQut5Jvn2KZ1OcyrNO0J83kCaJCV7JoVbXY79FBMUccYNY45zmv9+1FMCfY6i2jdIhwR6+yLk8oubL8lIPyq7X+6b9S0yKCkB7Peml1DvghlybpAIUrC9vofHt6XP4V1i0bImw1IlljQS+DUmULRFSccATDscCX9ajnj7Crhm0HAZC0tBPXpFdHkPwL3yzYo546SCS9LKEwz62ymxxbL9k7h09t"
},
"output": {
"RequestId": "abcd1234-abcd-1234-abcd-1234abcd1234",
"Success": true
},
"comments": {
"input": {
"AvailabilityZone": "The zone where the instance was launched",
"InstanceId": "The instance ID to publish the key to.",
"InstanceOSUser": "This should be the user you wish to be when ssh-ing to the instance (eg, ec2-user@[instance IP])",
"SSHPublicKey": "This should be in standard OpenSSH format (ssh-rsa [key body])"
},
"output": {
"RequestId": "This request ID should be provided when contacting AWS Support.",
"Success": "Should be true if the service does not return an error response."
}
},
"description": "The following example pushes a sample SSH public key to the EC2 instance i-abcd1234 in AZ us-west-2b for use by the instance OS user ec2-user.",
"id": "send-ssh-key-to-an-ec2-instance-1518124883100",
"title": "To push an SSH key to an EC2 instance"
}
]
}
}
@@ -0,0 +1,4 @@
{
"pagination": {
}
}