Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a new MSK configuration.
Synopsis
- data CreateConfiguration = CreateConfiguration' {
- description :: Maybe Text
- kafkaVersions :: Maybe [Text]
- serverProperties :: Base64
- name :: Text
- newCreateConfiguration :: ByteString -> Text -> CreateConfiguration
- createConfiguration_description :: Lens' CreateConfiguration (Maybe Text)
- createConfiguration_kafkaVersions :: Lens' CreateConfiguration (Maybe [Text])
- createConfiguration_serverProperties :: Lens' CreateConfiguration ByteString
- createConfiguration_name :: Lens' CreateConfiguration Text
- data CreateConfigurationResponse = CreateConfigurationResponse' {}
- newCreateConfigurationResponse :: Int -> CreateConfigurationResponse
- createConfigurationResponse_arn :: Lens' CreateConfigurationResponse (Maybe Text)
- createConfigurationResponse_creationTime :: Lens' CreateConfigurationResponse (Maybe UTCTime)
- createConfigurationResponse_latestRevision :: Lens' CreateConfigurationResponse (Maybe ConfigurationRevision)
- createConfigurationResponse_name :: Lens' CreateConfigurationResponse (Maybe Text)
- createConfigurationResponse_state :: Lens' CreateConfigurationResponse (Maybe ConfigurationState)
- createConfigurationResponse_httpStatus :: Lens' CreateConfigurationResponse Int
Creating a Request
data CreateConfiguration Source #
See: newCreateConfiguration
smart constructor.
CreateConfiguration' | |
|
Instances
newCreateConfiguration Source #
:: ByteString | |
-> Text | |
-> CreateConfiguration |
Create a value of CreateConfiguration
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:
CreateConfiguration
, createConfiguration_description
- The description of the configuration.
CreateConfiguration
, createConfiguration_kafkaVersions
- The versions of Apache Kafka with which you can use this MSK
configuration.
$sel:serverProperties:CreateConfiguration'
, createConfiguration_serverProperties
- Contents of the server.properties file. When using the API, you must
ensure that the contents of the file are base64 encoded. When using the
AWS Management Console, the SDK, or the AWS CLI, the contents of
server.properties can be in plaintext.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
CreateConfiguration
, createConfiguration_name
- The name of the configuration.
Request Lenses
createConfiguration_description :: Lens' CreateConfiguration (Maybe Text) Source #
The description of the configuration.
createConfiguration_kafkaVersions :: Lens' CreateConfiguration (Maybe [Text]) Source #
The versions of Apache Kafka with which you can use this MSK configuration.
createConfiguration_serverProperties :: Lens' CreateConfiguration ByteString Source #
Contents of the server.properties file. When using the API, you must
ensure that the contents of the file are base64 encoded. When using the
AWS Management Console, the SDK, or the AWS CLI, the contents of
server.properties can be in plaintext.--
-- Note: This Lens
automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens
accepts and returns only raw unencoded data.
createConfiguration_name :: Lens' CreateConfiguration Text Source #
The name of the configuration.
Destructuring the Response
data CreateConfigurationResponse Source #
See: newCreateConfigurationResponse
smart constructor.
CreateConfigurationResponse' | |
|
Instances
newCreateConfigurationResponse Source #
Create a value of CreateConfigurationResponse
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:
CreateConfigurationResponse
, createConfigurationResponse_arn
- The Amazon Resource Name (ARN) of the configuration.
CreateConfigurationResponse
, createConfigurationResponse_creationTime
- The time when the configuration was created.
CreateConfigurationResponse
, createConfigurationResponse_latestRevision
- Latest revision of the configuration.
CreateConfiguration
, createConfigurationResponse_name
- The name of the configuration.
CreateConfigurationResponse
, createConfigurationResponse_state
- The state of the configuration. The possible states are ACTIVE,
DELETING, and DELETE_FAILED.
$sel:httpStatus:CreateConfigurationResponse'
, createConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
createConfigurationResponse_arn :: Lens' CreateConfigurationResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the configuration.
createConfigurationResponse_creationTime :: Lens' CreateConfigurationResponse (Maybe UTCTime) Source #
The time when the configuration was created.
createConfigurationResponse_latestRevision :: Lens' CreateConfigurationResponse (Maybe ConfigurationRevision) Source #
Latest revision of the configuration.
createConfigurationResponse_name :: Lens' CreateConfigurationResponse (Maybe Text) Source #
The name of the configuration.
createConfigurationResponse_state :: Lens' CreateConfigurationResponse (Maybe ConfigurationState) Source #
The state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED.
createConfigurationResponse_httpStatus :: Lens' CreateConfigurationResponse Int Source #
The response's http status code.