Copyright | (c) 2013-2021 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 |
Creates or updates a conformance pack. A conformance pack is a collection of Config rules that can be easily deployed in an account and a region and across Amazon Web Services Organization.
This API creates a service linked role AWSServiceRoleForConfigConforms
in your account. The service linked role is created only when the role
does not exist in your account.
You must specify either the TemplateS3Uri
or the TemplateBody
parameter, but not both. If you provide both Config uses the
TemplateS3Uri
parameter and ignores the TemplateBody
parameter.
Synopsis
- data PutConformancePack = PutConformancePack' {}
- newPutConformancePack :: Text -> PutConformancePack
- putConformancePack_deliveryS3Bucket :: Lens' PutConformancePack (Maybe Text)
- putConformancePack_deliveryS3KeyPrefix :: Lens' PutConformancePack (Maybe Text)
- putConformancePack_templateS3Uri :: Lens' PutConformancePack (Maybe Text)
- putConformancePack_conformancePackInputParameters :: Lens' PutConformancePack (Maybe [ConformancePackInputParameter])
- putConformancePack_templateBody :: Lens' PutConformancePack (Maybe Text)
- putConformancePack_conformancePackName :: Lens' PutConformancePack Text
- data PutConformancePackResponse = PutConformancePackResponse' {}
- newPutConformancePackResponse :: Int -> PutConformancePackResponse
- putConformancePackResponse_conformancePackArn :: Lens' PutConformancePackResponse (Maybe Text)
- putConformancePackResponse_httpStatus :: Lens' PutConformancePackResponse Int
Creating a Request
data PutConformancePack Source #
See: newPutConformancePack
smart constructor.
PutConformancePack' | |
|
Instances
newPutConformancePack Source #
Create a value of PutConformancePack
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:deliveryS3Bucket:PutConformancePack'
, putConformancePack_deliveryS3Bucket
- The name of the Amazon S3 bucket where Config stores conformance pack
templates.
This field is optional.
$sel:deliveryS3KeyPrefix:PutConformancePack'
, putConformancePack_deliveryS3KeyPrefix
- The prefix for the Amazon S3 bucket.
This field is optional.
$sel:templateS3Uri:PutConformancePack'
, putConformancePack_templateS3Uri
- Location of file containing the template body
(s3://bucketname/prefix
). The uri must point to the conformance
pack template (max size: 300 KB) that is located in an Amazon S3 bucket
in the same region as the conformance pack.
You must have access to read Amazon S3 bucket.
$sel:conformancePackInputParameters:PutConformancePack'
, putConformancePack_conformancePackInputParameters
- A list of ConformancePackInputParameter
objects.
$sel:templateBody:PutConformancePack'
, putConformancePack_templateBody
- A string containing full conformance pack template body. Structure
containing the template body with a minimum length of 1 byte and a
maximum length of 51,200 bytes.
You can only use a YAML template with one resource type, that is, config rule and a remediation action.
$sel:conformancePackName:PutConformancePack'
, putConformancePack_conformancePackName
- Name of the conformance pack you want to create.
Request Lenses
putConformancePack_deliveryS3Bucket :: Lens' PutConformancePack (Maybe Text) Source #
The name of the Amazon S3 bucket where Config stores conformance pack templates.
This field is optional.
putConformancePack_deliveryS3KeyPrefix :: Lens' PutConformancePack (Maybe Text) Source #
The prefix for the Amazon S3 bucket.
This field is optional.
putConformancePack_templateS3Uri :: Lens' PutConformancePack (Maybe Text) Source #
Location of file containing the template body
(s3://bucketname/prefix
). The uri must point to the conformance
pack template (max size: 300 KB) that is located in an Amazon S3 bucket
in the same region as the conformance pack.
You must have access to read Amazon S3 bucket.
putConformancePack_conformancePackInputParameters :: Lens' PutConformancePack (Maybe [ConformancePackInputParameter]) Source #
A list of ConformancePackInputParameter
objects.
putConformancePack_templateBody :: Lens' PutConformancePack (Maybe Text) Source #
A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
You can only use a YAML template with one resource type, that is, config rule and a remediation action.
putConformancePack_conformancePackName :: Lens' PutConformancePack Text Source #
Name of the conformance pack you want to create.
Destructuring the Response
data PutConformancePackResponse Source #
See: newPutConformancePackResponse
smart constructor.
PutConformancePackResponse' | |
|
Instances
newPutConformancePackResponse Source #
Create a value of PutConformancePackResponse
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:conformancePackArn:PutConformancePackResponse'
, putConformancePackResponse_conformancePackArn
- ARN of the conformance pack.
$sel:httpStatus:PutConformancePackResponse'
, putConformancePackResponse_httpStatus
- The response's http status code.
Response Lenses
putConformancePackResponse_conformancePackArn :: Lens' PutConformancePackResponse (Maybe Text) Source #
ARN of the conformance pack.
putConformancePackResponse_httpStatus :: Lens' PutConformancePackResponse Int Source #
The response's http status code.