Skip to content

Commit

Permalink
service/elasticbeanstalk: Add support to AWS Elastic Beanstalk
Browse files Browse the repository at this point in the history
AWS Elastic Beanstalk

Increase max envrironment name size
Add three fields to SingleInstanceHealth
  • Loading branch information
xibz committed Apr 7, 2016
1 parent b2dae6c commit b46c04f
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 5 deletions.
21 changes: 19 additions & 2 deletions models/apis/elasticbeanstalk/2010-12-01/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,16 @@
}
},
"DeleteSourceBundle":{"type":"boolean"},
"Deployment":{
"type":"structure",
"members":{
"VersionLabel":{"shape":"String"},
"DeploymentId":{"shape":"NullableLong"},
"Status":{"shape":"String"},
"DeploymentTime":{"shape":"DeploymentTimestamp"}
}
},
"DeploymentTimestamp":{"type":"timestamp"},
"DescribeApplicationVersionsMessage":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -1038,7 +1048,7 @@
},
"EnvironmentName":{
"type":"string",
"max":23,
"max":40,
"min":4
},
"EnvironmentNamesList":{
Expand Down Expand Up @@ -1180,6 +1190,9 @@
"RefreshedAt",
"LaunchedAt",
"System",
"Deployment",
"AvailabilityZone",
"InstanceType",
"All"
]
},
Expand Down Expand Up @@ -1288,6 +1301,7 @@
},
"NullableDouble":{"type":"double"},
"NullableInteger":{"type":"integer"},
"NullableLong":{"type":"long"},
"OperationInProgressException":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -1429,7 +1443,10 @@
"Causes":{"shape":"Causes"},
"LaunchedAt":{"shape":"LaunchedAt"},
"ApplicationMetrics":{"shape":"ApplicationMetrics"},
"System":{"shape":"SystemStatus"}
"System":{"shape":"SystemStatus"},
"Deployment":{"shape":"Deployment"},
"AvailabilityZone":{"shape":"String"},
"InstanceType":{"shape":"String"}
}
},
"SolutionStackDescription":{
Expand Down
26 changes: 24 additions & 2 deletions models/apis/elasticbeanstalk/2010-12-01/docs-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,18 @@
"DeleteApplicationVersionMessage$DeleteSourceBundle": "<p>Indicates whether to delete the associated source bundle from Amazon S3: </p> <ul> <li> <code>true</code>: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation. </li> <li> <code>false</code>: No action is taken on the Amazon S3 source bundle specified at time of creation. </li> </ul> <p> Valid Values: <code>true</code> | <code>false</code> </p>"
}
},
"Deployment": {
"base": "<p>Information about an application version deployment.</p>",
"refs": {
"SingleInstanceHealth$Deployment": "<p>Information about the most recent deployment to an instance.</p>"
}
},
"DeploymentTimestamp": {
"base": null,
"refs": {
"Deployment$DeploymentTime": "<p>For in-progress deployments, the time that the deloyment started.</p> <p>For completed deployments, the time that the deployment ended.</p>"
}
},
"DescribeApplicationVersionsMessage": {
"base": "<p>Result message containing a list of configuration descriptions.</p>",
"refs": {
Expand Down Expand Up @@ -621,7 +633,7 @@
"refs": {
"AbortEnvironmentUpdateMessage$EnvironmentName": "<p>This specifies the name of the environment with the in-progress update that you want to cancel.</p>",
"ConfigurationSettingsDescription$EnvironmentName": "<p> If not <code>null</code>, the name of the environment for this configuration set. </p>",
"CreateEnvironmentMessage$EnvironmentName": "<p> A unique name for the deployment environment. Used in the application URL. </p> <p>Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an <code>InvalidParameterValue</code> error. </p> <p>Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.</p>",
"CreateEnvironmentMessage$EnvironmentName": "<p> A unique name for the deployment environment. Used in the application URL. </p> <p>Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an <code>InvalidParameterValue</code> error. </p> <p>Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.</p>",
"DeleteEnvironmentConfigurationMessage$EnvironmentName": "<p>The name of the environment to delete the draft configuration from.</p>",
"DescribeConfigurationOptionsMessage$EnvironmentName": "<p> The name of the environment whose configuration options you want to describe. </p>",
"DescribeConfigurationSettingsMessage$EnvironmentName": "<p> The name of the environment to describe. </p> <p> Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an <code>InvalidParameterCombination</code> error. If you do not specify either, AWS Elastic Beanstalk returns <code>MissingRequiredParameter</code> error. </p>",
Expand Down Expand Up @@ -942,6 +954,12 @@
"StatusCodes$Status5xx": "<p>The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.</p>"
}
},
"NullableLong": {
"base": null,
"refs": {
"Deployment$DeploymentId": "<p>The ID of the deployment. This number increases by one each time that you deploy source code or change instance configuration settings.</p>"
}
},
"OperationInProgressException": {
"base": "<p>Unable to perform the specified operation because another operation that effects an element in this activity is already in progress.</p>",
"refs": {
Expand Down Expand Up @@ -1169,6 +1187,8 @@
"String": {
"base": null,
"refs": {
"Deployment$VersionLabel": "<p>The version label of the application version in the deployment.</p>",
"Deployment$Status": "<p>The status of the deployment:</p> <ul> <li> <code>In Progress</code> : The deployment is in progress.</li> <li> <code>Deployed</code> : The deployment succeeded.</li> <li> <code>Failed</code> : The deployment failed.</li> </ul>",
"DescribeEnvironmentHealthResult$HealthStatus": "<p>Contains the response body with information about the health of the environment.</p>",
"DescribeEnvironmentHealthResult$Color": "<p>Returns the color indicator that tells you information about the health of the environment. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html\">Health Colors and Statuses</a>.</p>",
"EnvironmentLink$LinkName": "<p>The name of the link.</p>",
Expand All @@ -1182,7 +1202,9 @@
"Queue$Name": "<p>The name of the queue.</p>",
"Queue$URL": "<p>The URL of the queue.</p>",
"SingleInstanceHealth$HealthStatus": "<p>Returns the health status of the specified instance. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html\">Health Colors and Statuses</a>.</p>",
"SingleInstanceHealth$Color": "<p>Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html\">Health Colors and Statuses</a>.</p>"
"SingleInstanceHealth$Color": "<p>Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see <a href=\"http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html\">Health Colors and Statuses</a>.</p>",
"SingleInstanceHealth$AvailabilityZone": "<p>The availability zone in which the instance runs.</p>",
"SingleInstanceHealth$InstanceType": "<p>The instance's type.</p>"
}
},
"SwapEnvironmentCNAMEsMessage": {
Expand Down
50 changes: 49 additions & 1 deletion service/elasticbeanstalk/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ type CreateEnvironmentInput struct {

// A unique name for the deployment environment. Used in the application URL.
//
// Constraint: Must be from 4 to 23 characters in length. The name can contain
// Constraint: Must be from 4 to 40 characters in length. The name can contain
// only letters, numbers, and hyphens. It cannot start or end with a hyphen.
// This name must be unique in your account. If the specified name already exists,
// AWS Elastic Beanstalk returns an InvalidParameterValue error.
Expand Down Expand Up @@ -1935,6 +1935,39 @@ func (s DeleteEnvironmentConfigurationOutput) GoString() string {
return s.String()
}

// Information about an application version deployment.
type Deployment struct {
_ struct{} `type:"structure"`

// The ID of the deployment. This number increases by one each time that you
// deploy source code or change instance configuration settings.
DeploymentId *int64 `type:"long"`

// For in-progress deployments, the time that the deloyment started.
//
// For completed deployments, the time that the deployment ended.
DeploymentTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`

// The status of the deployment:
//
// In Progress : The deployment is in progress. Deployed : The deployment
// succeeded. Failed : The deployment failed.
Status *string `type:"string"`

// The version label of the application version in the deployment.
VersionLabel *string `type:"string"`
}

// String returns the string representation
func (s Deployment) String() string {
return awsutil.Prettify(s)
}

// GoString returns the string representation
func (s Deployment) GoString() string {
return s.String()
}

// Result message containing a list of configuration descriptions.
type DescribeApplicationVersionsInput struct {
_ struct{} `type:"structure"`
Expand Down Expand Up @@ -3213,6 +3246,9 @@ type SingleInstanceHealth struct {
// Represents the application metrics for a specified environment.
ApplicationMetrics *ApplicationMetrics `type:"structure"`

// The availability zone in which the instance runs.
AvailabilityZone *string `type:"string"`

// Represents the causes, which provide more information about the current health
// status.
Causes []*string `type:"list"`
Expand All @@ -3222,13 +3258,19 @@ type SingleInstanceHealth struct {
// (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
Color *string `type:"string"`

// Information about the most recent deployment to an instance.
Deployment *Deployment `type:"structure"`

// Returns the health status of the specified instance. For more information,
// see Health Colors and Statuses (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/health-enhanced-status.html).
HealthStatus *string `type:"string"`

// The ID of the Amazon EC2 instance.
InstanceId *string `min:"1" type:"string"`

// The instance's type.
InstanceType *string `type:"string"`

// The time at which the EC2 instance was launched.
LaunchedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`

Expand Down Expand Up @@ -3865,6 +3907,12 @@ const (
// @enum InstancesHealthAttribute
InstancesHealthAttributeSystem = "System"
// @enum InstancesHealthAttribute
InstancesHealthAttributeDeployment = "Deployment"
// @enum InstancesHealthAttribute
InstancesHealthAttributeAvailabilityZone = "AvailabilityZone"
// @enum InstancesHealthAttribute
InstancesHealthAttributeInstanceType = "InstanceType"
// @enum InstancesHealthAttribute
InstancesHealthAttributeAll = "All"
)

Expand Down

0 comments on commit b46c04f

Please sign in to comment.