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.DeleteInstanceEventWindow

Description

Deletes the specified event window.

For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data DeleteInstanceEventWindow Source #

See: newDeleteInstanceEventWindow smart constructor.

Constructors

DeleteInstanceEventWindow' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • forceDelete :: Maybe Bool

    Specify true to force delete the event window. Use the force delete parameter if the event window is currently associated with targets.

  • instanceEventWindowId :: Text

    The ID of the event window.

Instances

Instances details
ToHeaders DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

ToPath DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

ToQuery DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

AWSRequest DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Generic DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Associated Types

type Rep DeleteInstanceEventWindow :: Type -> Type #

Read DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Show DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

NFData DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Eq DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Hashable DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

type AWSResponse DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

type Rep DeleteInstanceEventWindow Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

type Rep DeleteInstanceEventWindow = D1 ('MetaData "DeleteInstanceEventWindow" "Amazonka.EC2.DeleteInstanceEventWindow" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteInstanceEventWindow'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "forceDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "instanceEventWindowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDeleteInstanceEventWindow Source #

Create a value of DeleteInstanceEventWindow 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:dryRun:DeleteInstanceEventWindow', deleteInstanceEventWindow_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

$sel:forceDelete:DeleteInstanceEventWindow', deleteInstanceEventWindow_forceDelete - Specify true to force delete the event window. Use the force delete parameter if the event window is currently associated with targets.

DeleteInstanceEventWindow, deleteInstanceEventWindow_instanceEventWindowId - The ID of the event window.

Request Lenses

deleteInstanceEventWindow_dryRun :: Lens' DeleteInstanceEventWindow (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

deleteInstanceEventWindow_forceDelete :: Lens' DeleteInstanceEventWindow (Maybe Bool) Source #

Specify true to force delete the event window. Use the force delete parameter if the event window is currently associated with targets.

Destructuring the Response

data DeleteInstanceEventWindowResponse Source #

See: newDeleteInstanceEventWindowResponse smart constructor.

Constructors

DeleteInstanceEventWindowResponse' 

Fields

Instances

Instances details
Generic DeleteInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Associated Types

type Rep DeleteInstanceEventWindowResponse :: Type -> Type #

Read DeleteInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Show DeleteInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

NFData DeleteInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

Eq DeleteInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

type Rep DeleteInstanceEventWindowResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteInstanceEventWindow

type Rep DeleteInstanceEventWindowResponse = D1 ('MetaData "DeleteInstanceEventWindowResponse" "Amazonka.EC2.DeleteInstanceEventWindow" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteInstanceEventWindowResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceEventWindowState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceEventWindowStateChange)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteInstanceEventWindowResponse Source #

Create a value of DeleteInstanceEventWindowResponse 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:instanceEventWindowState:DeleteInstanceEventWindowResponse', deleteInstanceEventWindowResponse_instanceEventWindowState - The state of the event window.

$sel:httpStatus:DeleteInstanceEventWindowResponse', deleteInstanceEventWindowResponse_httpStatus - The response's http status code.

Response Lenses