Client library for AWS OpsWorks CM
npm install --save @datafire/amazonaws_opsworks_cm
let amazonaws_opsworks_cm = require('@datafire/amazonaws_opsworks_cm').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
AWS OpsWorks CM
AWS OpsWorks for configuration management (CM) is a service that runs and manages configuration management servers. You can use AWS OpsWorks CM to create and manage AWS OpsWorks for Chef Automate and AWS OpsWorks for Puppet Enterprise servers, and add or remove nodes for the servers to manage.
Glossary of terms
-
Server: A configuration management server that can be highly-available. The configuration management server runs on an Amazon Elastic Compute Cloud (EC2) instance, and may use various other AWS services, such as Amazon Relational Database Service (RDS) and Elastic Load Balancing. A server is a generic abstraction over the configuration manager that you want to use, much like Amazon RDS. In AWS OpsWorks CM, you do not start or stop servers. After you create servers, they continue to run until they are deleted.
-
Engine: The engine is the specific configuration manager that you want to use. Valid values in this release include
ChefAutomate
andPuppet
. -
Backup: This is an application-level backup of the data that the configuration manager stores. AWS OpsWorks CM creates an S3 bucket for backups when you launch the first server. A backup maintains a snapshot of a server's configuration-related attributes at the time the backup starts.
-
Events: Events are always related to a server. Events are written during server creation, when health checks run, when backups are created, when system maintenance is performed, etc. When you delete a server, the server's events are also deleted.
-
Account attributes: Every account has attributes that are assigned in the AWS OpsWorks CM database. These attributes store information about configuration limits (servers, backups, etc.) and your customer account.
Endpoints
AWS OpsWorks CM supports the following endpoints, all HTTPS. You must connect to one of the following endpoints. Your 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-east-2.amazonaws.com
-
opsworks-cm.us-west-1.amazonaws.com
-
opsworks-cm.us-west-2.amazonaws.com
-
opsworks-cm.ap-northeast-1.amazonaws.com
-
opsworks-cm.ap-southeast-1.amazonaws.com
-
opsworks-cm.ap-southeast-2.amazonaws.com
-
opsworks-cm.eu-central-1.amazonaws.com
-
opsworks-cm.eu-west-1.amazonaws.com
For more information, see AWS OpsWorks endpoints and quotas in the AWS General Reference.
Throttling limits
All API operations allow for five requests per second with a burst of 10 requests per second.
amazonaws_opsworks_cm.AssociateNode({
"ServerName": null,
"NodeName": null,
"EngineAttributes": null
}, context)
- input
object
- EngineAttributes required
- items EngineAttribute
- NodeName required
- ServerName required
- EngineAttributes required
- output AssociateNodeResponse
amazonaws_opsworks_cm.CreateBackup({
"ServerName": null
}, context)
- input
object
- Description
- ServerName required
- Tags
- items Tag
- output CreateBackupResponse
amazonaws_opsworks_cm.CreateServer({
"Engine": null,
"ServerName": null,
"InstanceProfileArn": null,
"InstanceType": null,
"ServiceRoleArn": null
}, context)
- input
object
- AssociatePublicIpAddress
- BackupId
- BackupRetentionCount
- CustomCertificate
- CustomDomain
- CustomPrivateKey
- DisableAutomatedBackup
- Engine required
- EngineAttributes
- items EngineAttribute
- EngineModel
- EngineVersion
- InstanceProfileArn required
- InstanceType required
- KeyPair
- PreferredBackupWindow
- PreferredMaintenanceWindow
- SecurityGroupIds
- items String
- ServerName required
- ServiceRoleArn required
- SubnetIds
- items String
- Tags
- items Tag
- output CreateServerResponse
amazonaws_opsworks_cm.DeleteBackup({
"BackupId": null
}, context)
- input
object
- BackupId required
- output DeleteBackupResponse
amazonaws_opsworks_cm.DeleteServer({
"ServerName": null
}, context)
- input
object
- ServerName required
- output DeleteServerResponse
amazonaws_opsworks_cm.DescribeAccountAttributes({}, context)
- input
object
amazonaws_opsworks_cm.DescribeBackups({}, context)
- input
object
- MaxResults
string
- NextToken
string
- BackupId
- MaxResults
- NextToken
- ServerName
- MaxResults
- output DescribeBackupsResponse
amazonaws_opsworks_cm.DescribeEvents({
"ServerName": null
}, context)
- input
object
- MaxResults
string
- NextToken
string
- MaxResults
- NextToken
- ServerName required
- MaxResults
- output DescribeEventsResponse
amazonaws_opsworks_cm.DescribeNodeAssociationStatus({
"NodeAssociationStatusToken": null,
"ServerName": null
}, context)
- input
object
- NodeAssociationStatusToken required
- ServerName required
amazonaws_opsworks_cm.DescribeServers({}, context)
- input
object
- MaxResults
string
- NextToken
string
- MaxResults
- NextToken
- ServerName
- MaxResults
- output DescribeServersResponse
amazonaws_opsworks_cm.DisassociateNode({
"ServerName": null,
"NodeName": null
}, context)
- input
object
- EngineAttributes
- items EngineAttribute
- NodeName required
- ServerName required
- EngineAttributes
- output DisassociateNodeResponse
amazonaws_opsworks_cm.ExportServerEngineAttribute({
"ExportAttributeName": null,
"ServerName": null
}, context)
- input
object
- ExportAttributeName required
- InputAttributes
- items EngineAttribute
- ServerName required
amazonaws_opsworks_cm.ListTagsForResource({
"ResourceArn": null
}, context)
- input
object
- MaxResults
string
- NextToken
string
- MaxResults
- NextToken
- ResourceArn required
- MaxResults
- output ListTagsForResourceResponse
amazonaws_opsworks_cm.RestoreServer({
"BackupId": null,
"ServerName": null
}, context)
- input
object
- BackupId required
- InstanceType
- KeyPair
- ServerName required
- output RestoreServerResponse
amazonaws_opsworks_cm.StartMaintenance({
"ServerName": null
}, context)
- input
object
- EngineAttributes
- items EngineAttribute
- ServerName required
- EngineAttributes
- output StartMaintenanceResponse
amazonaws_opsworks_cm.TagResource({
"ResourceArn": null,
"Tags": null
}, context)
- input
object
- ResourceArn required
- Tags required
- items Tag
- output TagResourceResponse
amazonaws_opsworks_cm.UntagResource({
"ResourceArn": null,
"TagKeys": null
}, context)
- input
object
- ResourceArn required
- TagKeys required
- items TagKey
- output UntagResourceResponse
amazonaws_opsworks_cm.UpdateServer({
"ServerName": null
}, context)
- input
object
- BackupRetentionCount
- DisableAutomatedBackup
- PreferredBackupWindow TimeWindowDefinition
- PreferredMaintenanceWindow TimeWindowDefinition
- ServerName required
- output UpdateServerResponse
amazonaws_opsworks_cm.UpdateServerEngineAttributes({
"ServerName": null,
"AttributeName": null
}, context)
- input
object
- AttributeName required
- AttributeValue
- ServerName required
- AWSOpsWorksCMResourceArn
string
- AccountAttribute
object
: Stores account attributes.- Maximum
- Name
- Used
- AccountAttributes
array
: A list of individual account attributes.- items AccountAttribute
- AssociateNodeRequest
object
- EngineAttributes required
- items EngineAttribute
- NodeName required
- ServerName required
- EngineAttributes required
- AssociateNodeResponse
object
- NodeAssociationStatusToken
- AttributeName
string
- AttributeValue
string
- Backup
object
: Describes a single backup.- BackupArn
- BackupId
- BackupType
- CreatedAt
- Description
- Engine
- EngineModel
- EngineVersion
- InstanceProfileArn
- InstanceType
- KeyPair
- PreferredBackupWindow
- PreferredMaintenanceWindow
- S3DataSize
- S3DataUrl
- S3LogUrl
- SecurityGroupIds
- items String
- ServerName
- ServiceRoleArn
- Status
- StatusDescription
- SubnetIds
- items String
- ToolsVersion
- UserArn
- BackupId
string
- BackupRetentionCountDefinition
integer
- BackupStatus
string
(values: IN_PROGRESS, OK, FAILED, DELETING)
- BackupType
string
(values: AUTOMATED, MANUAL)
- Backups
array
- items Backup
- Boolean
boolean
- CreateBackupRequest
object
- Description
- ServerName required
- Tags
- items Tag
- CreateBackupResponse
object
- Backup
- BackupArn
- BackupId
- BackupType
- CreatedAt
- Description
- Engine
- EngineModel
- EngineVersion
- InstanceProfileArn
- InstanceType
- KeyPair
- PreferredBackupWindow
- PreferredMaintenanceWindow
- S3DataSize
- S3DataUrl
- S3LogUrl
- SecurityGroupIds
- items String
- ServerName
- ServiceRoleArn
- Status
- StatusDescription
- SubnetIds
- items String
- ToolsVersion
- UserArn
- Backup
- CreateServerRequest
object
- AssociatePublicIpAddress
- BackupId
- BackupRetentionCount
- CustomCertificate
- CustomDomain
- CustomPrivateKey
- DisableAutomatedBackup
- Engine required
- EngineAttributes
- items EngineAttribute
- EngineModel
- EngineVersion
- InstanceProfileArn required
- InstanceType required
- KeyPair
- PreferredBackupWindow
- PreferredMaintenanceWindow
- SecurityGroupIds
- items String
- ServerName required
- ServiceRoleArn required
- SubnetIds
- items String
- Tags
- items Tag
- CreateServerResponse
object
- Server
- AssociatePublicIpAddress
- BackupRetentionCount
- CloudFormationStackArn
- CreatedAt
- CustomDomain
- DisableAutomatedBackup
- Endpoint
- Engine
- EngineAttributes
- items EngineAttribute
- EngineModel
- EngineVersion
- InstanceProfileArn
- InstanceType
- KeyPair
- MaintenanceStatus
- PreferredBackupWindow
- PreferredMaintenanceWindow
- SecurityGroupIds
- items String
- ServerArn
- ServerName
- ServiceRoleArn
- Status
- StatusReason
- SubnetIds
- items String
- Server
- CustomCertificate
string
- CustomDomain
string
- CustomPrivateKey
string
- DeleteBackupRequest
object
- BackupId required
- DeleteBackupResponse
object
- DeleteServerRequest
object
- ServerName required
- DeleteServerResponse
object
- DescribeAccountAttributesRequest
object
- DescribeAccountAttributesResponse
object
- Attributes
- items AccountAttribute
- Attributes
- DescribeBackupsRequest
object
- BackupId
- MaxResults
- NextToken
- ServerName
- DescribeBackupsResponse
object
- Backups
- items Backup
- NextToken
- Backups
- DescribeEventsRequest
object
- MaxResults
- NextToken
- ServerName required
- DescribeEventsResponse
object
- NextToken
- ServerEvents
- items ServerEvent
- DescribeNodeAssociationStatusRequest
object
- NodeAssociationStatusToken required
- ServerName required
- DescribeNodeAssociationStatusResponse
object
- EngineAttributes
- items EngineAttribute
- NodeAssociationStatus
- EngineAttributes
- DescribeServersRequest
object
- MaxResults
- NextToken
- ServerName
- DescribeServersResponse
object
- NextToken
- Servers
- items Server
- DisassociateNodeRequest
object
- EngineAttributes
- items EngineAttribute
- NodeName required
- ServerName required
- EngineAttributes
- DisassociateNodeResponse
object
- NodeAssociationStatusToken
- EngineAttribute
object
: A name and value pair that is specific to the engine of the server.- Name
- Value
- EngineAttributeName
string
- EngineAttributeValue
string
- EngineAttributes
array
- items EngineAttribute
- ExportServerEngineAttributeRequest
object
- ExportAttributeName required
- InputAttributes
- items EngineAttribute
- ServerName required
- ExportServerEngineAttributeResponse
object
- EngineAttribute
- Name
- Value
- ServerName
- EngineAttribute
- InstanceProfileArn
string
- Integer
integer
- KeyPair
string
- ListTagsForResourceRequest
object
- MaxResults
- NextToken
- ResourceArn required
- ListTagsForResourceResponse
object
- NextToken
- Tags
- items Tag
- MaintenanceStatus
string
(values: SUCCESS, FAILED)
- MaxResults
integer
- NextToken
string
- NodeAssociationStatus
string
(values: SUCCESS, FAILED, IN_PROGRESS):The status of the association or disassociation request.
Possible values:
-
SUCCESS
: The association or disassociation succeeded. -
FAILED
: The association or disassociation failed. -
IN_PROGRESS
: The association or disassociation is still in progress.
-
- NodeAssociationStatusToken
string
- NodeName
string
: The node name that is used bychef-client
orpuppet-agent
for a new node. We recommend to use a unique FQDN as hostname. For more information, see the Chef or Puppet documentation.
- RestoreServerRequest
object
- BackupId required
- InstanceType
- KeyPair
- ServerName required
- RestoreServerResponse
object
- Server
object
: Describes a configuration management server.- AssociatePublicIpAddress
- BackupRetentionCount
- CloudFormationStackArn
- CreatedAt
- CustomDomain
- DisableAutomatedBackup
- Endpoint
- Engine
- EngineAttributes
- items EngineAttribute
- EngineModel
- EngineVersion
- InstanceProfileArn
- InstanceType
- KeyPair
- MaintenanceStatus
- PreferredBackupWindow
- PreferredMaintenanceWindow
- SecurityGroupIds
- items String
- ServerArn
- ServerName
- ServiceRoleArn
- Status
- StatusReason
- SubnetIds
- items String
- ServerEvent
object
: An event that is related to the server, such as the start of maintenance or backup.- CreatedAt
- LogUrl
- Message
- ServerName
- ServerEvents
array
- items ServerEvent
- ServerName
string
- ServerStatus
string
(values: BACKING_UP, CONNECTION_LOST, CREATING, DELETING, MODIFYING, FAILED, HEALTHY, RUNNING, RESTORING, SETUP, UNDER_MAINTENANCE, UNHEALTHY, TERMINATED)
- Servers
array
- items Server
- ServiceRoleArn
string
- StartMaintenanceRequest
object
- EngineAttributes
- items EngineAttribute
- ServerName required
- EngineAttributes
- StartMaintenanceResponse
object
- Server
- AssociatePublicIpAddress
- BackupRetentionCount
- CloudFormationStackArn
- CreatedAt
- CustomDomain
- DisableAutomatedBackup
- Endpoint
- Engine
- EngineAttributes
- items EngineAttribute
- EngineModel
- EngineVersion
- InstanceProfileArn
- InstanceType
- KeyPair
- MaintenanceStatus
- PreferredBackupWindow
- PreferredMaintenanceWindow
- SecurityGroupIds
- items String
- ServerArn
- ServerName
- ServiceRoleArn
- Status
- StatusReason
- SubnetIds
- items String
- Server
- String
string
- Strings
array
- items String
- Tag
object
: A map that contains tag keys and tag values to attach to an AWS OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise server. Leading and trailing white spaces are trimmed from both the key and value. A maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM resources.- Key required
- Value required
- TagKey
string
- TagKeyList
array
- items TagKey
- TagList
array
- items Tag
- TagResourceRequest
object
- ResourceArn required
- Tags required
- items Tag
- TagResourceResponse
object
- TagValue
string
- TimeWindowDefinition
string
:DDD:HH:MM
(weekly start time) orHH:MM
(daily start time).Time windows always use coordinated universal time (UTC). Valid strings for day of week (
DDD
) are:Mon
,Tue
,Wed
,Thr
,Fri
,Sat
, orSun
.
- Timestamp
string
- UntagResourceRequest
object
- ResourceArn required
- TagKeys required
- items TagKey
- UntagResourceResponse
object
- UpdateServerEngineAttributesRequest
object
- AttributeName required
- AttributeValue
- ServerName required
- UpdateServerEngineAttributesResponse
object
- Server
- AssociatePublicIpAddress
- BackupRetentionCount
- CloudFormationStackArn
- CreatedAt
- CustomDomain
- DisableAutomatedBackup
- Endpoint
- Engine
- EngineAttributes
- items EngineAttribute
- EngineModel
- EngineVersion
- InstanceProfileArn
- InstanceType
- KeyPair
- MaintenanceStatus
- PreferredBackupWindow
- PreferredMaintenanceWindow
- SecurityGroupIds
- items String
- ServerArn
- ServerName
- ServiceRoleArn
- Status
- StatusReason
- SubnetIds
- items String
- Server
- UpdateServerRequest
object
- BackupRetentionCount
- DisableAutomatedBackup
- PreferredBackupWindow TimeWindowDefinition
- PreferredMaintenanceWindow TimeWindowDefinition
- ServerName required
- UpdateServerResponse
object
- Server
- AssociatePublicIpAddress
- BackupRetentionCount
- CloudFormationStackArn
- CreatedAt
- CustomDomain
- DisableAutomatedBackup
- Endpoint
- Engine
- EngineAttributes
- items EngineAttribute
- EngineModel
- EngineVersion
- InstanceProfileArn
- InstanceType
- KeyPair
- MaintenanceStatus
- PreferredBackupWindow
- PreferredMaintenanceWindow
- SecurityGroupIds
- items String
- ServerArn
- ServerName
- ServiceRoleArn
- Status
- StatusReason
- SubnetIds
- items String
- Server