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 new registry which may be used to hold a collection of schemas.
Synopsis
- data CreateRegistry = CreateRegistry' {
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- registryName :: Text
- newCreateRegistry :: Text -> CreateRegistry
- createRegistry_description :: Lens' CreateRegistry (Maybe Text)
- createRegistry_tags :: Lens' CreateRegistry (Maybe (HashMap Text Text))
- createRegistry_registryName :: Lens' CreateRegistry Text
- data CreateRegistryResponse = CreateRegistryResponse' {
- registryName :: Maybe Text
- registryArn :: Maybe Text
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newCreateRegistryResponse :: Int -> CreateRegistryResponse
- createRegistryResponse_registryName :: Lens' CreateRegistryResponse (Maybe Text)
- createRegistryResponse_registryArn :: Lens' CreateRegistryResponse (Maybe Text)
- createRegistryResponse_description :: Lens' CreateRegistryResponse (Maybe Text)
- createRegistryResponse_tags :: Lens' CreateRegistryResponse (Maybe (HashMap Text Text))
- createRegistryResponse_httpStatus :: Lens' CreateRegistryResponse Int
Creating a Request
data CreateRegistry Source #
See: newCreateRegistry
smart constructor.
CreateRegistry' | |
|
Instances
Create a value of CreateRegistry
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:description:CreateRegistry'
, createRegistry_description
- A description of the registry. If description is not provided, there
will not be any default value for this.
$sel:tags:CreateRegistry'
, createRegistry_tags
- Amazon Web Services tags that contain a key value pair and may be
searched by console, command line, or API.
$sel:registryName:CreateRegistry'
, createRegistry_registryName
- Name of the registry to be created of max length of 255, and may only
contain letters, numbers, hyphen, underscore, dollar sign, or hash mark.
No whitespace.
Request Lenses
createRegistry_description :: Lens' CreateRegistry (Maybe Text) Source #
A description of the registry. If description is not provided, there will not be any default value for this.
createRegistry_tags :: Lens' CreateRegistry (Maybe (HashMap Text Text)) Source #
Amazon Web Services tags that contain a key value pair and may be searched by console, command line, or API.
createRegistry_registryName :: Lens' CreateRegistry Text Source #
Name of the registry to be created of max length of 255, and may only contain letters, numbers, hyphen, underscore, dollar sign, or hash mark. No whitespace.
Destructuring the Response
data CreateRegistryResponse Source #
See: newCreateRegistryResponse
smart constructor.
CreateRegistryResponse' | |
|
Instances
newCreateRegistryResponse Source #
Create a value of CreateRegistryResponse
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:registryName:CreateRegistry'
, createRegistryResponse_registryName
- The name of the registry.
$sel:registryArn:CreateRegistryResponse'
, createRegistryResponse_registryArn
- The Amazon Resource Name (ARN) of the newly created registry.
$sel:description:CreateRegistry'
, createRegistryResponse_description
- A description of the registry.
$sel:tags:CreateRegistry'
, createRegistryResponse_tags
- The tags for the registry.
$sel:httpStatus:CreateRegistryResponse'
, createRegistryResponse_httpStatus
- The response's http status code.
Response Lenses
createRegistryResponse_registryName :: Lens' CreateRegistryResponse (Maybe Text) Source #
The name of the registry.
createRegistryResponse_registryArn :: Lens' CreateRegistryResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the newly created registry.
createRegistryResponse_description :: Lens' CreateRegistryResponse (Maybe Text) Source #
A description of the registry.
createRegistryResponse_tags :: Lens' CreateRegistryResponse (Maybe (HashMap Text Text)) Source #
The tags for the registry.
createRegistryResponse_httpStatus :: Lens' CreateRegistryResponse Int Source #
The response's http status code.