create_code_security_integration
async
¶
create_code_security_integration(
name: IntegrationName,
type: IntegrationType,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = None,
details: Optional[CreateIntegrationDetail] = None,
tags: Optional[TagMap] = None,
) -> CreateCodeSecurityIntegrationResponse
Creates a code security integration with a source code repository provider.
After calling the CreateCodeSecurityIntegration operation, you complete authentication and authorization with your provider. Next you call the UpdateCodeSecurityIntegration operation to provide the details to complete the integration setup
Parameters:
-
name(IntegrationName) –The name of the code security integration.
-
type(IntegrationType) –The type of repository provider for the integration.
-
details(Optional[CreateIntegrationDetail], default:None) –The integration details specific to the repository provider type.
-
tags(Optional[TagMap], default:None) –The tags to apply to the code security integration.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
ConflictException–A conflict occurred. This exception occurs when the same resource is being modified by concurrent requests.
-
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ServiceQuotaExceededException–You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_inspector2/_services/async_inspector2.py
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 | |