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 |
Publishes a development schema with a major version and a recommended minor version.
Synopsis
- data PublishSchema = PublishSchema' {
- minorVersion :: Maybe Text
- name :: Maybe Text
- developmentSchemaArn :: Text
- version :: Text
- newPublishSchema :: Text -> Text -> PublishSchema
- publishSchema_minorVersion :: Lens' PublishSchema (Maybe Text)
- publishSchema_name :: Lens' PublishSchema (Maybe Text)
- publishSchema_developmentSchemaArn :: Lens' PublishSchema Text
- publishSchema_version :: Lens' PublishSchema Text
- data PublishSchemaResponse = PublishSchemaResponse' {}
- newPublishSchemaResponse :: Int -> PublishSchemaResponse
- publishSchemaResponse_publishedSchemaArn :: Lens' PublishSchemaResponse (Maybe Text)
- publishSchemaResponse_httpStatus :: Lens' PublishSchemaResponse Int
Creating a Request
data PublishSchema Source #
See: newPublishSchema
smart constructor.
PublishSchema' | |
|
Instances
Create a value of PublishSchema
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:minorVersion:PublishSchema'
, publishSchema_minorVersion
- The minor version under which the schema will be published. This
parameter is recommended. Schemas have both a major and minor version
associated with them.
$sel:name:PublishSchema'
, publishSchema_name
- The new name under which the schema will be published. If this is not
provided, the development schema is considered.
$sel:developmentSchemaArn:PublishSchema'
, publishSchema_developmentSchemaArn
- The Amazon Resource Name (ARN) that is associated with the development
schema. For more information, see arns.
$sel:version:PublishSchema'
, publishSchema_version
- The major version under which the schema will be published. Schemas have
both a major and minor version associated with them.
Request Lenses
publishSchema_minorVersion :: Lens' PublishSchema (Maybe Text) Source #
The minor version under which the schema will be published. This parameter is recommended. Schemas have both a major and minor version associated with them.
publishSchema_name :: Lens' PublishSchema (Maybe Text) Source #
The new name under which the schema will be published. If this is not provided, the development schema is considered.
publishSchema_developmentSchemaArn :: Lens' PublishSchema Text Source #
The Amazon Resource Name (ARN) that is associated with the development schema. For more information, see arns.
publishSchema_version :: Lens' PublishSchema Text Source #
The major version under which the schema will be published. Schemas have both a major and minor version associated with them.
Destructuring the Response
data PublishSchemaResponse Source #
See: newPublishSchemaResponse
smart constructor.
PublishSchemaResponse' | |
|
Instances
newPublishSchemaResponse Source #
Create a value of PublishSchemaResponse
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:publishedSchemaArn:PublishSchemaResponse'
, publishSchemaResponse_publishedSchemaArn
- The ARN that is associated with the published schema. For more
information, see arns.
$sel:httpStatus:PublishSchemaResponse'
, publishSchemaResponse_httpStatus
- The response's http status code.
Response Lenses
publishSchemaResponse_publishedSchemaArn :: Lens' PublishSchemaResponse (Maybe Text) Source #
The ARN that is associated with the published schema. For more information, see arns.
publishSchemaResponse_httpStatus :: Lens' PublishSchemaResponse Int Source #
The response's http status code.