@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.357Z") @Stability(value=Stable) public class CfnEnvironment extends CfnResource implements IInspectable
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.mwaa.*;
Object airflowConfigurationOptions;
Object tags;
CfnEnvironment cfnEnvironment = CfnEnvironment.Builder.create(this, "MyCfnEnvironment")
.name("name")
// the properties below are optional
.airflowConfigurationOptions(airflowConfigurationOptions)
.airflowVersion("airflowVersion")
.dagS3Path("dagS3Path")
.environmentClass("environmentClass")
.executionRoleArn("executionRoleArn")
.kmsKey("kmsKey")
.loggingConfiguration(LoggingConfigurationProperty.builder()
.dagProcessingLogs(ModuleLoggingConfigurationProperty.builder()
.cloudWatchLogGroupArn("cloudWatchLogGroupArn")
.enabled(false)
.logLevel("logLevel")
.build())
.schedulerLogs(ModuleLoggingConfigurationProperty.builder()
.cloudWatchLogGroupArn("cloudWatchLogGroupArn")
.enabled(false)
.logLevel("logLevel")
.build())
.taskLogs(ModuleLoggingConfigurationProperty.builder()
.cloudWatchLogGroupArn("cloudWatchLogGroupArn")
.enabled(false)
.logLevel("logLevel")
.build())
.webserverLogs(ModuleLoggingConfigurationProperty.builder()
.cloudWatchLogGroupArn("cloudWatchLogGroupArn")
.enabled(false)
.logLevel("logLevel")
.build())
.workerLogs(ModuleLoggingConfigurationProperty.builder()
.cloudWatchLogGroupArn("cloudWatchLogGroupArn")
.enabled(false)
.logLevel("logLevel")
.build())
.build())
.maxWorkers(123)
.minWorkers(123)
.networkConfiguration(NetworkConfigurationProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnetIds(List.of("subnetIds"))
.build())
.pluginsS3ObjectVersion("pluginsS3ObjectVersion")
.pluginsS3Path("pluginsS3Path")
.requirementsS3ObjectVersion("requirementsS3ObjectVersion")
.requirementsS3Path("requirementsS3Path")
.schedulers(123)
.sourceBucketArn("sourceBucketArn")
.tags(tags)
.webserverAccessMode("webserverAccessMode")
.weeklyMaintenanceWindowStart("weeklyMaintenanceWindowStart")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEnvironment.Builder
A fluent builder for
CfnEnvironment. |
static interface |
CfnEnvironment.LoggingConfigurationProperty
Example:
|
static interface |
CfnEnvironment.ModuleLoggingConfigurationProperty
Example:
|
static interface |
CfnEnvironment.NetworkConfigurationProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEnvironment(software.constructs.Construct scope,
String id,
CfnEnvironmentProps props)
Create a new `AWS::MWAA::Environment`.
|
protected |
CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAirflowConfigurationOptions()
`AWS::MWAA::Environment.AirflowConfigurationOptions`.
|
String |
getAirflowVersion()
`AWS::MWAA::Environment.AirflowVersion`.
|
String |
getAttrArn() |
String |
getAttrLoggingConfigurationDagProcessingLogsCloudWatchLogGroupArn() |
String |
getAttrLoggingConfigurationSchedulerLogsCloudWatchLogGroupArn() |
String |
getAttrLoggingConfigurationTaskLogsCloudWatchLogGroupArn() |
String |
getAttrLoggingConfigurationWebserverLogsCloudWatchLogGroupArn() |
String |
getAttrLoggingConfigurationWorkerLogsCloudWatchLogGroupArn() |
String |
getAttrWebserverUrl() |
protected Map<String,Object> |
getCfnProperties() |
String |
getDagS3Path()
`AWS::MWAA::Environment.DagS3Path`.
|
String |
getEnvironmentClass()
`AWS::MWAA::Environment.EnvironmentClass`.
|
String |
getExecutionRoleArn()
`AWS::MWAA::Environment.ExecutionRoleArn`.
|
String |
getKmsKey()
`AWS::MWAA::Environment.KmsKey`.
|
Object |
getLoggingConfiguration()
`AWS::MWAA::Environment.LoggingConfiguration`.
|
Number |
getMaxWorkers()
`AWS::MWAA::Environment.MaxWorkers`.
|
Number |
getMinWorkers()
`AWS::MWAA::Environment.MinWorkers`.
|
String |
getName()
`AWS::MWAA::Environment.Name`.
|
Object |
getNetworkConfiguration()
`AWS::MWAA::Environment.NetworkConfiguration`.
|
String |
getPluginsS3ObjectVersion()
`AWS::MWAA::Environment.PluginsS3ObjectVersion`.
|
String |
getPluginsS3Path()
`AWS::MWAA::Environment.PluginsS3Path`.
|
String |
getRequirementsS3ObjectVersion()
`AWS::MWAA::Environment.RequirementsS3ObjectVersion`.
|
String |
getRequirementsS3Path()
`AWS::MWAA::Environment.RequirementsS3Path`.
|
Number |
getSchedulers()
`AWS::MWAA::Environment.Schedulers`.
|
String |
getSourceBucketArn()
`AWS::MWAA::Environment.SourceBucketArn`.
|
TagManager |
getTags()
`AWS::MWAA::Environment.Tags`.
|
String |
getWebserverAccessMode()
`AWS::MWAA::Environment.WebserverAccessMode`.
|
String |
getWeeklyMaintenanceWindowStart()
`AWS::MWAA::Environment.WeeklyMaintenanceWindowStart`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAirflowConfigurationOptions(Object value)
`AWS::MWAA::Environment.AirflowConfigurationOptions`.
|
void |
setAirflowVersion(String value)
`AWS::MWAA::Environment.AirflowVersion`.
|
void |
setDagS3Path(String value)
`AWS::MWAA::Environment.DagS3Path`.
|
void |
setEnvironmentClass(String value)
`AWS::MWAA::Environment.EnvironmentClass`.
|
void |
setExecutionRoleArn(String value)
`AWS::MWAA::Environment.ExecutionRoleArn`.
|
void |
setKmsKey(String value)
`AWS::MWAA::Environment.KmsKey`.
|
void |
setLoggingConfiguration(CfnEnvironment.LoggingConfigurationProperty value)
`AWS::MWAA::Environment.LoggingConfiguration`.
|
void |
setLoggingConfiguration(IResolvable value)
`AWS::MWAA::Environment.LoggingConfiguration`.
|
void |
setMaxWorkers(Number value)
`AWS::MWAA::Environment.MaxWorkers`.
|
void |
setMinWorkers(Number value)
`AWS::MWAA::Environment.MinWorkers`.
|
void |
setName(String value)
`AWS::MWAA::Environment.Name`.
|
void |
setNetworkConfiguration(CfnEnvironment.NetworkConfigurationProperty value)
`AWS::MWAA::Environment.NetworkConfiguration`.
|
void |
setNetworkConfiguration(IResolvable value)
`AWS::MWAA::Environment.NetworkConfiguration`.
|
void |
setPluginsS3ObjectVersion(String value)
`AWS::MWAA::Environment.PluginsS3ObjectVersion`.
|
void |
setPluginsS3Path(String value)
`AWS::MWAA::Environment.PluginsS3Path`.
|
void |
setRequirementsS3ObjectVersion(String value)
`AWS::MWAA::Environment.RequirementsS3ObjectVersion`.
|
void |
setRequirementsS3Path(String value)
`AWS::MWAA::Environment.RequirementsS3Path`.
|
void |
setSchedulers(Number value)
`AWS::MWAA::Environment.Schedulers`.
|
void |
setSourceBucketArn(String value)
`AWS::MWAA::Environment.SourceBucketArn`.
|
void |
setWebserverAccessMode(String value)
`AWS::MWAA::Environment.WebserverAccessMode`.
|
void |
setWeeklyMaintenanceWindowStart(String value)
`AWS::MWAA::Environment.WeeklyMaintenanceWindowStart`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEnvironment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEnvironmentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public Object getAirflowConfigurationOptions()
@Stability(value=Stable)
public void setAirflowConfigurationOptions(@NotNull
Object value)
@Stability(value=Stable) @Nullable public String getAirflowVersion()
@Stability(value=Stable)
public void setAirflowVersion(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrLoggingConfigurationDagProcessingLogsCloudWatchLogGroupArn()
@Stability(value=Stable) @NotNull public String getAttrLoggingConfigurationSchedulerLogsCloudWatchLogGroupArn()
@Stability(value=Stable) @NotNull public String getAttrLoggingConfigurationTaskLogsCloudWatchLogGroupArn()
@Stability(value=Stable) @NotNull public String getAttrLoggingConfigurationWebserverLogsCloudWatchLogGroupArn()
@Stability(value=Stable) @NotNull public String getAttrLoggingConfigurationWorkerLogsCloudWatchLogGroupArn()
@Stability(value=Stable) @NotNull public String getAttrWebserverUrl()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getDagS3Path()
@Stability(value=Stable)
public void setDagS3Path(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getEnvironmentClass()
@Stability(value=Stable)
public void setEnvironmentClass(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getExecutionRoleArn()
@Stability(value=Stable)
public void setExecutionRoleArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getKmsKey()
@Stability(value=Stable)
public void setKmsKey(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getLoggingConfiguration()
@Stability(value=Stable)
public void setLoggingConfiguration(@Nullable
CfnEnvironment.LoggingConfigurationProperty value)
@Stability(value=Stable)
public void setLoggingConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Number getMaxWorkers()
@Stability(value=Stable)
public void setMaxWorkers(@Nullable
Number value)
@Stability(value=Stable) @Nullable public Number getMinWorkers()
@Stability(value=Stable)
public void setMinWorkers(@Nullable
Number value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getNetworkConfiguration()
@Stability(value=Stable)
public void setNetworkConfiguration(@Nullable
CfnEnvironment.NetworkConfigurationProperty value)
@Stability(value=Stable)
public void setNetworkConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getPluginsS3ObjectVersion()
@Stability(value=Stable)
public void setPluginsS3ObjectVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getPluginsS3Path()
@Stability(value=Stable)
public void setPluginsS3Path(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRequirementsS3ObjectVersion()
@Stability(value=Stable)
public void setRequirementsS3ObjectVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRequirementsS3Path()
@Stability(value=Stable)
public void setRequirementsS3Path(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getSchedulers()
@Stability(value=Stable)
public void setSchedulers(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getSourceBucketArn()
@Stability(value=Stable)
public void setSourceBucketArn(@Nullable
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getWebserverAccessMode()
@Stability(value=Stable)
public void setWebserverAccessMode(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getWeeklyMaintenanceWindowStart()
@Stability(value=Stable)
public void setWeeklyMaintenanceWindowStart(@Nullable
String value)
Copyright © 2021. All rights reserved.