Create a meeting with AWS Chime SDK

220 Views Asked by At

I have a free tier plan with AWS and I'm trying to get get started with creating meetings using AWS SDK.

private AWSCredentialsProvider getAwsCredentials() {
    final BasicAWSCredentials basicAwsCredentials = new BasicAWSCredentials(accessKeyId, accessKeySecret);
    return new AWSStaticCredentialsProvider(basicAwsCredentials);
  }
  @Bean
  public AmazonChimeSDKMeetingsClient getChimeMeetingClient() {
    return (AmazonChimeSDKMeetingsClient) AmazonChimeSDKMeetingsClientBuilder
      .standard()
      .withCredentials(getAwsCredentials())
      .withRegion(Regions.EU_WEST_2)
      .build();
  }

I tried to create a meeting with simple request like this

  public Object createMeeting() {
    var request = new CreateMeetingRequest();
    request.withMediaRegion("us-west-2");
    return meetingsClient.createMeeting(request);
  }

But I don't even understand because I'm getting a ThrottlingException that doesn't make enough sense to me. I've gone through the docs but not helpful as regard understanding the concept of quotas.

References: https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_CreateMeeting.html https://docs.aws.amazon.com/general/latest/gr/chime-sdk.html

Thank you all.enter image description here

0

There are 0 best solutions below