amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

Description

 
Synopsis

Documentation

data ScheduledInstanceRecurrenceRequest Source #

Describes the recurring schedule for a Scheduled Instance.

See: newScheduledInstanceRecurrenceRequest smart constructor.

Constructors

ScheduledInstanceRecurrenceRequest' 

Fields

  • frequency :: Maybe Text

    The frequency (Daily, Weekly, or Monthly).

  • interval :: Maybe Int

    The interval quantity. The interval unit depends on the value of Frequency. For example, every 2 weeks or every 2 months.

  • occurrenceDays :: Maybe [Int]

    The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday). You can't specify this value with a daily schedule. If the occurrence is relative to the end of the month, you can specify only a single day.

  • occurrenceRelativeToEnd :: Maybe Bool

    Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule.

  • occurrenceUnit :: Maybe Text

    The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. You can't specify this value with a daily schedule.

Instances

Instances details
ToQuery ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

Generic ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

Associated Types

type Rep ScheduledInstanceRecurrenceRequest :: Type -> Type #

Read ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

Show ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

NFData ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

Eq ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

Hashable ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

type Rep ScheduledInstanceRecurrenceRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest

type Rep ScheduledInstanceRecurrenceRequest = D1 ('MetaData "ScheduledInstanceRecurrenceRequest" "Amazonka.EC2.Types.ScheduledInstanceRecurrenceRequest" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ScheduledInstanceRecurrenceRequest'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "frequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "interval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "occurrenceDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Int])) :*: (S1 ('MetaSel ('Just "occurrenceRelativeToEnd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "occurrenceUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newScheduledInstanceRecurrenceRequest :: ScheduledInstanceRecurrenceRequest Source #

Create a value of ScheduledInstanceRecurrenceRequest with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:frequency:ScheduledInstanceRecurrenceRequest', scheduledInstanceRecurrenceRequest_frequency - The frequency (Daily, Weekly, or Monthly).

$sel:interval:ScheduledInstanceRecurrenceRequest', scheduledInstanceRecurrenceRequest_interval - The interval quantity. The interval unit depends on the value of Frequency. For example, every 2 weeks or every 2 months.

$sel:occurrenceDays:ScheduledInstanceRecurrenceRequest', scheduledInstanceRecurrenceRequest_occurrenceDays - The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday). You can't specify this value with a daily schedule. If the occurrence is relative to the end of the month, you can specify only a single day.

$sel:occurrenceRelativeToEnd:ScheduledInstanceRecurrenceRequest', scheduledInstanceRecurrenceRequest_occurrenceRelativeToEnd - Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule.

$sel:occurrenceUnit:ScheduledInstanceRecurrenceRequest', scheduledInstanceRecurrenceRequest_occurrenceUnit - The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. You can't specify this value with a daily schedule.

scheduledInstanceRecurrenceRequest_interval :: Lens' ScheduledInstanceRecurrenceRequest (Maybe Int) Source #

The interval quantity. The interval unit depends on the value of Frequency. For example, every 2 weeks or every 2 months.

scheduledInstanceRecurrenceRequest_occurrenceDays :: Lens' ScheduledInstanceRecurrenceRequest (Maybe [Int]) Source #

The days. For a monthly schedule, this is one or more days of the month (1-31). For a weekly schedule, this is one or more days of the week (1-7, where 1 is Sunday). You can't specify this value with a daily schedule. If the occurrence is relative to the end of the month, you can specify only a single day.

scheduledInstanceRecurrenceRequest_occurrenceRelativeToEnd :: Lens' ScheduledInstanceRecurrenceRequest (Maybe Bool) Source #

Indicates whether the occurrence is relative to the end of the specified week or month. You can't specify this value with a daily schedule.

scheduledInstanceRecurrenceRequest_occurrenceUnit :: Lens' ScheduledInstanceRecurrenceRequest (Maybe Text) Source #

The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. You can't specify this value with a daily schedule.