create_integration
¶
create_integration(
provider: Provider,
input: ProviderInput,
integration_display_name: str,
*,
config_overrides: Optional[SecurityAgentClientConfig] = 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/security_agent.py
5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 | |