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 |
This API is in preview release for Amazon Connect and is subject to change.
Associates a storage resource type for the first time. You can only associate one type of storage configuration in a single call. This means, for example, that you can't define an instance with multiple S3 buckets for storing chat transcripts.
This API does not create a resource that doesn't exist. It only associates it to the instance. Ensure that the resource being specified in the storage configuration, like an S3 bucket, exists when being used for association.
Synopsis
- data AssociateInstanceStorageConfig = AssociateInstanceStorageConfig' {}
- newAssociateInstanceStorageConfig :: Text -> InstanceStorageResourceType -> InstanceStorageConfig -> AssociateInstanceStorageConfig
- associateInstanceStorageConfig_instanceId :: Lens' AssociateInstanceStorageConfig Text
- associateInstanceStorageConfig_resourceType :: Lens' AssociateInstanceStorageConfig InstanceStorageResourceType
- associateInstanceStorageConfig_storageConfig :: Lens' AssociateInstanceStorageConfig InstanceStorageConfig
- data AssociateInstanceStorageConfigResponse = AssociateInstanceStorageConfigResponse' {
- associationId :: Maybe Text
- httpStatus :: Int
- newAssociateInstanceStorageConfigResponse :: Int -> AssociateInstanceStorageConfigResponse
- associateInstanceStorageConfigResponse_associationId :: Lens' AssociateInstanceStorageConfigResponse (Maybe Text)
- associateInstanceStorageConfigResponse_httpStatus :: Lens' AssociateInstanceStorageConfigResponse Int
Creating a Request
data AssociateInstanceStorageConfig Source #
See: newAssociateInstanceStorageConfig
smart constructor.
AssociateInstanceStorageConfig' | |
|
Instances
newAssociateInstanceStorageConfig Source #
Create a value of AssociateInstanceStorageConfig
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:instanceId:AssociateInstanceStorageConfig'
, associateInstanceStorageConfig_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
$sel:resourceType:AssociateInstanceStorageConfig'
, associateInstanceStorageConfig_resourceType
- A valid resource type.
$sel:storageConfig:AssociateInstanceStorageConfig'
, associateInstanceStorageConfig_storageConfig
- A valid storage type.
Request Lenses
associateInstanceStorageConfig_instanceId :: Lens' AssociateInstanceStorageConfig Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
associateInstanceStorageConfig_resourceType :: Lens' AssociateInstanceStorageConfig InstanceStorageResourceType Source #
A valid resource type.
associateInstanceStorageConfig_storageConfig :: Lens' AssociateInstanceStorageConfig InstanceStorageConfig Source #
A valid storage type.
Destructuring the Response
data AssociateInstanceStorageConfigResponse Source #
See: newAssociateInstanceStorageConfigResponse
smart constructor.
AssociateInstanceStorageConfigResponse' | |
|
Instances
newAssociateInstanceStorageConfigResponse Source #
Create a value of AssociateInstanceStorageConfigResponse
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:associationId:AssociateInstanceStorageConfigResponse'
, associateInstanceStorageConfigResponse_associationId
- The existing association identifier that uniquely identifies the
resource type and storage config for the given instance ID.
$sel:httpStatus:AssociateInstanceStorageConfigResponse'
, associateInstanceStorageConfigResponse_httpStatus
- The response's http status code.
Response Lenses
associateInstanceStorageConfigResponse_associationId :: Lens' AssociateInstanceStorageConfigResponse (Maybe Text) Source #
The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.
associateInstanceStorageConfigResponse_httpStatus :: Lens' AssociateInstanceStorageConfigResponse Int Source #
The response's http status code.