Class CfnApp
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.opsworks.CfnApp
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAppRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:14.219Z")
@Stability(Stable)
public class CfnApp
extends CfnResource
implements IInspectable, IAppRef
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html.
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.opsworks.*;
CfnApp cfnApp = CfnApp.Builder.create(this, "MyCfnApp")
.name("name")
.stackId("stackId")
.type("type")
// the properties below are optional
.appSource(SourceProperty.builder()
.password("password")
.revision("revision")
.sshKey("sshKey")
.type("type")
.url("url")
.username("username")
.build())
.attributes(Map.of(
"attributesKey", "attributes"))
.dataSources(List.of(DataSourceProperty.builder()
.arn("arn")
.databaseName("databaseName")
.type("type")
.build()))
.description("description")
.domains(List.of("domains"))
.enableSsl(false)
.environment(List.of(EnvironmentVariableProperty.builder()
.key("key")
.value("value")
// the properties below are optional
.secure(false)
.build()))
.shortname("shortname")
.sslConfiguration(SslConfigurationProperty.builder()
.certificate("certificate")
.chain("chain")
.privateKey("privateKey")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnApp.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.opsworks.IAppRef
IAppRef.Jsii$Default, IAppRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApp(software.amazon.jsii.JsiiObjectRef objRef) CfnApp(software.constructs.Construct scope, String id, CfnAppProps props) Create a newAWS::OpsWorks::App. -
Method Summary
Modifier and TypeMethodDescriptionA reference to a App resource.ASourceobject that specifies the app repository.One or more user-defined key/value pairs to be added to the stack attributes.The app's data source.A description of the app.The app virtual host settings, with multiple domains separated by commas.Whether to enable SSL for the app.An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.getName()The app name.The app's short name.AnSslConfigurationobject with the SSL configuration.The stack ID.getType()The app type.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnApp.renderProperties(Map<String, Object> props) voidsetAppSource(IResolvable value) ASourceobject that specifies the app repository.voidASourceobject that specifies the app repository.voidsetAttributes(Map<String, String> value) One or more user-defined key/value pairs to be added to the stack attributes.voidsetAttributes(IResolvable value) One or more user-defined key/value pairs to be added to the stack attributes.voidsetDataSources(List<Object> value) The app's data source.voidsetDataSources(IResolvable value) The app's data source.voidsetDescription(String value) A description of the app.voidsetDomains(List<String> value) The app virtual host settings, with multiple domains separated by commas.voidsetEnableSsl(Boolean value) Whether to enable SSL for the app.voidsetEnableSsl(IResolvable value) Whether to enable SSL for the app.voidsetEnvironment(List<Object> value) An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.voidsetEnvironment(IResolvable value) An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.voidThe app name.voidsetShortname(String value) The app's short name.voidsetSslConfiguration(IResolvable value) AnSslConfigurationobject with the SSL configuration.voidAnSslConfigurationobject with the SSL configuration.voidsetStackId(String value) The stack ID.voidThe app type.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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
-
CfnApp
protected CfnApp(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApp
protected CfnApp(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApp
@Stability(Stable) public CfnApp(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAppProps props) Create a newAWS::OpsWorks::App.- 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
-
isCfnApp
Checks whether the given object is a CfnApp.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAppRef
A reference to a App resource. -
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getName
The app name. -
setName
The app name. -
getStackId
The stack ID. -
setStackId
The stack ID. -
getType
The app type. -
setType
The app type. -
getAppSource
ASourceobject that specifies the app repository.Returns union: either
IResolvableorCfnApp.SourceProperty -
setAppSource
ASourceobject that specifies the app repository. -
setAppSource
ASourceobject that specifies the app repository. -
getAttributes
One or more user-defined key/value pairs to be added to the stack attributes.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable -
setAttributes
One or more user-defined key/value pairs to be added to the stack attributes. -
setAttributes
One or more user-defined key/value pairs to be added to the stack attributes. -
getDataSources
The app's data source.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApp.DataSourceProperty> -
setDataSources
The app's data source. -
setDataSources
The app's data source. -
getDescription
A description of the app. -
setDescription
A description of the app. -
getDomains
The app virtual host settings, with multiple domains separated by commas. -
setDomains
The app virtual host settings, with multiple domains separated by commas. -
getEnableSsl
Whether to enable SSL for the app.Returns union: either
BooleanorIResolvable -
setEnableSsl
Whether to enable SSL for the app. -
setEnableSsl
Whether to enable SSL for the app. -
getEnvironment
An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApp.EnvironmentVariableProperty> -
setEnvironment
An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app. -
setEnvironment
An array ofEnvironmentVariableobjects that specify environment variables to be associated with the app. -
getShortname
The app's short name. -
setShortname
The app's short name. -
getSslConfiguration
AnSslConfigurationobject with the SSL configuration.Returns union: either
IResolvableorCfnApp.SslConfigurationProperty -
setSslConfiguration
AnSslConfigurationobject with the SSL configuration. -
setSslConfiguration
AnSslConfigurationobject with the SSL configuration.
-