Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
.
- createResourceGroup :: NonEmpty ResourceGroupTag -> CreateResourceGroup
- data CreateResourceGroup
- crgResourceGroupTags :: Lens' CreateResourceGroup (NonEmpty ResourceGroupTag)
- createResourceGroupResponse :: Int -> Text -> CreateResourceGroupResponse
- data CreateResourceGroupResponse
- crgrsResponseStatus :: Lens' CreateResourceGroupResponse Int
- crgrsResourceGroupARN :: Lens' CreateResourceGroupResponse Text
Creating a Request
Creates a value of CreateResourceGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crgResourceGroupTags
- 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]}]'.
data CreateResourceGroup Source #
See: createResourceGroup
smart constructor.
Request Lenses
Destructuring the Response
createResourceGroupResponse Source #
Creates a value of CreateResourceGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crgrsResponseStatus
- -- | The response status code.crgrsResourceGroupARN
- The ARN that specifies the resource group that is created.
data CreateResourceGroupResponse Source #
See: createResourceGroupResponse
smart constructor.
Response Lenses
crgrsResponseStatus :: Lens' CreateResourceGroupResponse Int Source #
- - | The response status code.
crgrsResourceGroupARN :: Lens' CreateResourceGroupResponse Text Source #
The ARN that specifies the resource group that is created.