libZSservicesZSamazonka-inspectorZSamazonka-inspector
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Inspector.CreateAssessmentTarget

Description

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

Creating a Request

data CreateAssessmentTarget Source #

See: newCreateAssessmentTarget smart constructor.

Constructors

CreateAssessmentTarget' 

Fields

  • resourceGroupArn :: Maybe Text

    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.

  • assessmentTargetName :: Text

    The user-defined name that identifies the assessment target that you want to create. The name must be unique within the AWS account.

Instances

Instances details
Eq CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Read CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Show CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Generic CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Associated Types

type Rep CreateAssessmentTarget :: Type -> Type #

NFData CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Methods

rnf :: CreateAssessmentTarget -> () #

Hashable CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

ToJSON CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

AWSRequest CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Associated Types

type AWSResponse CreateAssessmentTarget #

ToHeaders CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

ToPath CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

ToQuery CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

type Rep CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

type Rep CreateAssessmentTarget = D1 ('MetaData "CreateAssessmentTarget" "Amazonka.Inspector.CreateAssessmentTarget" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "CreateAssessmentTarget'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "assessmentTargetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateAssessmentTarget Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

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.

Constructors

CreateAssessmentTargetResponse' 

Fields

Instances

Instances details
Eq CreateAssessmentTargetResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Read CreateAssessmentTargetResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Show CreateAssessmentTargetResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Generic CreateAssessmentTargetResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

Associated Types

type Rep CreateAssessmentTargetResponse :: Type -> Type #

NFData CreateAssessmentTargetResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateAssessmentTarget

type Rep CreateAssessmentTargetResponse Source # 
Instance details

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_assessmentTargetArn :: Lens' CreateAssessmentTargetResponse Text Source #

The ARN that specifies the assessment target that is created.