delete_environment_connection
¶
delete_environment_connection(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
connection_id: Optional[ConnectionId] = None,
provider_config: Optional[ConnectionProviderKey] = None,
) -> DeleteEnvironmentConnectionOutput
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.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
connection_id(Optional[ConnectionId], default:None) –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. -
provider_config(Optional[ConnectionProviderKey], default:None) –The connection to delete, identified by the source that it connects to.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Delete an S3 evidence connection Removes the Amazon S3 evidence connection from the payments team's governance environment.
>>> client.delete_environment_connection(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', provider_config={'s3': {'sourceUri': 's3://payments-prod-evidence/pci-dss/'}})
Source code in docs_src/capo_assurance/_services/assurance.py
1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 | |