create_account_association
async
¶
create_account_association(
connector_destination_id: ConnectorDestinationId,
*,
config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = None,
client_token: Optional[ClientToken] = None,
name: Optional[AccountAssociationName] = None,
description: Optional[AccountAssociationDescription] = None,
tags: Optional[TagsMap] = None,
general_authorization: Optional[GeneralAuthorizationName] = None,
) -> CreateAccountAssociationResponse
Creates a new account association via the destination id.
Parameters:
-
client_token(Optional[ClientToken], default:None) –An idempotency token. If you retry a request that completed successfully initially using the same client token and parameters, then the retry attempt will succeed without performing any further actions.
-
connector_destination_id(ConnectorDestinationId) –The identifier of the connector destination.
-
name(Optional[AccountAssociationName], default:None) –The name of the destination for the new account association.
-
description(Optional[AccountAssociationDescription], default:None) –A description of the account association request.
-
tags(Optional[TagsMap], default:None) –A set of key/value pairs that are used to manage the account association.
-
general_authorization(Optional[GeneralAuthorizationName], default:None) –The General Authorization reference by authorization material name.
Raises:
-
AccessDeniedException–User is not authorized.
-
ConflictException–There is a conflict with the request.
-
InternalServerException–Internal error from the service that indicates an unexpected error or that the service is unavailable.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
ValidationException–A validation error occurred when performing the API request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot_managed_integrations/_services/async_io_t_managed_integrations.py
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 | |