AWS::EC2::InstanceEventWindow

EC2 InstanceEventWindow

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.

Properties

4 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
CronExpression
string
Name
string
Tags
Array<Tag>
TimeRanges
Array<TimeRange>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of the event window.
InstanceEventWindowIdstringThe ID of the event window.
StatestringThe current state of the event window. Observed values include creating, active, modifying, deleting and deleted.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::InstanceEventWindow

Resources:
  MyResource:
    Type: AWS::EC2::InstanceEventWindow
    Properties:
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:CreateInstanceEventWindowec2:CreateTagsec2:DescribeInstanceEventWindows

read

ec2:DescribeInstanceEventWindows

update

ec2:ModifyInstanceEventWindowec2:DescribeInstanceEventWindowsec2:CreateTagsec2:DeleteTags

delete

ec2:DeleteInstanceEventWindowec2:DescribeInstanceEventWindows

list

ec2:DescribeInstanceEventWindows

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic