Assurance / Client / delete_environment_connection
delete_environment_connection¶
- Assurance.Client.delete_environment_connection(**kwargs)¶
Deletes a connection from a governance environment. Specify the connection in
providerConfig. Deleting a connection doesn’t delete any evidence.If the connection doesn’t exist, the operation succeeds without returning an error.
See also: AWS API Documentation
Request Syntax
response = client.delete_environment_connection( environmentArn='string', connectionId='string', providerConfig={ 's3': { 'sourceUri': 'string' }, 'github': { 'account': 'string' }, 'sharepoint': { 'tenantId': 'string' } } )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
connectionId (string) –
The ID of the GitHub or SharePoint connection to delete, as returned by
ListEnvironmentConnections. An Amazon S3 connection has no ID. To delete one, useproviderConfig.Specify either
connectionIdorproviderConfig, but not both.providerConfig (dict) –
The connection to delete, identified by the source that it connects to.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
s3,github,sharepoint.s3 (dict) –
An Amazon S3 connection, identified by its source URI.
sourceUri (string) – [REQUIRED]
The Amazon S3 URI of the connection. To find it, call
ListEnvironmentConnectionsand reads3.sourceUri.
github (dict) –
The account of a GitHub connection.
account (string) – [REQUIRED]
The name of the GitHub organization or user account. This is the
github.accountvalue inListEnvironmentConnections.
sharepoint (dict) –
The tenant of a SharePoint connection.
tenantId (string) – [REQUIRED]
The ID of the Microsoft Entra tenant. This is the
sharepoint.tenantIdvalue inListEnvironmentConnections.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions