listChannelHandshakes

Lists channel handshakes based on specified criteria.

Samples

// Example for ListChannelHandshakes START_SERVICE_PERIOD
val resp = partnerCentralChannelClient.listChannelHandshakes {
    handshakeType = HandshakeType.fromValue("START_SERVICE_PERIOD")
    catalog = "AWS"
    participantType = ParticipantType.fromValue("SENDER")
    statuses = listOf<HandshakeStatus>(
        HandshakeStatus.fromValue("ACCEPTED")
    )
    associatedResourceIdentifiers = listOf<String>(
        "rs-123abc456def7"
    )
    handshakeTypeFilters = ListChannelHandshakesTypeFilters.StartServicePeriodTypeFilters(StartServicePeriodTypeFilters {
        servicePeriodTypes = listOf<ServicePeriodType>(
            ServicePeriodType.fromValue("FIXED_COMMITMENT_PERIOD")
        )
    }
    )
    handshakeTypeSort = ListChannelHandshakesTypeSort.StartServicePeriodTypeSort(StartServicePeriodTypeSort {
        sortBy = StartServicePeriodTypeSortName.fromValue("UpdatedAt")
        sortOrder = SortOrder.fromValue("Descending")
    }
    )
}
// Example for ListChannelHandshakes REVOKE_SERVICE_PERIOD
val resp = partnerCentralChannelClient.listChannelHandshakes {
    handshakeType = HandshakeType.fromValue("REVOKE_SERVICE_PERIOD")
    catalog = "AWS"
    participantType = ParticipantType.fromValue("SENDER")
    statuses = listOf<HandshakeStatus>(
        HandshakeStatus.fromValue("ACCEPTED")
    )
    associatedResourceIdentifiers = listOf<String>(
        "rs-123abc456def7"
    )
    handshakeTypeFilters = ListChannelHandshakesTypeFilters.RevokeServicePeriodTypeFilters(RevokeServicePeriodTypeFilters {
        servicePeriodTypes = listOf<ServicePeriodType>(
            ServicePeriodType.fromValue("MINIMUM_NOTICE_PERIOD")
        )
    }
    )
    handshakeTypeSort = ListChannelHandshakesTypeSort.RevokeServicePeriodTypeSort(RevokeServicePeriodTypeSort {
        sortBy = RevokeServicePeriodTypeSortName.fromValue("UpdatedAt")
        sortOrder = SortOrder.fromValue("Descending")
    }
    )
}
// Example for ListChannelHandshakes PROGRAM_MANAGEMENT_ACCOUNT
val resp = partnerCentralChannelClient.listChannelHandshakes {
    handshakeType = HandshakeType.fromValue("PROGRAM_MANAGEMENT_ACCOUNT")
    catalog = "AWS"
    participantType = ParticipantType.fromValue("SENDER")
    statuses = listOf<HandshakeStatus>(
        HandshakeStatus.fromValue("ACCEPTED")
    )
    associatedResourceIdentifiers = listOf<String>(
        "pma-123abc456def7"
    )
    handshakeTypeFilters = ListChannelHandshakesTypeFilters.ProgramManagementAccountTypeFilters(ProgramManagementAccountTypeFilters {
        programs = listOf<Program>(
            Program.fromValue("SOLUTION_PROVIDER")
        )
    }
    )
    handshakeTypeSort = ListChannelHandshakesTypeSort.ProgramManagementAccountTypeSort(ProgramManagementAccountTypeSort {
        sortBy = ProgramManagementAccountTypeSortName.fromValue("UpdatedAt")
        sortOrder = SortOrder.fromValue("Descending")
    }
    )
    maxResults = 20
    nextToken = "nextToken"
}