| Copyright | (c) 2013-2018 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 |
Network.AWS.CloudDirectory.PublishSchema
Description
Publishes a development schema with a major version and a recommended minor version.
Synopsis
- publishSchema :: Text -> Text -> PublishSchema
- data PublishSchema
- psMinorVersion :: Lens' PublishSchema (Maybe Text)
- 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
Arguments
| :: Text | |
| -> Text | |
| -> PublishSchema |
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:
psMinorVersion- 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.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 major version under which the schema will be published. Schemas have both a major and minor version associated with them.
data PublishSchema Source #
See: publishSchema smart constructor.
Instances
Request Lenses
psMinorVersion :: 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.
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 .
psVersion :: 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
publishSchemaResponse Source #
Arguments
| :: Int | |
| -> PublishSchemaResponse |
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.
Instances
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.