createRelationship

Creates a new partner relationship between accounts.

Samples

import aws.sdk.kotlin.services.partnercentralchannel.model.AssociationType
import aws.sdk.kotlin.services.partnercentralchannel.model.ResaleAccountModel
import aws.sdk.kotlin.services.partnercentralchannel.model.Sector

fun main() { 
   //sampleStart 
   // Example for CreateRelationship
val resp = partnerCentralChannelClient.createRelationship {
    catalog = "AWS"
    associationType = AssociationType.fromValue("DOWNSTREAM_SELLER")
    programManagementAccountIdentifier = "pma-u8ic702rtzng8"
    associatedAccountId = "987654321012"
    displayName = "TestDisplayName"
    resaleAccountModel = ResaleAccountModel.fromValue("END_CUSTOMER")
    sector = Sector.fromValue("COMMERCIAL")
    clientToken = "clientToken"
} 
   //sampleEnd
}