Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssociateOriginationIdentityCommand

Associates the specified origination identity with a pool.

If the origination identity is a phone number and is already associated with another pool, an Error is returned. A sender ID can be associated with multiple pools.

If the origination identity configuration doesn't match the pool's configuration, an Error is returned.

example

Use a bare-bones client and the command you need to make an API call.

import { PinpointSMSVoiceV2Client, AssociateOriginationIdentityCommand } from "@aws-sdk/client-pinpoint-sms-voice-v2"; // ES Modules import
// const { PinpointSMSVoiceV2Client, AssociateOriginationIdentityCommand } = require("@aws-sdk/client-pinpoint-sms-voice-v2"); // CommonJS import
const client = new PinpointSMSVoiceV2Client(config);
const command = new AssociateOriginationIdentityCommand(input);
const response = await client.send(command);
see

AssociateOriginationIdentityCommandInput for command's input shape.

see

AssociateOriginationIdentityCommandOutput for command's response shape.

see

config for PinpointSMSVoiceV2Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: AssociateOriginationIdentityCommandInput

Readonly middlewareStack