| 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 |
Amazonka.Connect.CreateUseCase
Description
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.
Constructors
| CreateUseCase' | |
Fields
| |
Instances
Arguments
| :: 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:
CreateUseCase, createUseCase_tags - The tags used to organize, track, or control access for this resource.
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
CreateUseCase, createUseCase_instanceId - The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
CreateUseCase, createUseCase_integrationAssociationId - The identifier for the integration association.
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 #
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
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.
Constructors
| CreateUseCaseResponse' | |
Fields
| |
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:
CreateUseCaseResponse, createUseCaseResponse_useCaseArn - The Amazon Resource Name (ARN) for the use case.
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.