V2modelsBotVersion constructor
V2modelsBotVersion(
- String name, {
- V2modelsBotVersionArgs? args,
- CustomResourceOptions? options,
Creates a new V2modelsBotVersion.
name The Pulumi resource name.
args Arguments used to configure this V2modelsBotVersion. The set of arguments for V2modelsBotVersion.
options Resource options controlling this resource's behavior.
Implementation
V2modelsBotVersion(
String name, {
V2modelsBotVersionArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:lex/v2modelsBotVersion:V2modelsBotVersion',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
botId = registerOutput<String>('botId');
botVersion = registerOutput<String>('botVersion');
description = registerOutput<String?>('description');
localeSpecification = registerOutput<Map<String, V2modelsBotVersionLocaleSpecification>>('localeSpecification', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeMapValues<V2modelsBotVersionLocaleSpecification>(guardedValue, (value) => V2modelsBotVersionLocaleSpecification.fromMap((value as Map).cast<String, dynamic>())); });
region = registerOutput<String>('region');
timeouts = registerOutput<V2modelsBotVersionTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return V2modelsBotVersionTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}