Copyright | (c) 2013-2018 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 |
Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup
. If the service-linked role isn’t already registered, 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
- createAssessmentTarget :: Text -> Text -> CreateAssessmentTarget
- data CreateAssessmentTarget
- catAssessmentTargetName :: Lens' CreateAssessmentTarget Text
- catResourceGroupARN :: Lens' CreateAssessmentTarget Text
- createAssessmentTargetResponse :: Int -> Text -> CreateAssessmentTargetResponse
- data CreateAssessmentTargetResponse
- catrsResponseStatus :: Lens' CreateAssessmentTargetResponse Int
- catrsAssessmentTargetARN :: Lens' CreateAssessmentTargetResponse Text
Creating a Request
createAssessmentTarget Source #
Creates a value of CreateAssessmentTarget
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
catAssessmentTargetName
- The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.catResourceGroupARN
- The ARN that specifies the resource group that is used to create the assessment target.
data CreateAssessmentTarget Source #
See: createAssessmentTarget
smart constructor.
Instances
Request Lenses
catAssessmentTargetName :: 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.
catResourceGroupARN :: Lens' CreateAssessmentTarget Text Source #
The ARN that specifies the resource group that is used to create the assessment target.
Destructuring the Response
createAssessmentTargetResponse Source #
Creates a value of CreateAssessmentTargetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
catrsResponseStatus
- -- | The response status code.catrsAssessmentTargetARN
- The ARN that specifies the assessment target that is created.
data CreateAssessmentTargetResponse Source #
See: createAssessmentTargetResponse
smart constructor.
Instances
Response Lenses
catrsResponseStatus :: Lens' CreateAssessmentTargetResponse Int Source #
- - | The response status code.
catrsAssessmentTargetARN :: Lens' CreateAssessmentTargetResponse Text Source #
The ARN that specifies the assessment target that is created.