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 use case for an integration association.
Synopsis
- data CreateUseCase = CreateUseCase' {}
- newCreateUseCase :: Text -> Text -> UseCaseType -> CreateUseCase
- createUseCase_tags :: Lens' CreateUseCase (Maybe (HashMap Text Text))
- createUseCase_instanceId :: Lens' CreateUseCase Text
- createUseCase_integrationAssociationId :: Lens' CreateUseCase Text
- createUseCase_useCaseType :: Lens' CreateUseCase UseCaseType
- data CreateUseCaseResponse = CreateUseCaseResponse' {
- useCaseArn :: Maybe Text
- useCaseId :: Maybe Text
- httpStatus :: Int
- newCreateUseCaseResponse :: Int -> CreateUseCaseResponse
- createUseCaseResponse_useCaseArn :: Lens' CreateUseCaseResponse (Maybe Text)
- createUseCaseResponse_useCaseId :: Lens' CreateUseCaseResponse (Maybe Text)
- createUseCaseResponse_httpStatus :: Lens' CreateUseCaseResponse Int
Creating a Request
data CreateUseCase Source #
See: newCreateUseCase
smart constructor.
CreateUseCase' | |
|
Instances
:: Text | |
-> Text | |
-> UseCaseType | |
-> CreateUseCase |
Create a value of CreateUseCase
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:tags:CreateUseCase'
, createUseCase_tags
- One or more tags.
$sel:instanceId:CreateUseCase'
, createUseCase_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
$sel:integrationAssociationId:CreateUseCase'
, createUseCase_integrationAssociationId
- The identifier for the integration association.
$sel:useCaseType:CreateUseCase'
, createUseCase_useCaseType
- The type of use case to associate to the integration association. Each
integration association can have only one of each use case type.
Request Lenses
createUseCase_tags :: Lens' CreateUseCase (Maybe (HashMap Text Text)) Source #
One or more tags.
createUseCase_instanceId :: Lens' CreateUseCase Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
createUseCase_integrationAssociationId :: Lens' CreateUseCase Text Source #
The identifier for the integration association.
createUseCase_useCaseType :: Lens' CreateUseCase UseCaseType Source #
The type of use case to associate to the integration association. Each integration association can have only one of each use case type.
Destructuring the Response
data CreateUseCaseResponse Source #
See: newCreateUseCaseResponse
smart constructor.
CreateUseCaseResponse' | |
|
Instances
newCreateUseCaseResponse Source #
Create a value of CreateUseCaseResponse
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:useCaseArn:CreateUseCaseResponse'
, createUseCaseResponse_useCaseArn
- The Amazon Resource Name (ARN) for the use case.
$sel:useCaseId:CreateUseCaseResponse'
, createUseCaseResponse_useCaseId
- The identifier of the use case.
$sel:httpStatus:CreateUseCaseResponse'
, createUseCaseResponse_httpStatus
- The response's http status code.
Response Lenses
createUseCaseResponse_useCaseArn :: Lens' CreateUseCaseResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the use case.
createUseCaseResponse_useCaseId :: Lens' CreateUseCaseResponse (Maybe Text) Source #
The identifier of the use case.
createUseCaseResponse_httpStatus :: Lens' CreateUseCaseResponse Int Source #
The response's http status code.