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 an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.
Synopsis
- data CreateAssessmentTemplate = CreateAssessmentTemplate' {}
- newCreateAssessmentTemplate :: Text -> Text -> Natural -> CreateAssessmentTemplate
- createAssessmentTemplate_userAttributesForFindings :: Lens' CreateAssessmentTemplate (Maybe [Attribute])
- createAssessmentTemplate_assessmentTargetArn :: Lens' CreateAssessmentTemplate Text
- createAssessmentTemplate_assessmentTemplateName :: Lens' CreateAssessmentTemplate Text
- createAssessmentTemplate_durationInSeconds :: Lens' CreateAssessmentTemplate Natural
- createAssessmentTemplate_rulesPackageArns :: Lens' CreateAssessmentTemplate [Text]
- data CreateAssessmentTemplateResponse = CreateAssessmentTemplateResponse' {}
- newCreateAssessmentTemplateResponse :: Int -> Text -> CreateAssessmentTemplateResponse
- createAssessmentTemplateResponse_httpStatus :: Lens' CreateAssessmentTemplateResponse Int
- createAssessmentTemplateResponse_assessmentTemplateArn :: Lens' CreateAssessmentTemplateResponse Text
Creating a Request
data CreateAssessmentTemplate Source #
See: newCreateAssessmentTemplate
smart constructor.
CreateAssessmentTemplate' | |
|
Instances
newCreateAssessmentTemplate Source #
:: Text | |
-> Text | |
-> Natural | |
-> CreateAssessmentTemplate |
Create a value of CreateAssessmentTemplate
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:userAttributesForFindings:CreateAssessmentTemplate'
, createAssessmentTemplate_userAttributesForFindings
- The user-defined attributes that are assigned to every finding that is
generated by the assessment run that uses this assessment template. An
attribute is a key and value pair (an Attribute object). Within an
assessment template, each key must be unique.
$sel:assessmentTargetArn:CreateAssessmentTemplate'
, createAssessmentTemplate_assessmentTargetArn
- The ARN that specifies the assessment target for which you want to
create the assessment template.
$sel:assessmentTemplateName:CreateAssessmentTemplate'
, createAssessmentTemplate_assessmentTemplateName
- The user-defined name that identifies the assessment template that you
want to create. You can create several assessment templates for an
assessment target. The names of the assessment templates that correspond
to a particular assessment target must be unique.
$sel:durationInSeconds:CreateAssessmentTemplate'
, createAssessmentTemplate_durationInSeconds
- The duration of the assessment run in seconds.
$sel:rulesPackageArns:CreateAssessmentTemplate'
, createAssessmentTemplate_rulesPackageArns
- The ARNs that specify the rules packages that you want to attach to the
assessment template.
Request Lenses
createAssessmentTemplate_userAttributesForFindings :: Lens' CreateAssessmentTemplate (Maybe [Attribute]) Source #
The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. An attribute is a key and value pair (an Attribute object). Within an assessment template, each key must be unique.
createAssessmentTemplate_assessmentTargetArn :: Lens' CreateAssessmentTemplate Text Source #
The ARN that specifies the assessment target for which you want to create the assessment template.
createAssessmentTemplate_assessmentTemplateName :: Lens' CreateAssessmentTemplate Text Source #
The user-defined name that identifies the assessment template that you want to create. You can create several assessment templates for an assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
createAssessmentTemplate_durationInSeconds :: Lens' CreateAssessmentTemplate Natural Source #
The duration of the assessment run in seconds.
createAssessmentTemplate_rulesPackageArns :: Lens' CreateAssessmentTemplate [Text] Source #
The ARNs that specify the rules packages that you want to attach to the assessment template.
Destructuring the Response
data CreateAssessmentTemplateResponse Source #
See: newCreateAssessmentTemplateResponse
smart constructor.
CreateAssessmentTemplateResponse' | |
|
Instances
Eq CreateAssessmentTemplateResponse Source # | |
Read CreateAssessmentTemplateResponse Source # | |
Show CreateAssessmentTemplateResponse Source # | |
Generic CreateAssessmentTemplateResponse Source # | |
NFData CreateAssessmentTemplateResponse Source # | |
Defined in Amazonka.Inspector.CreateAssessmentTemplate rnf :: CreateAssessmentTemplateResponse -> () # | |
type Rep CreateAssessmentTemplateResponse Source # | |
Defined in Amazonka.Inspector.CreateAssessmentTemplate type Rep CreateAssessmentTemplateResponse = D1 ('MetaData "CreateAssessmentTemplateResponse" "Amazonka.Inspector.CreateAssessmentTemplate" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "CreateAssessmentTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "assessmentTemplateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newCreateAssessmentTemplateResponse Source #
:: Int | |
-> Text |
|
-> CreateAssessmentTemplateResponse |
Create a value of CreateAssessmentTemplateResponse
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:httpStatus:CreateAssessmentTemplateResponse'
, createAssessmentTemplateResponse_httpStatus
- The response's http status code.
$sel:assessmentTemplateArn:CreateAssessmentTemplateResponse'
, createAssessmentTemplateResponse_assessmentTemplateArn
- The ARN that specifies the assessment template that is created.
Response Lenses
createAssessmentTemplateResponse_httpStatus :: Lens' CreateAssessmentTemplateResponse Int Source #
The response's http status code.
createAssessmentTemplateResponse_assessmentTemplateArn :: Lens' CreateAssessmentTemplateResponse Text Source #
The ARN that specifies the assessment template that is created.