Class CfnInstanceEventWindow
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.ec2.CfnInstanceEventWindow
- All Implemented Interfaces:
IInspectable,IInstanceEventWindowRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:50.023Z")
@Stability(Stable)
public class CfnInstanceEventWindow
extends CfnResource
implements IInspectable, IInstanceEventWindowRef, ITaggableV2
Resource type definition for AWS::EC2::InstanceEventWindow.
An event window defines a recurring set of time ranges, or a cron expression, during which AWS-initiated maintenance events may be scheduled for the associated Amazon EC2 instances or Dedicated Hosts.
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.ec2.*;
CfnInstanceEventWindow cfnInstanceEventWindow = CfnInstanceEventWindow.Builder.create(this, "MyCfnInstanceEventWindow")
.cronExpression("cronExpression")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeRanges(List.of(TimeRangeProperty.builder()
.endHour(123)
.endWeekDay("endWeekDay")
.startHour(123)
.startWeekDay("startWeekDay")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnInstanceEventWindow.static interfaceA time range during which an AWS-initiated maintenance event may occur.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IInstanceEventWindowRef
IInstanceEventWindowRef.Jsii$Default, IInstanceEventWindowRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnInstanceEventWindow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnInstanceEventWindow(software.amazon.jsii.JsiiObjectRef objRef) CfnInstanceEventWindow(software.constructs.Construct scope, String id) Create a newAWS::EC2::InstanceEventWindow.CfnInstanceEventWindow(software.constructs.Construct scope, String id, CfnInstanceEventWindowProps props) Create a newAWS::EC2::InstanceEventWindow. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe Amazon Resource Name (ARN) of the event window.The ID of the event window.The current state of the event window.Tag Manager which manages the tags for this resource.The cron expression defined for the event window.A reference to a InstanceEventWindow resource.getName()The name of the event window.getTags()The tags applied to the event window.The time ranges of the event window.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnInstanceEventWindow.renderProperties(Map<String, Object> props) voidsetCronExpression(String value) The cron expression defined for the event window.voidThe name of the event window.voidThe tags applied to the event window.voidsetTimeRanges(List<Object> value) The time ranges of the event window.voidsetTimeRanges(IResolvable value) The time ranges of the event window.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnInstanceEventWindow
protected CfnInstanceEventWindow(software.amazon.jsii.JsiiObjectRef objRef) -
CfnInstanceEventWindow
protected CfnInstanceEventWindow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnInstanceEventWindow
@Stability(Stable) public CfnInstanceEventWindow(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnInstanceEventWindowProps props) Create a newAWS::EC2::InstanceEventWindow.- 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.
-
CfnInstanceEventWindow
@Stability(Stable) public CfnInstanceEventWindow(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::EC2::InstanceEventWindow.- 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.
-
-
Method Details
-
arnForInstanceEventWindow
@Stability(Stable) @NotNull public static String arnForInstanceEventWindow(@NotNull IInstanceEventWindowRef resource) - Parameters:
resource- This parameter is required.
-
isCfnInstanceEventWindow
Checks whether the given object is a CfnInstanceEventWindow.- 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.
-
getAttrArn
The Amazon Resource Name (ARN) of the event window. -
getAttrInstanceEventWindowId
The ID of the event window. -
getAttrState
The current state of the event window.Observed values include creating, active, modifying, deleting and deleted.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getInstanceEventWindowRef
A reference to a InstanceEventWindow resource.- Specified by:
getInstanceEventWindowRefin interfaceIInstanceEventWindowRef
-
getCronExpression
The cron expression defined for the event window. -
setCronExpression
The cron expression defined for the event window. -
getName
The name of the event window. -
setName
The name of the event window. -
getTags
The tags applied to the event window. -
setTags
The tags applied to the event window. -
getTimeRanges
The time ranges of the event window.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstanceEventWindow.TimeRangeProperty> -
setTimeRanges
The time ranges of the event window. -
setTimeRanges
The time ranges of the event window.
-