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
5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 | |