libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSM.UpdateMaintenanceWindowTarget

Description

Modifies the target of an existing maintenance window. You can change the following:

  • Name
  • Description
  • Owner
  • IDs for an ID target
  • Tags for a Tag target
  • From any supported tag type to another. The three supported tag types are ID target, Tag target, and resource group. For more information, see Target.

If a parameter is null, then the corresponding field isn't modified.

Synopsis

Creating a Request

data UpdateMaintenanceWindowTarget Source #

See: newUpdateMaintenanceWindowTarget smart constructor.

Constructors

UpdateMaintenanceWindowTarget' 

Fields

Instances

Instances details
Eq UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

Show UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

Generic UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

Associated Types

type Rep UpdateMaintenanceWindowTarget :: Type -> Type #

NFData UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

Hashable UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

ToJSON UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

AWSRequest UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

ToHeaders UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

ToPath UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

ToQuery UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

type Rep UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

type Rep UpdateMaintenanceWindowTarget = D1 ('MetaData "UpdateMaintenanceWindowTarget" "Amazonka.SSM.UpdateMaintenanceWindowTarget" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "UpdateMaintenanceWindowTarget'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "ownerInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Target])) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "windowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "windowTargetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateMaintenanceWindowTarget Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

newUpdateMaintenanceWindowTarget Source #

Create a value of UpdateMaintenanceWindowTarget 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:replace:UpdateMaintenanceWindowTarget', updateMaintenanceWindowTarget_replace - If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request. Optional fields that aren't specified are set to null.

$sel:ownerInformation:UpdateMaintenanceWindowTarget', updateMaintenanceWindowTarget_ownerInformation - User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.

$sel:name:UpdateMaintenanceWindowTarget', updateMaintenanceWindowTarget_name - A name for the update.

$sel:targets:UpdateMaintenanceWindowTarget', updateMaintenanceWindowTarget_targets - The targets to add or replace.

$sel:description:UpdateMaintenanceWindowTarget', updateMaintenanceWindowTarget_description - An optional description for the update.

$sel:windowId:UpdateMaintenanceWindowTarget', updateMaintenanceWindowTarget_windowId - The maintenance window ID with which to modify the target.

$sel:windowTargetId:UpdateMaintenanceWindowTarget', updateMaintenanceWindowTarget_windowTargetId - The target ID to modify.

Request Lenses

updateMaintenanceWindowTarget_replace :: Lens' UpdateMaintenanceWindowTarget (Maybe Bool) Source #

If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request. Optional fields that aren't specified are set to null.

updateMaintenanceWindowTarget_ownerInformation :: Lens' UpdateMaintenanceWindowTarget (Maybe Text) Source #

User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.

updateMaintenanceWindowTarget_windowId :: Lens' UpdateMaintenanceWindowTarget Text Source #

The maintenance window ID with which to modify the target.

Destructuring the Response

data UpdateMaintenanceWindowTargetResponse Source #

Constructors

UpdateMaintenanceWindowTargetResponse' 

Fields

Instances

Instances details
Eq UpdateMaintenanceWindowTargetResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

Show UpdateMaintenanceWindowTargetResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

Generic UpdateMaintenanceWindowTargetResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

NFData UpdateMaintenanceWindowTargetResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

type Rep UpdateMaintenanceWindowTargetResponse Source # 
Instance details

Defined in Amazonka.SSM.UpdateMaintenanceWindowTarget

type Rep UpdateMaintenanceWindowTargetResponse = D1 ('MetaData "UpdateMaintenanceWindowTargetResponse" "Amazonka.SSM.UpdateMaintenanceWindowTarget" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "UpdateMaintenanceWindowTargetResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ownerInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "windowTargetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "targets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Target])) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "windowId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

Response Lenses