amazonka-ssm-1.4.5: Amazon Simple Systems Manager (SSM) SDK.

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

Network.AWS.SSM.CreateMaintenanceWindow

Contents

Description

Creates a new Maintenance Window.

Synopsis

Creating a Request

createMaintenanceWindow Source #

Creates a value of CreateMaintenanceWindow with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cmwClientToken - User-provided idempotency token.
  • cmwName - The name of the Maintenance Window.
  • cmwSchedule - The schedule of the Maintenance Window in the form of a cron or rate expression.
  • cmwDuration - The duration of the Maintenance Window in hours.
  • cmwCutoff - The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.
  • cmwAllowUnassociatedTargets - Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.

data CreateMaintenanceWindow Source #

See: createMaintenanceWindow smart constructor.

Instances

Eq CreateMaintenanceWindow Source # 
Data CreateMaintenanceWindow Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateMaintenanceWindow -> c CreateMaintenanceWindow #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateMaintenanceWindow #

toConstr :: CreateMaintenanceWindow -> Constr #

dataTypeOf :: CreateMaintenanceWindow -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateMaintenanceWindow) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateMaintenanceWindow) #

gmapT :: (forall b. Data b => b -> b) -> CreateMaintenanceWindow -> CreateMaintenanceWindow #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaintenanceWindow -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaintenanceWindow -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateMaintenanceWindow -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateMaintenanceWindow -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateMaintenanceWindow -> m CreateMaintenanceWindow #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaintenanceWindow -> m CreateMaintenanceWindow #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaintenanceWindow -> m CreateMaintenanceWindow #

Read CreateMaintenanceWindow Source # 
Show CreateMaintenanceWindow Source # 
Generic CreateMaintenanceWindow Source # 
Hashable CreateMaintenanceWindow Source # 
ToJSON CreateMaintenanceWindow Source # 
NFData CreateMaintenanceWindow Source # 

Methods

rnf :: CreateMaintenanceWindow -> () #

AWSRequest CreateMaintenanceWindow Source # 
ToPath CreateMaintenanceWindow Source # 
ToHeaders CreateMaintenanceWindow Source # 
ToQuery CreateMaintenanceWindow Source # 
type Rep CreateMaintenanceWindow Source # 
type Rep CreateMaintenanceWindow = D1 (MetaData "CreateMaintenanceWindow" "Network.AWS.SSM.CreateMaintenanceWindow" "amazonka-ssm-1.4.5-B1a5iPTYqlbHaMCHVQ4GNL" False) (C1 (MetaCons "CreateMaintenanceWindow'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cmwClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cmwName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cmwSchedule") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cmwDuration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)) ((:*:) (S1 (MetaSel (Just Symbol "_cmwCutoff") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat)) (S1 (MetaSel (Just Symbol "_cmwAllowUnassociatedTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))))
type Rs CreateMaintenanceWindow Source # 

Request Lenses

cmwClientToken :: Lens' CreateMaintenanceWindow (Maybe Text) Source #

User-provided idempotency token.

cmwName :: Lens' CreateMaintenanceWindow Text Source #

The name of the Maintenance Window.

cmwSchedule :: Lens' CreateMaintenanceWindow Text Source #

The schedule of the Maintenance Window in the form of a cron or rate expression.

cmwDuration :: Lens' CreateMaintenanceWindow Natural Source #

The duration of the Maintenance Window in hours.

cmwCutoff :: Lens' CreateMaintenanceWindow Natural Source #

The number of hours before the end of the Maintenance Window that Systems Manager stops scheduling new tasks for execution.

cmwAllowUnassociatedTargets :: Lens' CreateMaintenanceWindow Bool Source #

Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.

Destructuring the Response

createMaintenanceWindowResponse Source #

Creates a value of CreateMaintenanceWindowResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateMaintenanceWindowResponse Source #

See: createMaintenanceWindowResponse smart constructor.

Instances

Eq CreateMaintenanceWindowResponse Source # 
Data CreateMaintenanceWindowResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateMaintenanceWindowResponse -> c CreateMaintenanceWindowResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateMaintenanceWindowResponse #

toConstr :: CreateMaintenanceWindowResponse -> Constr #

dataTypeOf :: CreateMaintenanceWindowResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateMaintenanceWindowResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateMaintenanceWindowResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateMaintenanceWindowResponse -> CreateMaintenanceWindowResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaintenanceWindowResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaintenanceWindowResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateMaintenanceWindowResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateMaintenanceWindowResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateMaintenanceWindowResponse -> m CreateMaintenanceWindowResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaintenanceWindowResponse -> m CreateMaintenanceWindowResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaintenanceWindowResponse -> m CreateMaintenanceWindowResponse #

Read CreateMaintenanceWindowResponse Source # 
Show CreateMaintenanceWindowResponse Source # 
Generic CreateMaintenanceWindowResponse Source # 
NFData CreateMaintenanceWindowResponse Source # 
type Rep CreateMaintenanceWindowResponse Source # 
type Rep CreateMaintenanceWindowResponse = D1 (MetaData "CreateMaintenanceWindowResponse" "Network.AWS.SSM.CreateMaintenanceWindow" "amazonka-ssm-1.4.5-B1a5iPTYqlbHaMCHVQ4GNL" False) (C1 (MetaCons "CreateMaintenanceWindowResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cmwrsWindowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cmwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

cmwrsWindowId :: Lens' CreateMaintenanceWindowResponse (Maybe Text) Source #

The ID of the created Maintenance Window.