Class CfnServer
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.opsworkscm.CfnServer
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:34.662Z")
@Stability(Stable)
public class CfnServer
extends CfnResource
implements IInspectable, ITaggable
The
AWS::OpsWorksCM::Server
resource creates an AWS OpsWorks for Chef Automate or OpsWorks for Puppet Enterprise configuration management server.
For more information, see Create a Chef Automate Server in AWS CloudFormation or Create a Puppet Enterprise Master in AWS CloudFormation in the AWS OpsWorks User Guide , and CreateServer in the AWS OpsWorks CM API Reference .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.opsworkscm.*; CfnServer cfnServer = CfnServer.Builder.create(this, "MyCfnServer") .instanceProfileArn("instanceProfileArn") .instanceType("instanceType") .serviceRoleArn("serviceRoleArn") // the properties below are optional .associatePublicIpAddress(false) .backupId("backupId") .backupRetentionCount(123) .customCertificate("customCertificate") .customDomain("customDomain") .customPrivateKey("customPrivateKey") .disableAutomatedBackup(false) .engine("engine") .engineAttributes(List.of(EngineAttributeProperty.builder() .name("name") .value("value") .build())) .engineModel("engineModel") .engineVersion("engineVersion") .keyPair("keyPair") .preferredBackupWindow("preferredBackupWindow") .preferredMaintenanceWindow("preferredMaintenanceWindow") .securityGroupIds(List.of("securityGroupIds")) .serverName("serverName") .subnetIds(List.of("subnetIds")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnServer
.static interface
TheEngineAttribute
property type specifies administrator credentials for an AWS OpsWorks for Chef Automate or OpsWorks for Puppet Enterprise server.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnServer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnServer
(software.amazon.jsii.JsiiObjectRef objRef) CfnServer
(software.constructs.Construct scope, String id, CfnServerProps props) -
Method Summary
Modifier and TypeMethodDescriptionAssociate a public IP address with a server that you are launching.The Amazon Resource Name (ARN) of the server, such asarn:aws:OpsWorksCM:us-east-1:123456789012:server/server-a1bzhi
.A DNS name that can be used to access the engine.The name of the server.If you specify this field, AWS OpsWorks CM creates the server by using the backup represented by BackupId.The number of automated backups that you want to keep.Supported on servers running Chef Automate 2.0 only.Supported on servers running Chef Automate 2.0 only.Supported on servers running Chef Automate 2.0 only.Enable or disable scheduled backups.The configuration management engine to use.Optional engine attributes on a specified server.The engine model of the server.The major release version of the engine that you want to use.The ARN of the instance profile that your Amazon EC2 instances use.The Amazon EC2 instance type to use.The Amazon EC2 key pair to set for the instance.The start time for a one-hour period during which AWS OpsWorks CM backs up application-level data on your server if automated backups are enabled.The start time for a one-hour period each week during which AWS OpsWorks CM performs maintenance on the instance.A list of security group IDs to attach to the Amazon EC2 instance.The name of the server.The service role that the AWS OpsWorks CM service backend uses to work with your account.The IDs of subnets in which to launch the server EC2 instance.getTags()
Tag Manager which manages the tags for this resource.A map that contains tag keys and tag values to attach to an AWS OpsWorks for Chef Automate or OpsWorks for Puppet Enterprise server.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Associate a public IP address with a server that you are launching.void
Associate a public IP address with a server that you are launching.void
setBackupId
(String value) If you specify this field, AWS OpsWorks CM creates the server by using the backup represented by BackupId.void
setBackupRetentionCount
(Number value) The number of automated backups that you want to keep.void
setCustomCertificate
(String value) Supported on servers running Chef Automate 2.0 only.void
setCustomDomain
(String value) Supported on servers running Chef Automate 2.0 only.void
setCustomPrivateKey
(String value) Supported on servers running Chef Automate 2.0 only.void
setDisableAutomatedBackup
(Boolean value) Enable or disable scheduled backups.void
Enable or disable scheduled backups.void
The configuration management engine to use.void
setEngineAttributes
(List<Object> value) Optional engine attributes on a specified server.void
setEngineAttributes
(IResolvable value) Optional engine attributes on a specified server.void
setEngineModel
(String value) The engine model of the server.void
setEngineVersion
(String value) The major release version of the engine that you want to use.void
setInstanceProfileArn
(String value) The ARN of the instance profile that your Amazon EC2 instances use.void
setInstanceType
(String value) The Amazon EC2 instance type to use.void
setKeyPair
(String value) The Amazon EC2 key pair to set for the instance.void
setPreferredBackupWindow
(String value) The start time for a one-hour period during which AWS OpsWorks CM backs up application-level data on your server if automated backups are enabled.void
The start time for a one-hour period each week during which AWS OpsWorks CM performs maintenance on the instance.void
setSecurityGroupIds
(List<String> value) A list of security group IDs to attach to the Amazon EC2 instance.void
setServerName
(String value) The name of the server.void
setServiceRoleArn
(String value) The service role that the AWS OpsWorks CM service backend uses to work with your account.void
setSubnetIds
(List<String> value) The IDs of subnets in which to launch the server EC2 instance.void
setTagsRaw
(List<CfnTag> value) A map that contains tag keys and tag values to attach to an AWS OpsWorks for Chef Automate or OpsWorks for Puppet Enterprise server.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnServer
protected CfnServer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServer
protected CfnServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServer
@Stability(Stable) public CfnServer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnServerProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the server, such asarn:aws:OpsWorksCM:us-east-1:123456789012:server/server-a1bzhi
. -
getAttrEndpoint
A DNS name that can be used to access the engine.Example:
myserver-asdfghjkl.us-east-1.opsworks.io
. -
getAttrServerName
The name of the server. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getInstanceProfileArn
The ARN of the instance profile that your Amazon EC2 instances use. -
setInstanceProfileArn
The ARN of the instance profile that your Amazon EC2 instances use. -
getInstanceType
The Amazon EC2 instance type to use. -
setInstanceType
The Amazon EC2 instance type to use. -
getServiceRoleArn
The service role that the AWS OpsWorks CM service backend uses to work with your account. -
setServiceRoleArn
The service role that the AWS OpsWorks CM service backend uses to work with your account. -
getAssociatePublicIpAddress
Associate a public IP address with a server that you are launching. -
setAssociatePublicIpAddress
Associate a public IP address with a server that you are launching. -
setAssociatePublicIpAddress
Associate a public IP address with a server that you are launching. -
getBackupId
If you specify this field, AWS OpsWorks CM creates the server by using the backup represented by BackupId. -
setBackupId
If you specify this field, AWS OpsWorks CM creates the server by using the backup represented by BackupId. -
getBackupRetentionCount
The number of automated backups that you want to keep. -
setBackupRetentionCount
The number of automated backups that you want to keep. -
getCustomCertificate
Supported on servers running Chef Automate 2.0 only. A PEM-formatted HTTPS certificate. The value can be be a single, self-signed certificate, or a certificate chain. If you specify a custom certificate, you must also specify values forCustomDomain
andCustomPrivateKey
. The following are requirements for theCustomCertificate
value:. -
setCustomCertificate
Supported on servers running Chef Automate 2.0 only. A PEM-formatted HTTPS certificate. The value can be be a single, self-signed certificate, or a certificate chain. If you specify a custom certificate, you must also specify values forCustomDomain
andCustomPrivateKey
. The following are requirements for theCustomCertificate
value:. -
getCustomDomain
Supported on servers running Chef Automate 2.0 only. An optional public endpoint of a server, such ashttps://aws.my-company.com
. To access the server, create a CNAME DNS record in your preferred DNS service that points the custom domain to the endpoint that is generated when the server is created (the value of the CreateServer Endpoint attribute). You cannot access the server by using the generatedEndpoint
value if the server is using a custom domain. If you specify a custom domain, you must also specify values forCustomCertificate
andCustomPrivateKey
. -
setCustomDomain
Supported on servers running Chef Automate 2.0 only. An optional public endpoint of a server, such ashttps://aws.my-company.com
. To access the server, create a CNAME DNS record in your preferred DNS service that points the custom domain to the endpoint that is generated when the server is created (the value of the CreateServer Endpoint attribute). You cannot access the server by using the generatedEndpoint
value if the server is using a custom domain. If you specify a custom domain, you must also specify values forCustomCertificate
andCustomPrivateKey
. -
getCustomPrivateKey
Supported on servers running Chef Automate 2.0 only. A private key in PEM format for connecting to the server by using HTTPS. The private key must not be encrypted; it cannot be protected by a password or passphrase. If you specify a custom private key, you must also specify values forCustomDomain
andCustomCertificate
. -
setCustomPrivateKey
Supported on servers running Chef Automate 2.0 only. A private key in PEM format for connecting to the server by using HTTPS. The private key must not be encrypted; it cannot be protected by a password or passphrase. If you specify a custom private key, you must also specify values forCustomDomain
andCustomCertificate
. -
getDisableAutomatedBackup
Enable or disable scheduled backups. -
setDisableAutomatedBackup
Enable or disable scheduled backups. -
setDisableAutomatedBackup
Enable or disable scheduled backups. -
getEngine
The configuration management engine to use. -
setEngine
The configuration management engine to use. -
getEngineAttributes
Optional engine attributes on a specified server. -
setEngineAttributes
Optional engine attributes on a specified server. -
setEngineAttributes
Optional engine attributes on a specified server. -
getEngineModel
The engine model of the server. -
setEngineModel
The engine model of the server. -
getEngineVersion
The major release version of the engine that you want to use. -
setEngineVersion
The major release version of the engine that you want to use. -
getKeyPair
The Amazon EC2 key pair to set for the instance. -
setKeyPair
The Amazon EC2 key pair to set for the instance. -
getPreferredBackupWindow
The start time for a one-hour period during which AWS OpsWorks CM backs up application-level data on your server if automated backups are enabled. -
setPreferredBackupWindow
The start time for a one-hour period during which AWS OpsWorks CM backs up application-level data on your server if automated backups are enabled. -
getPreferredMaintenanceWindow
The start time for a one-hour period each week during which AWS OpsWorks CM performs maintenance on the instance. -
setPreferredMaintenanceWindow
The start time for a one-hour period each week during which AWS OpsWorks CM performs maintenance on the instance. -
getSecurityGroupIds
A list of security group IDs to attach to the Amazon EC2 instance. -
setSecurityGroupIds
A list of security group IDs to attach to the Amazon EC2 instance. -
getServerName
The name of the server. -
setServerName
The name of the server. -
getSubnetIds
The IDs of subnets in which to launch the server EC2 instance. -
setSubnetIds
The IDs of subnets in which to launch the server EC2 instance. -
getTagsRaw
A map that contains tag keys and tag values to attach to an AWS OpsWorks for Chef Automate or OpsWorks for Puppet Enterprise server. -
setTagsRaw
A map that contains tag keys and tag values to attach to an AWS OpsWorks for Chef Automate or OpsWorks for Puppet Enterprise server.
-