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 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
- data CreateResourceGroup = CreateResourceGroup' {}
- newCreateResourceGroup :: NonEmpty ResourceGroupTag -> CreateResourceGroup
- createResourceGroup_resourceGroupTags :: Lens' CreateResourceGroup (NonEmpty ResourceGroupTag)
- data CreateResourceGroupResponse = CreateResourceGroupResponse' {}
- newCreateResourceGroupResponse :: Int -> Text -> CreateResourceGroupResponse
- createResourceGroupResponse_httpStatus :: Lens' CreateResourceGroupResponse Int
- createResourceGroupResponse_resourceGroupArn :: Lens' CreateResourceGroupResponse Text
Creating a Request
data CreateResourceGroup Source #
See: newCreateResourceGroup
smart constructor.
CreateResourceGroup' | |
|
Instances
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.
CreateResourceGroupResponse' | |
|
Instances
newCreateResourceGroupResponse Source #
:: Int | |
-> Text | |
-> CreateResourceGroupResponse |
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_httpStatus :: Lens' CreateResourceGroupResponse Int Source #
The response's http status code.
createResourceGroupResponse_resourceGroupArn :: Lens' CreateResourceGroupResponse Text Source #
The ARN that specifies the resource group that is created.