associate_instance_storage_config
async
¶
associate_instance_storage_config(
instance_id: InstanceId,
resource_type: InstanceStorageResourceType,
storage_config: InstanceStorageConfig,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
) -> AssociateInstanceStorageConfigResponse
This API is in preview release for Connect Customer 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.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
resource_type(InstanceStorageResourceType) –A valid resource type. To enable streaming for real-time analysis of contacts, use the following types:
-
For chat contacts, use
REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS. -
For voice contacts, use
REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS.
REAL_TIME_CONTACT_ANALYSIS_SEGMENTSis deprecated, but it is still supported and will apply only to VOICE channel contacts. UseREAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTSfor voice contacts moving forward.If you have previously associated a stream with
REAL_TIME_CONTACT_ANALYSIS_SEGMENTS, no action is needed to update the stream toREAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS. -
-
storage_config(InstanceStorageConfig) –A valid storage type.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Raises:
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceConflictException–A resource already has that name.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 | |