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.CreateResourceGroup

Description

Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see CreateAssessmentTarget.

Synopsis

Creating a Request

data CreateResourceGroup Source #

See: newCreateResourceGroup smart constructor.

Constructors

CreateResourceGroup' 

Fields

  • resourceGroupTags :: NonEmpty ResourceGroupTag

    A collection of keys and an array of possible values, '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

    For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

Instances

Instances details
Eq CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Read CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Show CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Generic CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Associated Types

type Rep CreateResourceGroup :: Type -> Type #

NFData CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Methods

rnf :: CreateResourceGroup -> () #

Hashable CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

ToJSON CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

AWSRequest CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Associated Types

type AWSResponse CreateResourceGroup #

ToHeaders CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

ToPath CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

ToQuery CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

type Rep CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

type Rep CreateResourceGroup = D1 ('MetaData "CreateResourceGroup" "Amazonka.Inspector.CreateResourceGroup" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "CreateResourceGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceGroupTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ResourceGroupTag))))
type AWSResponse CreateResourceGroup Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

newCreateResourceGroup Source #

Create a value of CreateResourceGroup 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:resourceGroupTags:CreateResourceGroup', createResourceGroup_resourceGroupTags - A collection of keys and an array of possible values, '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

Request Lenses

createResourceGroup_resourceGroupTags :: Lens' CreateResourceGroup (NonEmpty ResourceGroupTag) Source #

A collection of keys and an array of possible values, '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

Destructuring the Response

data CreateResourceGroupResponse Source #

See: newCreateResourceGroupResponse smart constructor.

Constructors

CreateResourceGroupResponse' 

Fields

Instances

Instances details
Eq CreateResourceGroupResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Read CreateResourceGroupResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Show CreateResourceGroupResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Generic CreateResourceGroupResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

Associated Types

type Rep CreateResourceGroupResponse :: Type -> Type #

NFData CreateResourceGroupResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

type Rep CreateResourceGroupResponse Source # 
Instance details

Defined in Amazonka.Inspector.CreateResourceGroup

type Rep CreateResourceGroupResponse = D1 ('MetaData "CreateResourceGroupResponse" "Amazonka.Inspector.CreateResourceGroup" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "CreateResourceGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "resourceGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateResourceGroupResponse Source #

Create a value of CreateResourceGroupResponse 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:CreateResourceGroupResponse', createResourceGroupResponse_httpStatus - The response's http status code.

$sel:resourceGroupArn:CreateResourceGroupResponse', createResourceGroupResponse_resourceGroupArn - The ARN that specifies the resource group that is created.

Response Lenses

createResourceGroupResponse_resourceGroupArn :: Lens' CreateResourceGroupResponse Text Source #

The ARN that specifies the resource group that is created.