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 a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in 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. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.
Synopsis
- data CreateAssessmentTarget = CreateAssessmentTarget' {}
- newCreateAssessmentTarget :: Text -> CreateAssessmentTarget
- createAssessmentTarget_resourceGroupArn :: Lens' CreateAssessmentTarget (Maybe Text)
- createAssessmentTarget_assessmentTargetName :: Lens' CreateAssessmentTarget Text
- data CreateAssessmentTargetResponse = CreateAssessmentTargetResponse' {}
- newCreateAssessmentTargetResponse :: Int -> Text -> CreateAssessmentTargetResponse
- createAssessmentTargetResponse_httpStatus :: Lens' CreateAssessmentTargetResponse Int
- createAssessmentTargetResponse_assessmentTargetArn :: Lens' CreateAssessmentTargetResponse Text
Creating a Request
data CreateAssessmentTarget Source #
See: newCreateAssessmentTarget
smart constructor.
CreateAssessmentTarget' | |
|
Instances
newCreateAssessmentTarget Source #
Create a value of CreateAssessmentTarget
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:resourceGroupArn:CreateAssessmentTarget'
, createAssessmentTarget_resourceGroupArn
- The ARN that specifies the resource group that is used to create the
assessment target. If resourceGroupArn is not specified, all EC2
instances in the current AWS account and region are included in the
assessment target.
$sel:assessmentTargetName:CreateAssessmentTarget'
, createAssessmentTarget_assessmentTargetName
- The user-defined name that identifies the assessment target that you
want to create. The name must be unique within the AWS account.
Request Lenses
createAssessmentTarget_resourceGroupArn :: Lens' CreateAssessmentTarget (Maybe Text) Source #
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
createAssessmentTarget_assessmentTargetName :: Lens' CreateAssessmentTarget Text Source #
The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.
Destructuring the Response
data CreateAssessmentTargetResponse Source #
See: newCreateAssessmentTargetResponse
smart constructor.
CreateAssessmentTargetResponse' | |
|
Instances
Eq CreateAssessmentTargetResponse Source # | |
Read CreateAssessmentTargetResponse Source # | |
Show CreateAssessmentTargetResponse Source # | |
Defined in Amazonka.Inspector.CreateAssessmentTarget | |
Generic CreateAssessmentTargetResponse Source # | |
NFData CreateAssessmentTargetResponse Source # | |
Defined in Amazonka.Inspector.CreateAssessmentTarget rnf :: CreateAssessmentTargetResponse -> () # | |
type Rep CreateAssessmentTargetResponse Source # | |
Defined in Amazonka.Inspector.CreateAssessmentTarget type Rep CreateAssessmentTargetResponse = D1 ('MetaData "CreateAssessmentTargetResponse" "Amazonka.Inspector.CreateAssessmentTarget" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "CreateAssessmentTargetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "assessmentTargetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newCreateAssessmentTargetResponse Source #
Create a value of CreateAssessmentTargetResponse
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:CreateAssessmentTargetResponse'
, createAssessmentTargetResponse_httpStatus
- The response's http status code.
$sel:assessmentTargetArn:CreateAssessmentTargetResponse'
, createAssessmentTargetResponse_assessmentTargetArn
- The ARN that specifies the assessment target that is created.
Response Lenses
createAssessmentTargetResponse_httpStatus :: Lens' CreateAssessmentTargetResponse Int Source #
The response's http status code.
createAssessmentTargetResponse_assessmentTargetArn :: Lens' CreateAssessmentTargetResponse Text Source #
The ARN that specifies the assessment target that is created.