mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+136
-154
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package opsworkscm provides a client for AWS OpsWorks for Chef Automate.
|
||||
package opsworkscm
|
||||
|
||||
import (
|
||||
@@ -15,19 +14,18 @@ const opAssociateNode = "AssociateNode"
|
||||
|
||||
// AssociateNodeRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AssociateNode operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See AssociateNode for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AssociateNode method directly
|
||||
// instead.
|
||||
// See AssociateNode for more information on using the AssociateNode
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AssociateNodeRequest method.
|
||||
// req, resp := client.AssociateNodeRequest(params)
|
||||
@@ -114,19 +112,18 @@ const opCreateBackup = "CreateBackup"
|
||||
|
||||
// CreateBackupRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateBackup operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateBackup for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateBackup method directly
|
||||
// instead.
|
||||
// See CreateBackup for more information on using the CreateBackup
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateBackupRequest method.
|
||||
// req, resp := client.CreateBackupRequest(params)
|
||||
@@ -217,19 +214,18 @@ const opCreateServer = "CreateServer"
|
||||
|
||||
// CreateServerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateServer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateServer for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateServer method directly
|
||||
// instead.
|
||||
// See CreateServer for more information on using the CreateServer
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateServerRequest method.
|
||||
// req, resp := client.CreateServerRequest(params)
|
||||
@@ -326,19 +322,18 @@ const opDeleteBackup = "DeleteBackup"
|
||||
|
||||
// DeleteBackupRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteBackup operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteBackup for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteBackup method directly
|
||||
// instead.
|
||||
// See DeleteBackup for more information on using the DeleteBackup
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteBackupRequest method.
|
||||
// req, resp := client.DeleteBackupRequest(params)
|
||||
@@ -418,19 +413,18 @@ const opDeleteServer = "DeleteServer"
|
||||
|
||||
// DeleteServerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteServer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteServer for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteServer method directly
|
||||
// instead.
|
||||
// See DeleteServer for more information on using the DeleteServer
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteServerRequest method.
|
||||
// req, resp := client.DeleteServerRequest(params)
|
||||
@@ -515,19 +509,18 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes"
|
||||
|
||||
// DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAccountAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeAccountAttributes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAccountAttributes method directly
|
||||
// instead.
|
||||
// See DescribeAccountAttributes for more information on using the DescribeAccountAttributes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAccountAttributesRequest method.
|
||||
// req, resp := client.DescribeAccountAttributesRequest(params)
|
||||
@@ -593,19 +586,18 @@ const opDescribeBackups = "DescribeBackups"
|
||||
|
||||
// DescribeBackupsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeBackups operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeBackups for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeBackups method directly
|
||||
// instead.
|
||||
// See DescribeBackups for more information on using the DescribeBackups
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeBackupsRequest method.
|
||||
// req, resp := client.DescribeBackupsRequest(params)
|
||||
@@ -685,19 +677,18 @@ const opDescribeEvents = "DescribeEvents"
|
||||
|
||||
// DescribeEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeEvents for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeEvents method directly
|
||||
// instead.
|
||||
// See DescribeEvents for more information on using the DescribeEvents
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeEventsRequest method.
|
||||
// req, resp := client.DescribeEventsRequest(params)
|
||||
@@ -777,19 +768,18 @@ const opDescribeNodeAssociationStatus = "DescribeNodeAssociationStatus"
|
||||
|
||||
// DescribeNodeAssociationStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeNodeAssociationStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeNodeAssociationStatus for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeNodeAssociationStatus method directly
|
||||
// instead.
|
||||
// See DescribeNodeAssociationStatus for more information on using the DescribeNodeAssociationStatus
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeNodeAssociationStatusRequest method.
|
||||
// req, resp := client.DescribeNodeAssociationStatusRequest(params)
|
||||
@@ -864,19 +854,18 @@ const opDescribeServers = "DescribeServers"
|
||||
|
||||
// DescribeServersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeServers operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeServers for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeServers method directly
|
||||
// instead.
|
||||
// See DescribeServers for more information on using the DescribeServers
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeServersRequest method.
|
||||
// req, resp := client.DescribeServersRequest(params)
|
||||
@@ -957,19 +946,18 @@ const opDisassociateNode = "DisassociateNode"
|
||||
|
||||
// DisassociateNodeRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DisassociateNode operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DisassociateNode for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DisassociateNode method directly
|
||||
// instead.
|
||||
// See DisassociateNode for more information on using the DisassociateNode
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DisassociateNodeRequest method.
|
||||
// req, resp := client.DisassociateNodeRequest(params)
|
||||
@@ -1052,19 +1040,18 @@ const opRestoreServer = "RestoreServer"
|
||||
|
||||
// RestoreServerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RestoreServer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RestoreServer for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RestoreServer method directly
|
||||
// instead.
|
||||
// See RestoreServer for more information on using the RestoreServer
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RestoreServerRequest method.
|
||||
// req, resp := client.RestoreServerRequest(params)
|
||||
@@ -1149,19 +1136,18 @@ const opStartMaintenance = "StartMaintenance"
|
||||
|
||||
// StartMaintenanceRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StartMaintenance operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See StartMaintenance for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the StartMaintenance method directly
|
||||
// instead.
|
||||
// See StartMaintenance for more information on using the StartMaintenance
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the StartMaintenanceRequest method.
|
||||
// req, resp := client.StartMaintenanceRequest(params)
|
||||
@@ -1244,19 +1230,18 @@ const opUpdateServer = "UpdateServer"
|
||||
|
||||
// UpdateServerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateServer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateServer for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateServer method directly
|
||||
// instead.
|
||||
// See UpdateServer for more information on using the UpdateServer
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateServerRequest method.
|
||||
// req, resp := client.UpdateServerRequest(params)
|
||||
@@ -1333,19 +1318,18 @@ const opUpdateServerEngineAttributes = "UpdateServerEngineAttributes"
|
||||
|
||||
// UpdateServerEngineAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateServerEngineAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See UpdateServerEngineAttributes for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateServerEngineAttributes method directly
|
||||
// instead.
|
||||
// See UpdateServerEngineAttributes for more information on using the UpdateServerEngineAttributes
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateServerEngineAttributesRequest method.
|
||||
// req, resp := client.UpdateServerEngineAttributesRequest(params)
|
||||
@@ -2651,7 +2635,6 @@ type DescribeNodeAssociationStatusOutput struct {
|
||||
// * FAILED: The association or disassociation failed.
|
||||
//
|
||||
// * IN_PROGRESS: The association or disassociation is still in progress.
|
||||
//
|
||||
NodeAssociationStatus *string `type:"string" enum:"NodeAssociationStatus"`
|
||||
}
|
||||
|
||||
@@ -3608,7 +3591,6 @@ const (
|
||||
// * FAILED: The association or disassociation failed.
|
||||
//
|
||||
// * IN_PROGRESS: The association or disassociation is still in progress.
|
||||
//
|
||||
const (
|
||||
// NodeAssociationStatusSuccess is a NodeAssociationStatus enum value
|
||||
NodeAssociationStatusSuccess = "SUCCESS"
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package opsworkscm provides the client and types for making API
|
||||
// requests to AWS OpsWorks for Chef Automate.
|
||||
//
|
||||
// AWS OpsWorks for Chef Automate is a service that runs and manages configuration
|
||||
// management servers.
|
||||
//
|
||||
// Glossary of terms
|
||||
//
|
||||
// * Server: A configuration management server that can be highly-available.
|
||||
// The configuration manager runs on your instances by using various AWS
|
||||
// services, such as Amazon Elastic Compute Cloud (EC2), and potentially
|
||||
// Amazon Relational Database Service (RDS). A server is a generic abstraction
|
||||
// over the configuration manager that you want to use, much like Amazon
|
||||
// RDS. In AWS OpsWorks for Chef Automate, you do not start or stop servers.
|
||||
// After you create servers, they continue to run until they are deleted.
|
||||
//
|
||||
// * Engine: The specific configuration manager that you want to use (such
|
||||
// as Chef) is the engine.
|
||||
//
|
||||
// * Backup: This is an application-level backup of the data that the configuration
|
||||
// manager stores. A backup creates a .tar.gz file that is stored in an Amazon
|
||||
// Simple Storage Service (S3) bucket in your account. AWS OpsWorks for Chef
|
||||
// Automate creates the S3 bucket when you launch the first instance. A backup
|
||||
// maintains a snapshot of all of a server's important attributes at the
|
||||
// time of the backup.
|
||||
//
|
||||
// * Events: Events are always related to a server. Events are written during
|
||||
// server creation, when health checks run, when backups are created, etc.
|
||||
// When you delete a server, the server's events are also deleted.
|
||||
//
|
||||
// * AccountAttributes: Every account has attributes that are assigned in
|
||||
// the AWS OpsWorks for Chef Automate database. These attributes store information
|
||||
// about configuration limits (servers, backups, etc.) and your customer
|
||||
// account.
|
||||
//
|
||||
// Endpoints
|
||||
//
|
||||
// AWS OpsWorks for Chef Automate supports the following endpoints, all HTTPS.
|
||||
// You must connect to one of the following endpoints. Chef servers can only
|
||||
// be accessed or managed within the endpoint in which they are created.
|
||||
//
|
||||
// * opsworks-cm.us-east-1.amazonaws.com
|
||||
//
|
||||
// * opsworks-cm.us-west-2.amazonaws.com
|
||||
//
|
||||
// * opsworks-cm.eu-west-1.amazonaws.com
|
||||
//
|
||||
// Throttling limits
|
||||
//
|
||||
// All API operations allow for five requests per second with a burst of 10
|
||||
// requests per second.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01 for more information on this service.
|
||||
//
|
||||
// See opsworkscm package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/opsworkscm/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS OpsWorks for Chef Automate with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS OpsWorks for Chef Automate client OpsWorksCM for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/opsworkscm/#New
|
||||
package opsworkscm
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package opsworkscm
|
||||
|
||||
|
||||
-391
@@ -1,391 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package opsworkscm_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/opsworkscm"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleOpsWorksCM_AssociateNode() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.AssociateNodeInput{
|
||||
EngineAttributes: []*opsworkscm.EngineAttribute{ // Required
|
||||
{ // Required
|
||||
Name: aws.String("EngineAttributeName"),
|
||||
Value: aws.String("EngineAttributeValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
NodeName: aws.String("NodeName"), // Required
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
}
|
||||
resp, err := svc.AssociateNode(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_CreateBackup() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.CreateBackupInput{
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
Description: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.CreateBackup(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_CreateServer() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.CreateServerInput{
|
||||
InstanceProfileArn: aws.String("InstanceProfileArn"), // Required
|
||||
InstanceType: aws.String("String"), // Required
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
ServiceRoleArn: aws.String("ServiceRoleArn"), // Required
|
||||
AssociatePublicIpAddress: aws.Bool(true),
|
||||
BackupId: aws.String("BackupId"),
|
||||
BackupRetentionCount: aws.Int64(1),
|
||||
DisableAutomatedBackup: aws.Bool(true),
|
||||
Engine: aws.String("String"),
|
||||
EngineAttributes: []*opsworkscm.EngineAttribute{
|
||||
{ // Required
|
||||
Name: aws.String("EngineAttributeName"),
|
||||
Value: aws.String("EngineAttributeValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
EngineModel: aws.String("String"),
|
||||
EngineVersion: aws.String("String"),
|
||||
KeyPair: aws.String("KeyPair"),
|
||||
PreferredBackupWindow: aws.String("TimeWindowDefinition"),
|
||||
PreferredMaintenanceWindow: aws.String("TimeWindowDefinition"),
|
||||
SecurityGroupIds: []*string{
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
SubnetIds: []*string{
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateServer(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DeleteBackup() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.DeleteBackupInput{
|
||||
BackupId: aws.String("BackupId"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteBackup(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DeleteServer() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.DeleteServerInput{
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteServer(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DescribeAccountAttributes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
var params *opsworkscm.DescribeAccountAttributesInput
|
||||
resp, err := svc.DescribeAccountAttributes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DescribeBackups() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.DescribeBackupsInput{
|
||||
BackupId: aws.String("BackupId"),
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
ServerName: aws.String("ServerName"),
|
||||
}
|
||||
resp, err := svc.DescribeBackups(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DescribeEvents() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.DescribeEventsInput{
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.DescribeEvents(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DescribeNodeAssociationStatus() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.DescribeNodeAssociationStatusInput{
|
||||
NodeAssociationStatusToken: aws.String("NodeAssociationStatusToken"), // Required
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeNodeAssociationStatus(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DescribeServers() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.DescribeServersInput{
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
ServerName: aws.String("ServerName"),
|
||||
}
|
||||
resp, err := svc.DescribeServers(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_DisassociateNode() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.DisassociateNodeInput{
|
||||
NodeName: aws.String("NodeName"), // Required
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
EngineAttributes: []*opsworkscm.EngineAttribute{
|
||||
{ // Required
|
||||
Name: aws.String("EngineAttributeName"),
|
||||
Value: aws.String("EngineAttributeValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DisassociateNode(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_RestoreServer() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.RestoreServerInput{
|
||||
BackupId: aws.String("BackupId"), // Required
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
InstanceType: aws.String("String"),
|
||||
KeyPair: aws.String("KeyPair"),
|
||||
}
|
||||
resp, err := svc.RestoreServer(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_StartMaintenance() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.StartMaintenanceInput{
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
}
|
||||
resp, err := svc.StartMaintenance(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_UpdateServer() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.UpdateServerInput{
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
BackupRetentionCount: aws.Int64(1),
|
||||
DisableAutomatedBackup: aws.Bool(true),
|
||||
PreferredBackupWindow: aws.String("TimeWindowDefinition"),
|
||||
PreferredMaintenanceWindow: aws.String("TimeWindowDefinition"),
|
||||
}
|
||||
resp, err := svc.UpdateServer(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleOpsWorksCM_UpdateServerEngineAttributes() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := opsworkscm.New(sess)
|
||||
|
||||
params := &opsworkscm.UpdateServerEngineAttributesInput{
|
||||
AttributeName: aws.String("AttributeName"), // Required
|
||||
ServerName: aws.String("ServerName"), // Required
|
||||
AttributeValue: aws.String("AttributeValue"),
|
||||
}
|
||||
resp, err := svc.UpdateServerEngineAttributes(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package opsworkscmiface provides an interface to enable mocking the AWS OpsWorks for Chef Automate service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS OpsWorks for Chef Automate.
|
||||
|
||||
+6
-51
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package opsworkscm
|
||||
|
||||
@@ -11,57 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// AWS OpsWorks for Chef Automate is a service that runs and manages configuration
|
||||
// management servers.
|
||||
// OpsWorksCM provides the API operation methods for making requests to
|
||||
// AWS OpsWorks for Chef Automate. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Glossary of terms
|
||||
//
|
||||
// * Server: A configuration management server that can be highly-available.
|
||||
// The configuration manager runs on your instances by using various AWS
|
||||
// services, such as Amazon Elastic Compute Cloud (EC2), and potentially
|
||||
// Amazon Relational Database Service (RDS). A server is a generic abstraction
|
||||
// over the configuration manager that you want to use, much like Amazon
|
||||
// RDS. In AWS OpsWorks for Chef Automate, you do not start or stop servers.
|
||||
// After you create servers, they continue to run until they are deleted.
|
||||
//
|
||||
// * Engine: The specific configuration manager that you want to use (such
|
||||
// as Chef) is the engine.
|
||||
//
|
||||
// * Backup: This is an application-level backup of the data that the configuration
|
||||
// manager stores. A backup creates a .tar.gz file that is stored in an Amazon
|
||||
// Simple Storage Service (S3) bucket in your account. AWS OpsWorks for Chef
|
||||
// Automate creates the S3 bucket when you launch the first instance. A backup
|
||||
// maintains a snapshot of all of a server's important attributes at the
|
||||
// time of the backup.
|
||||
//
|
||||
// * Events: Events are always related to a server. Events are written during
|
||||
// server creation, when health checks run, when backups are created, etc.
|
||||
// When you delete a server, the server's events are also deleted.
|
||||
//
|
||||
// * AccountAttributes: Every account has attributes that are assigned in
|
||||
// the AWS OpsWorks for Chef Automate database. These attributes store information
|
||||
// about configuration limits (servers, backups, etc.) and your customer
|
||||
// account.
|
||||
//
|
||||
// Endpoints
|
||||
//
|
||||
// AWS OpsWorks for Chef Automate supports the following endpoints, all HTTPS.
|
||||
// You must connect to one of the following endpoints. Chef servers can only
|
||||
// be accessed or managed within the endpoint in which they are created.
|
||||
//
|
||||
// * opsworks-cm.us-east-1.amazonaws.com
|
||||
//
|
||||
// * opsworks-cm.us-west-2.amazonaws.com
|
||||
//
|
||||
// * opsworks-cm.eu-west-1.amazonaws.com
|
||||
//
|
||||
// Throttling limits
|
||||
//
|
||||
// All API operations allow for five requests per second with a burst of 10
|
||||
// requests per second.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01
|
||||
// OpsWorksCM methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type OpsWorksCM struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user