Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- putComplianceItems :: Text -> Text -> Text -> ComplianceExecutionSummary -> PutComplianceItems
- data PutComplianceItems
- pciItemContentHash :: Lens' PutComplianceItems (Maybe Text)
- pciResourceId :: Lens' PutComplianceItems Text
- pciResourceType :: Lens' PutComplianceItems Text
- pciComplianceType :: Lens' PutComplianceItems Text
- pciExecutionSummary :: Lens' PutComplianceItems ComplianceExecutionSummary
- pciItems :: Lens' PutComplianceItems [ComplianceItemEntry]
- putComplianceItemsResponse :: Int -> PutComplianceItemsResponse
- data PutComplianceItemsResponse
- pcirsResponseStatus :: Lens' PutComplianceItemsResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Text | |
-> ComplianceExecutionSummary | |
-> PutComplianceItems |
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.
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:
pcirsResponseStatus
- -- | The response status code.
data PutComplianceItemsResponse Source #
See: putComplianceItemsResponse
smart constructor.
Response Lenses
pcirsResponseStatus :: Lens' PutComplianceItemsResponse Int Source #
- - | The response status code.