create_relationship
¶
create_relationship(
catalog: Catalog,
association_type: AssociationType,
program_management_account_identifier: ProgramManagementAccountIdentifier,
associated_account_id: AccountId,
display_name: RelationshipDisplayName,
sector: Sector,
*,
config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
resale_account_model: Optional[ResaleAccountModel] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagList] = None,
requested_support_plan: Optional[SupportPlan] = None,
) -> CreateRelationshipResponse
Creates a new partner relationship between accounts.
Parameters:
-
catalog(Catalog) –The catalog identifier for the relationship.
-
association_type(AssociationType) –The type of association for the relationship (e.g., reseller, distributor).
-
program_management_account_identifier(ProgramManagementAccountIdentifier) –The identifier of the program management account for this relationship.
-
associated_account_id(AccountId) –The AWS account ID to associate in this relationship.
-
display_name(RelationshipDisplayName) –A human-readable name for the relationship.
-
resale_account_model(Optional[ResaleAccountModel], default:None) –The resale account model for the relationship.
-
sector(Sector) –The business sector for the relationship.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure idempotency of the request.
-
tags(Optional[TagList], default:None) –Key-value pairs to associate with the relationship.
-
requested_support_plan(Optional[SupportPlan], default:None) –The support plan requested for this relationship.
Raises:
-
AccessDeniedException–The request was denied due to insufficient permissions.
-
InternalServerException–An internal server error occurred while processing the request.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The request was throttled due to too many requests being sent in a short period.
-
ValidationException–The request failed validation due to invalid input parameters.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
ServiceQuotaExceededException–The request would exceed a service quota limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Example for CreateRelationship
>>> client.create_relationship(catalog='AWS', association_type='DOWNSTREAM_SELLER', program_management_account_identifier='pma-u8ic702rtzng8', associated_account_id='987654321012', display_name='TestDisplayName', resale_account_model='END_CUSTOMER', sector='COMMERCIAL', client_token='clientToken')
Source code in docs_src/capo_partnercentral_channel/_services/partner_central_channel.py
1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 | |