| 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.ServiceCatalogAppRegistry.CreateAttributeGroup
Description
Creates a new attribute group as a container for user-defined attributes. This feature enables users to have full control over their cloud application's metadata in a rich machine-readable format to facilitate integration with automated workflows and third-party tools.
Synopsis
- data CreateAttributeGroup = CreateAttributeGroup' {
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- name :: Text
- attributes :: Text
- clientToken :: Text
- newCreateAttributeGroup :: Text -> Text -> Text -> CreateAttributeGroup
- createAttributeGroup_description :: Lens' CreateAttributeGroup (Maybe Text)
- createAttributeGroup_tags :: Lens' CreateAttributeGroup (Maybe (HashMap Text Text))
- createAttributeGroup_name :: Lens' CreateAttributeGroup Text
- createAttributeGroup_attributes :: Lens' CreateAttributeGroup Text
- createAttributeGroup_clientToken :: Lens' CreateAttributeGroup Text
- data CreateAttributeGroupResponse = CreateAttributeGroupResponse' {}
- newCreateAttributeGroupResponse :: Int -> CreateAttributeGroupResponse
- createAttributeGroupResponse_attributeGroup :: Lens' CreateAttributeGroupResponse (Maybe AttributeGroup)
- createAttributeGroupResponse_httpStatus :: Lens' CreateAttributeGroupResponse Int
Creating a Request
data CreateAttributeGroup Source #
See: newCreateAttributeGroup smart constructor.
Constructors
| CreateAttributeGroup' | |
Fields
| |
Instances
newCreateAttributeGroup Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateAttributeGroup |
Create a value of CreateAttributeGroup 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:
CreateAttributeGroup, createAttributeGroup_description - The description of the attribute group that the user provides.
CreateAttributeGroup, createAttributeGroup_tags - Key-value pairs you can use to associate with the attribute group.
CreateAttributeGroup, createAttributeGroup_name - The name of the attribute group.
$sel:attributes:CreateAttributeGroup', createAttributeGroup_attributes - A JSON string in the form of nested key-value pairs that represent the
attributes in the group and describes an application and its components.
$sel:clientToken:CreateAttributeGroup', createAttributeGroup_clientToken - A unique identifier that you provide to ensure idempotency. If you retry
a request that completed successfully using the same client token and
the same parameters, the retry succeeds without performing any further
actions. If you retry a successful request using the same client token,
but one or more of the parameters are different, the retry fails.
Request Lenses
createAttributeGroup_description :: Lens' CreateAttributeGroup (Maybe Text) Source #
The description of the attribute group that the user provides.
createAttributeGroup_tags :: Lens' CreateAttributeGroup (Maybe (HashMap Text Text)) Source #
Key-value pairs you can use to associate with the attribute group.
createAttributeGroup_name :: Lens' CreateAttributeGroup Text Source #
The name of the attribute group.
createAttributeGroup_attributes :: Lens' CreateAttributeGroup Text Source #
A JSON string in the form of nested key-value pairs that represent the attributes in the group and describes an application and its components.
createAttributeGroup_clientToken :: Lens' CreateAttributeGroup Text Source #
A unique identifier that you provide to ensure idempotency. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails.
Destructuring the Response
data CreateAttributeGroupResponse Source #
See: newCreateAttributeGroupResponse smart constructor.
Constructors
| CreateAttributeGroupResponse' | |
Fields
| |
Instances
newCreateAttributeGroupResponse Source #
Create a value of CreateAttributeGroupResponse 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:attributeGroup:CreateAttributeGroupResponse', createAttributeGroupResponse_attributeGroup - Information about the attribute group.
$sel:httpStatus:CreateAttributeGroupResponse', createAttributeGroupResponse_httpStatus - The response's http status code.
Response Lenses
createAttributeGroupResponse_attributeGroup :: Lens' CreateAttributeGroupResponse (Maybe AttributeGroup) Source #
Information about the attribute group.
createAttributeGroupResponse_httpStatus :: Lens' CreateAttributeGroupResponse Int Source #
The response's http status code.