create_integration
async
¶
create_integration(
provider: Provider,
input: ProviderInput,
integration_display_name: str,
*,
config_overrides: Optional[AsyncSecurityAgentClientConfig] = None,
kms_key_id: Optional[KmsKeyId] = None,
tags: Optional[TagMap] = None,
private_connection_name: Optional[PrivateConnectionName] = None,
) -> CreateIntegrationOutput
Creates a new integration with a third-party provider, such as GitHub, for code review and remediation.
Parameters:
-
provider(Provider) –The integration provider.
-
input(ProviderInput) –The provider-specific input required to create the integration.
-
integration_display_name(str) –The display name for the integration.
-
kms_key_id(Optional[KmsKeyId], default:None) –The identifier of the AWS KMS key to use for encrypting data associated with the integration.
-
tags(Optional[TagMap], default:None) –The tags to associate with the integration.
-
private_connection_name(Optional[PrivateConnectionName], default:None) –The name of an active private connection used to reach a self-hosted provider instance over private networking. Specify this when the instance is not publicly reachable.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred during the processing of your request.
-
ResourceNotFoundException–The specified resource was not found. Verify that the resource identifier is correct and that the resource exists in the specified agent space or account.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityagent/_services/async_security_agent.py
5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 | |