| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- 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.
Constructors
| CreateResourceGroup' | |
Fields
| |
Instances
newCreateResourceGroup Source #
Arguments
| :: NonEmpty ResourceGroupTag | |
| -> CreateResourceGroup |
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
newCreateResourceGroupResponse Source #
Arguments
| :: 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.
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.