Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Publishes a development schema with a version. If description and attributes are specified, PublishSchema
overrides the development schema description and attributes. If not, the development schema description and attributes are used.
- publishSchema :: Text -> Text -> PublishSchema
- data PublishSchema
- psName :: Lens' PublishSchema (Maybe Text)
- psDevelopmentSchemaARN :: Lens' PublishSchema Text
- psVersion :: Lens' PublishSchema Text
- publishSchemaResponse :: Int -> PublishSchemaResponse
- data PublishSchemaResponse
- psrsPublishedSchemaARN :: Lens' PublishSchemaResponse (Maybe Text)
- psrsResponseStatus :: Lens' PublishSchemaResponse Int
Creating a Request
Creates a value of PublishSchema
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
psName
- The new name under which the schema will be published. If this is not provided, the development schema is considered.psDevelopmentSchemaARN
- The Amazon Resource Name (ARN) that is associated with the development schema. For more information, seearns
.psVersion
- The version under which the schema will be published.
data PublishSchema Source #
See: publishSchema
smart constructor.
Request Lenses
psName :: 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.
psDevelopmentSchemaARN :: Lens' PublishSchema Text Source #
The Amazon Resource Name (ARN) that is associated with the development schema. For more information, see arns
.
Destructuring the Response
publishSchemaResponse Source #
Creates a value of PublishSchemaResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
psrsPublishedSchemaARN
- The ARN that is associated with the published schema. For more information, seearns
.psrsResponseStatus
- -- | The response status code.
data PublishSchemaResponse Source #
See: publishSchemaResponse
smart constructor.
Response Lenses
psrsPublishedSchemaARN :: Lens' PublishSchemaResponse (Maybe Text) Source #
The ARN that is associated with the published schema. For more information, see arns
.
psrsResponseStatus :: Lens' PublishSchemaResponse Int Source #
- - | The response status code.