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

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

Network.AWS.SSM.PutComplianceItems

Contents

Description

Registers a compliance type and other compliance details on a designated resource. This action lets you register custom compliance details with a resource. This call overwrites existing compliance information on the resource, so you must provide a full list of compliance items each time that you send the request.

Synopsis

Creating a Request

putComplianceItems Source #

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

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

  • pciItemContentHash - MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.
  • pciResourceId - Specify an ID for this resource. For a managed instance, this is the instance ID.
  • pciResourceType - Specify the type of resource. ManagedInstance is currently the only supported resource type.
  • pciComplianceType - Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:string .
  • pciExecutionSummary - A summary of the call execution that includes an execution ID, the type of execution (for example, Command ), and the date/time of the execution using a datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.
  • pciItems - Information about the compliance as defined by the resource type. For example, for a patch compliance type, Items includes information about the PatchSeverity, Classification, etc.

data PutComplianceItems Source #

See: putComplianceItems smart constructor.

Instances

Eq PutComplianceItems Source # 
Data PutComplianceItems Source # 

Methods

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

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

toConstr :: PutComplianceItems -> Constr #

dataTypeOf :: PutComplianceItems -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: PutComplianceItems -> () #

AWSRequest PutComplianceItems Source # 
ToQuery PutComplianceItems Source # 
ToPath PutComplianceItems Source # 
ToHeaders PutComplianceItems Source # 
type Rep PutComplianceItems Source # 
type Rep PutComplianceItems = D1 (MetaData "PutComplianceItems" "Network.AWS.SSM.PutComplianceItems" "amazonka-ssm-1.5.0-7otWUS4XVRaHT5J0sMcEDs" False) (C1 (MetaCons "PutComplianceItems'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pciItemContentHash") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_pciResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pciResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_pciComplianceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_pciExecutionSummary") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ComplianceExecutionSummary)) (S1 (MetaSel (Just Symbol "_pciItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [ComplianceItemEntry]))))))
type Rs PutComplianceItems Source # 

Request Lenses

pciItemContentHash :: Lens' PutComplianceItems (Maybe Text) Source #

MD5 or SHA-256 content hash. The content hash is used to determine if existing information should be overwritten or ignored. If the content hashes match, the request to put compliance information is ignored.

pciResourceId :: Lens' PutComplianceItems Text Source #

Specify an ID for this resource. For a managed instance, this is the instance ID.

pciResourceType :: Lens' PutComplianceItems Text Source #

Specify the type of resource. ManagedInstance is currently the only supported resource type.

pciComplianceType :: Lens' PutComplianceItems Text Source #

Specify the compliance type. For example, specify Association (for a State Manager association), Patch, or Custom:string .

pciExecutionSummary :: Lens' PutComplianceItems ComplianceExecutionSummary Source #

A summary of the call execution that includes an execution ID, the type of execution (for example, Command ), and the date/time of the execution using a datetime object that is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

pciItems :: Lens' PutComplianceItems [ComplianceItemEntry] Source #

Information about the compliance as defined by the resource type. For example, for a patch compliance type, Items includes information about the PatchSeverity, Classification, etc.

Destructuring the Response

putComplianceItemsResponse Source #

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

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

data PutComplianceItemsResponse Source #

See: putComplianceItemsResponse smart constructor.

Instances

Eq PutComplianceItemsResponse Source # 
Data PutComplianceItemsResponse Source # 

Methods

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

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

toConstr :: PutComplianceItemsResponse -> Constr #

dataTypeOf :: PutComplianceItemsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutComplianceItemsResponse Source # 
Show PutComplianceItemsResponse Source # 
Generic PutComplianceItemsResponse Source # 
NFData PutComplianceItemsResponse Source # 
type Rep PutComplianceItemsResponse Source # 
type Rep PutComplianceItemsResponse = D1 (MetaData "PutComplianceItemsResponse" "Network.AWS.SSM.PutComplianceItems" "amazonka-ssm-1.5.0-7otWUS4XVRaHT5J0sMcEDs" True) (C1 (MetaCons "PutComplianceItemsResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_pcirsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses