Class Server
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Server.Builder,
Server>
Describes a configuration management server.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Associate a public IP address with a server that you are launching.final Integer
The number of automated backups to keep.static Server.Builder
builder()
final String
The ARN of the CloudFormation stack that was used to create the server.final Instant
Time stamp of server creation.final String
An optional public endpoint of a server, such ashttps://aws.my-company.com
.final Boolean
Disables automated backups.final String
endpoint()
A DNS name that can be used to access the engine.final String
engine()
The engine type of the server.final List
<EngineAttribute> The response of a createServer() request returns the master credential to access the server in EngineAttributes.final String
The engine model of the server.final String
The engine version of the server.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the EngineAttributes property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the SecurityGroupIds property.final boolean
For responses, this returns true if the service returned a value for the SubnetIds property.final String
The instance profile ARN of the server.final String
The instance type for the server, as specified in the CloudFormation stack.final String
keyPair()
The key pair associated with the server.final MaintenanceStatus
The status of the most recent server maintenance run.final String
The status of the most recent server maintenance run.final String
The preferred backup period specified for the server.final String
The preferred maintenance period specified for the server.The security group IDs for the server, as specified in the CloudFormation stack.static Class
<? extends Server.Builder> final String
The ARN of the server.final String
The name of the server.final String
The service role ARN used to create the server.final ServerStatus
status()
The server's status.final String
The server's status.final String
Depending on the server status, this field has either a human-readable message (such as a create or backup error), or an escaped block of JSON (used for health check results).The subnet IDs specified in a CreateServer request.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
associatePublicIpAddress
Associate a public IP address with a server that you are launching.
- Returns:
- Associate a public IP address with a server that you are launching.
-
backupRetentionCount
The number of automated backups to keep.
- Returns:
- The number of automated backups to keep.
-
serverName
The name of the server.
- Returns:
- The name of the server.
-
createdAt
Time stamp of server creation. Example
2016-07-29T13:38:47.520Z
- Returns:
- Time stamp of server creation. Example
2016-07-29T13:38:47.520Z
-
cloudFormationStackArn
The ARN of the CloudFormation stack that was used to create the server.
- Returns:
- The ARN of the CloudFormation stack that was used to create the server.
-
customDomain
An optional public endpoint of a server, such as
https://aws.my-company.com
. You cannot access the server by using theEndpoint
value if the server has aCustomDomain
specified.- Returns:
- An optional public endpoint of a server, such as
https://aws.my-company.com
. You cannot access the server by using theEndpoint
value if the server has aCustomDomain
specified.
-
disableAutomatedBackup
Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.
- Returns:
- Disables automated backups. The number of stored backups is dependent on the value of PreferredBackupCount.
-
endpoint
A DNS name that can be used to access the engine. Example:
myserver-asdfghjkl.us-east-1.opsworks.io
. You cannot access the server by using theEndpoint
value if the server has aCustomDomain
specified.- Returns:
- A DNS name that can be used to access the engine. Example:
myserver-asdfghjkl.us-east-1.opsworks.io
. You cannot access the server by using theEndpoint
value if the server has aCustomDomain
specified.
-
engine
The engine type of the server. Valid values in this release include
ChefAutomate
andPuppet
.- Returns:
- The engine type of the server. Valid values in this release include
ChefAutomate
andPuppet
.
-
engineModel
The engine model of the server. Valid values in this release include
Monolithic
for Puppet andSingle
for Chef.- Returns:
- The engine model of the server. Valid values in this release include
Monolithic
for Puppet andSingle
for Chef.
-
hasEngineAttributes
public final boolean hasEngineAttributes()For responses, this returns true if the service returned a value for the EngineAttributes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
engineAttributes
The response of a createServer() request returns the master credential to access the server in EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of the result of createServer().
Attributes returned in a createServer response for Chef
-
CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks for Chef Automate. This private key is required to access the Chef API. -
CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.
Attributes returned in a createServer response for Puppet
-
PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including a README and a required private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. -
PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet Enterprise console after the server is online.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEngineAttributes()
method.- Returns:
- The response of a createServer() request returns the master credential to access the server in
EngineAttributes. These credentials are not stored by AWS OpsWorks CM; they are returned only as part of
the result of createServer().
Attributes returned in a createServer response for Chef
-
CHEF_AUTOMATE_PIVOTAL_KEY
: A base64-encoded RSA private key that is generated by AWS OpsWorks for Chef Automate. This private key is required to access the Chef API. -
CHEF_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Chef starter kit, which includes a README, a configuration file, and the required RSA private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. From this directory, you can run Knife commands.
Attributes returned in a createServer response for Puppet
-
PUPPET_STARTER_KIT
: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including a README and a required private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents. -
PUPPET_ADMIN_PASSWORD
: An administrator password that you can use to sign in to the Puppet Enterprise console after the server is online.
-
-
-
engineVersion
The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
2
. For a Puppet server, specify either2019
or2017
.- Returns:
- The engine version of the server. For a Chef server, the valid value for EngineVersion is currently
2
. For a Puppet server, specify either2019
or2017
.
-
instanceProfileArn
The instance profile ARN of the server.
- Returns:
- The instance profile ARN of the server.
-
instanceType
The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance type that is shown in the EC2 console.
- Returns:
- The instance type for the server, as specified in the CloudFormation stack. This might not be the same instance type that is shown in the EC2 console.
-
keyPair
The key pair associated with the server.
- Returns:
- The key pair associated with the server.
-
maintenanceStatus
The status of the most recent server maintenance run. Shows
SUCCESS
orFAILED
.If the service returns an enum value that is not available in the current SDK version,
maintenanceStatus
will returnMaintenanceStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommaintenanceStatusAsString()
.- Returns:
- The status of the most recent server maintenance run. Shows
SUCCESS
orFAILED
. - See Also:
-
maintenanceStatusAsString
The status of the most recent server maintenance run. Shows
SUCCESS
orFAILED
.If the service returns an enum value that is not available in the current SDK version,
maintenanceStatus
will returnMaintenanceStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommaintenanceStatusAsString()
.- Returns:
- The status of the most recent server maintenance run. Shows
SUCCESS
orFAILED
. - See Also:
-
preferredMaintenanceWindow
The preferred maintenance period specified for the server.
- Returns:
- The preferred maintenance period specified for the server.
-
preferredBackupWindow
The preferred backup period specified for the server.
- Returns:
- The preferred backup period specified for the server.
-
hasSecurityGroupIds
public final boolean hasSecurityGroupIds()For responses, this returns true if the service returned a value for the SecurityGroupIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
securityGroupIds
The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same security groups that are shown in the EC2 console.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecurityGroupIds()
method.- Returns:
- The security group IDs for the server, as specified in the CloudFormation stack. These might not be the same security groups that are shown in the EC2 console.
-
serviceRoleArn
The service role ARN used to create the server.
- Returns:
- The service role ARN used to create the server.
-
status
The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.
If the service returns an enum value that is not available in the current SDK version,
status
will returnServerStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.
- See Also:
-
statusAsString
The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.
If the service returns an enum value that is not available in the current SDK version,
status
will returnServerStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The server's status. This field displays the states of actions in progress, such as creating, running, or backing up the server, as well as the server's health state.
- See Also:
-
statusReason
Depending on the server status, this field has either a human-readable message (such as a create or backup error), or an escaped block of JSON (used for health check results).
- Returns:
- Depending on the server status, this field has either a human-readable message (such as a create or backup error), or an escaped block of JSON (used for health check results).
-
hasSubnetIds
public final boolean hasSubnetIds()For responses, this returns true if the service returned a value for the SubnetIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
subnetIds
The subnet IDs specified in a CreateServer request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSubnetIds()
method.- Returns:
- The subnet IDs specified in a CreateServer request.
-
serverArn
The ARN of the server.
- Returns:
- The ARN of the server.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Server.Builder,
Server> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-