Class CfnInstanceEventWindow
Resource type definition for AWS::EC2::InstanceEventWindow.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstanceEventWindow : CfnResource, IInspectable, IInstanceEventWindowRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnInstanceEventWindow Inherits CfnResource Implements IInspectable, IInstanceEventWindowRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnInstanceEventWindow = new CfnInstanceEventWindow(this, "MyCfnInstanceEventWindow", new CfnInstanceEventWindowProps {
CronExpression = "cronExpression",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TimeRanges = new [] { new TimeRangeProperty {
EndHour = 123,
EndWeekDay = "endWeekDay",
StartHour = 123,
StartWeekDay = "startWeekDay"
} }
});
Synopsis
Constructors
| CfnInstanceEventWindow(Construct, string, ICfnInstanceEventWindowProps?) | Create a new |
Properties
| AttrArn | The Amazon Resource Name (ARN) of the event window. |
| AttrInstanceEventWindowId | The ID of the event window. |
| AttrState | The current state of the event window. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | Resource type definition for AWS::EC2::InstanceEventWindow. |
| CfnPropertyNames | Resource type definition for AWS::EC2::InstanceEventWindow. |
| CronExpression | The cron expression defined for the event window. |
| InstanceEventWindowRef | A reference to a InstanceEventWindow resource. |
| Name | The name of the event window. |
| Tags | The tags applied to the event window. |
| TimeRanges | The time ranges of the event window. |
Methods
| ArnForInstanceEventWindow(IInstanceEventWindowRef) | Resource type definition for AWS::EC2::InstanceEventWindow. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnInstanceEventWindow(object) | Checks whether the given object is a CfnInstanceEventWindow. |
| RenderProperties(IDictionary<string, object>) | Resource type definition for AWS::EC2::InstanceEventWindow. |
Constructors
CfnInstanceEventWindow(Construct, string, ICfnInstanceEventWindowProps?)
Create a new AWS::EC2::InstanceEventWindow.
public CfnInstanceEventWindow(Construct scope, string id, ICfnInstanceEventWindowProps? props = null)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnInstanceEventWindowProps
Resource properties.
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
Properties
AttrArn
The Amazon Resource Name (ARN) of the event window.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrInstanceEventWindowId
The ID of the event window.
public virtual string AttrInstanceEventWindowId { get; }
Property Value
Remarks
CloudformationAttribute: InstanceEventWindowId
AttrState
The current state of the event window.
public virtual string AttrState { get; }
Property Value
Remarks
Observed values include creating, active, modifying, deleting and deleted.
CloudformationAttribute: State
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
CfnProperties
Resource type definition for AWS::EC2::InstanceEventWindow.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
CfnPropertyNames
Resource type definition for AWS::EC2::InstanceEventWindow.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
CronExpression
The cron expression defined for the event window.
public virtual string? CronExpression { get; set; }
Property Value
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
InstanceEventWindowRef
A reference to a InstanceEventWindow resource.
public virtual IInstanceEventWindowReference InstanceEventWindowRef { get; }
Property Value
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
Name
The name of the event window.
public virtual string? Name { get; set; }
Property Value
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
Tags
The tags applied to the event window.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
TimeRanges
The time ranges of the event window.
public virtual object? TimeRanges { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnInstanceEventWindow.ITimeRangeProperty)[]
Methods
ArnForInstanceEventWindow(IInstanceEventWindowRef)
Resource type definition for AWS::EC2::InstanceEventWindow.
public static string ArnForInstanceEventWindow(IInstanceEventWindowRef resource)
Parameters
- resource IInstanceEventWindowRef
Returns
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnInstanceEventWindow = new CfnInstanceEventWindow(this, "MyCfnInstanceEventWindow", new CfnInstanceEventWindowProps {
CronExpression = "cronExpression",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TimeRanges = new [] { new TimeRangeProperty {
EndHour = 123,
EndWeekDay = "endWeekDay",
StartHour = 123,
StartWeekDay = "startWeekDay"
} }
});
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
IsCfnInstanceEventWindow(object)
Checks whether the given object is a CfnInstanceEventWindow.
public static bool IsCfnInstanceEventWindow(object x)
Parameters
- x object
Returns
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Resource type definition for AWS::EC2::InstanceEventWindow.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
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.
CloudformationResource: AWS::EC2::InstanceEventWindow
ExampleMetadata: fixture=_generated