BotAssociation constructor

BotAssociation(
  1. String name, {
  2. BotAssociationArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new BotAssociation. name The Pulumi resource name. args Arguments used to configure this BotAssociation. The set of arguments for BotAssociation. options Resource options controlling this resource's behavior.

Implementation

BotAssociation(
  String name, {
  BotAssociationArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:connect/botAssociation:BotAssociation',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  instanceId = registerOutput<String>('instanceId');
  lexBot = registerOutput<BotAssociationLexBot>('lexBot', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BotAssociationLexBot.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  region = registerOutput<String>('region');
}