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 |
If you create a new application in Application Manager, Amazon Web Services Systems Manager calls this API operation to specify information about the new application, including the application type.
Synopsis
- data CreateOpsMetadata = CreateOpsMetadata' {
- metadata :: Maybe (HashMap Text MetadataValue)
- tags :: Maybe [Tag]
- resourceId :: Text
- newCreateOpsMetadata :: Text -> CreateOpsMetadata
- createOpsMetadata_metadata :: Lens' CreateOpsMetadata (Maybe (HashMap Text MetadataValue))
- createOpsMetadata_tags :: Lens' CreateOpsMetadata (Maybe [Tag])
- createOpsMetadata_resourceId :: Lens' CreateOpsMetadata Text
- data CreateOpsMetadataResponse = CreateOpsMetadataResponse' {
- opsMetadataArn :: Maybe Text
- httpStatus :: Int
- newCreateOpsMetadataResponse :: Int -> CreateOpsMetadataResponse
- createOpsMetadataResponse_opsMetadataArn :: Lens' CreateOpsMetadataResponse (Maybe Text)
- createOpsMetadataResponse_httpStatus :: Lens' CreateOpsMetadataResponse Int
Creating a Request
data CreateOpsMetadata Source #
See: newCreateOpsMetadata
smart constructor.
CreateOpsMetadata' | |
|
Instances
Create a value of CreateOpsMetadata
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:metadata:CreateOpsMetadata'
, createOpsMetadata_metadata
- Metadata for a new Application Manager application.
$sel:tags:CreateOpsMetadata'
, createOpsMetadata_tags
- Optional metadata that you assign to a resource. You can specify a
maximum of five tags for an OpsMetadata object. Tags enable you to
categorize a resource in different ways, such as by purpose, owner, or
environment. For example, you might want to tag an OpsMetadata object to
identify an environment or target Amazon Web Services Region. In this
case, you could specify the following key-value pairs:
Key=Environment,Value=Production
Key=Region,Value=us-east-2
$sel:resourceId:CreateOpsMetadata'
, createOpsMetadata_resourceId
- A resource ID for a new Application Manager application.
Request Lenses
createOpsMetadata_metadata :: Lens' CreateOpsMetadata (Maybe (HashMap Text MetadataValue)) Source #
Metadata for a new Application Manager application.
createOpsMetadata_tags :: Lens' CreateOpsMetadata (Maybe [Tag]) Source #
Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:
Key=Environment,Value=Production
Key=Region,Value=us-east-2
createOpsMetadata_resourceId :: Lens' CreateOpsMetadata Text Source #
A resource ID for a new Application Manager application.
Destructuring the Response
data CreateOpsMetadataResponse Source #
See: newCreateOpsMetadataResponse
smart constructor.
CreateOpsMetadataResponse' | |
|
Instances
newCreateOpsMetadataResponse Source #
Create a value of CreateOpsMetadataResponse
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:opsMetadataArn:CreateOpsMetadataResponse'
, createOpsMetadataResponse_opsMetadataArn
- The Amazon Resource Name (ARN) of the OpsMetadata Object or blob created
by the call.
$sel:httpStatus:CreateOpsMetadataResponse'
, createOpsMetadataResponse_httpStatus
- The response's http status code.
Response Lenses
createOpsMetadataResponse_opsMetadataArn :: Lens' CreateOpsMetadataResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the OpsMetadata Object or blob created by the call.
createOpsMetadataResponse_httpStatus :: Lens' CreateOpsMetadataResponse Int Source #
The response's http status code.