create_connector_v2
async
¶
create_connector_v2(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
name: Optional[NonEmptyString] = None,
description: Optional[NonEmptyString] = None,
provider: Optional[ProviderConfiguration] = None,
kms_key_arn: Optional[NonEmptyString] = None,
tags: Optional[TagMap] = None,
client_token: Optional[ClientToken] = None,
) -> CreateConnectorV2Response
Grants permission to create a connectorV2 based on input parameters.
Parameters:
-
name(Optional[NonEmptyString], default:None) –The unique name of the connectorV2.
-
description(Optional[NonEmptyString], default:None) –The description of the connectorV2.
-
provider(Optional[ProviderConfiguration], default:None) –The third-party provider’s service configuration.
-
kms_key_arn(Optional[NonEmptyString], default:None) –The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2.
-
tags(Optional[TagMap], default:None) –The tags to add to the connectorV2 when you create.
-
client_token(Optional[ClientToken], default:None) –A unique identifier used to ensure idempotency.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
ConflictException–The request causes conflict with the current state of the service resource.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
ServiceQuotaExceededException–The request was rejected because it would exceed the service quota limit.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 | |