github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/connect/vocabulary.go (about)

     1  // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
     2  // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
     3  
     4  package connect
     5  
     6  import (
     7  	"context"
     8  	"reflect"
     9  
    10  	"errors"
    11  	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
    12  	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    13  )
    14  
    15  // Provides an Amazon Connect Vocabulary resource. For more information see
    16  // [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html)
    17  //
    18  // ## Example Usage
    19  //
    20  // <!--Start PulumiCodeChooser -->
    21  // ```go
    22  // package main
    23  //
    24  // import (
    25  //
    26  //	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
    27  //	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    28  //
    29  // )
    30  //
    31  //	func main() {
    32  //		pulumi.Run(func(ctx *pulumi.Context) error {
    33  //			_, err := connect.NewVocabulary(ctx, "example", &connect.VocabularyArgs{
    34  //				InstanceId:   pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
    35  //				Name:         pulumi.String("example"),
    36  //				Content:      pulumi.String("Phrase	IPA	SoundsLike	DisplayAs\nLos-Angeles			Los Angeles\nF.B.I.	ɛ f b i aɪ		FBI\nEtienne		eh-tee-en	"),
    37  //				LanguageCode: pulumi.String("en-US"),
    38  //				Tags: pulumi.StringMap{
    39  //					"Key1": pulumi.String("Value1"),
    40  //				},
    41  //			})
    42  //			if err != nil {
    43  //				return err
    44  //			}
    45  //			return nil
    46  //		})
    47  //	}
    48  //
    49  // ```
    50  // <!--End PulumiCodeChooser -->
    51  //
    52  // ## Import
    53  //
    54  // Using `pulumi import`, import Amazon Connect Vocabularies using the `instance_id` and `vocabulary_id` separated by a colon (`:`). For example:
    55  //
    56  // ```sh
    57  // $ pulumi import aws:connect/vocabulary:Vocabulary example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
    58  // ```
    59  type Vocabulary struct {
    60  	pulumi.CustomResourceState
    61  
    62  	// The Amazon Resource Name (ARN) of the vocabulary.
    63  	Arn pulumi.StringOutput `pulumi:"arn"`
    64  	// The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table). Minimum length of `1`. Maximum length of `60000`.
    65  	Content pulumi.StringOutput `pulumi:"content"`
    66  	// The reason why the custom vocabulary was not created.
    67  	FailureReason pulumi.StringOutput `pulumi:"failureReason"`
    68  	// Specifies the identifier of the hosting Amazon Connect Instance.
    69  	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
    70  	// The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
    71  	LanguageCode pulumi.StringOutput `pulumi:"languageCode"`
    72  	// The timestamp when the custom vocabulary was last modified.
    73  	LastModifiedTime pulumi.StringOutput `pulumi:"lastModifiedTime"`
    74  	// A unique name of the custom vocabulary. Must not be more than 140 characters.
    75  	Name pulumi.StringOutput `pulumi:"name"`
    76  	// The current state of the custom vocabulary. Valid values are `CREATION_IN_PROGRESS`, `ACTIVE`, `CREATION_FAILED`, `DELETE_IN_PROGRESS`.
    77  	State pulumi.StringOutput `pulumi:"state"`
    78  	// Tags to apply to the vocabulary. If configured with a provider
    79  	// `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    80  	Tags pulumi.StringMapOutput `pulumi:"tags"`
    81  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
    82  	//
    83  	// Deprecated: Please use `tags` instead.
    84  	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
    85  	// The identifier of the custom vocabulary.
    86  	VocabularyId pulumi.StringOutput `pulumi:"vocabularyId"`
    87  }
    88  
    89  // NewVocabulary registers a new resource with the given unique name, arguments, and options.
    90  func NewVocabulary(ctx *pulumi.Context,
    91  	name string, args *VocabularyArgs, opts ...pulumi.ResourceOption) (*Vocabulary, error) {
    92  	if args == nil {
    93  		return nil, errors.New("missing one or more required arguments")
    94  	}
    95  
    96  	if args.Content == nil {
    97  		return nil, errors.New("invalid value for required argument 'Content'")
    98  	}
    99  	if args.InstanceId == nil {
   100  		return nil, errors.New("invalid value for required argument 'InstanceId'")
   101  	}
   102  	if args.LanguageCode == nil {
   103  		return nil, errors.New("invalid value for required argument 'LanguageCode'")
   104  	}
   105  	opts = internal.PkgResourceDefaultOpts(opts)
   106  	var resource Vocabulary
   107  	err := ctx.RegisterResource("aws:connect/vocabulary:Vocabulary", name, args, &resource, opts...)
   108  	if err != nil {
   109  		return nil, err
   110  	}
   111  	return &resource, nil
   112  }
   113  
   114  // GetVocabulary gets an existing Vocabulary resource's state with the given name, ID, and optional
   115  // state properties that are used to uniquely qualify the lookup (nil if not required).
   116  func GetVocabulary(ctx *pulumi.Context,
   117  	name string, id pulumi.IDInput, state *VocabularyState, opts ...pulumi.ResourceOption) (*Vocabulary, error) {
   118  	var resource Vocabulary
   119  	err := ctx.ReadResource("aws:connect/vocabulary:Vocabulary", name, id, state, &resource, opts...)
   120  	if err != nil {
   121  		return nil, err
   122  	}
   123  	return &resource, nil
   124  }
   125  
   126  // Input properties used for looking up and filtering Vocabulary resources.
   127  type vocabularyState struct {
   128  	// The Amazon Resource Name (ARN) of the vocabulary.
   129  	Arn *string `pulumi:"arn"`
   130  	// The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table). Minimum length of `1`. Maximum length of `60000`.
   131  	Content *string `pulumi:"content"`
   132  	// The reason why the custom vocabulary was not created.
   133  	FailureReason *string `pulumi:"failureReason"`
   134  	// Specifies the identifier of the hosting Amazon Connect Instance.
   135  	InstanceId *string `pulumi:"instanceId"`
   136  	// The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
   137  	LanguageCode *string `pulumi:"languageCode"`
   138  	// The timestamp when the custom vocabulary was last modified.
   139  	LastModifiedTime *string `pulumi:"lastModifiedTime"`
   140  	// A unique name of the custom vocabulary. Must not be more than 140 characters.
   141  	Name *string `pulumi:"name"`
   142  	// The current state of the custom vocabulary. Valid values are `CREATION_IN_PROGRESS`, `ACTIVE`, `CREATION_FAILED`, `DELETE_IN_PROGRESS`.
   143  	State *string `pulumi:"state"`
   144  	// Tags to apply to the vocabulary. If configured with a provider
   145  	// `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   146  	Tags map[string]string `pulumi:"tags"`
   147  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   148  	//
   149  	// Deprecated: Please use `tags` instead.
   150  	TagsAll map[string]string `pulumi:"tagsAll"`
   151  	// The identifier of the custom vocabulary.
   152  	VocabularyId *string `pulumi:"vocabularyId"`
   153  }
   154  
   155  type VocabularyState struct {
   156  	// The Amazon Resource Name (ARN) of the vocabulary.
   157  	Arn pulumi.StringPtrInput
   158  	// The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table). Minimum length of `1`. Maximum length of `60000`.
   159  	Content pulumi.StringPtrInput
   160  	// The reason why the custom vocabulary was not created.
   161  	FailureReason pulumi.StringPtrInput
   162  	// Specifies the identifier of the hosting Amazon Connect Instance.
   163  	InstanceId pulumi.StringPtrInput
   164  	// The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
   165  	LanguageCode pulumi.StringPtrInput
   166  	// The timestamp when the custom vocabulary was last modified.
   167  	LastModifiedTime pulumi.StringPtrInput
   168  	// A unique name of the custom vocabulary. Must not be more than 140 characters.
   169  	Name pulumi.StringPtrInput
   170  	// The current state of the custom vocabulary. Valid values are `CREATION_IN_PROGRESS`, `ACTIVE`, `CREATION_FAILED`, `DELETE_IN_PROGRESS`.
   171  	State pulumi.StringPtrInput
   172  	// Tags to apply to the vocabulary. If configured with a provider
   173  	// `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   174  	Tags pulumi.StringMapInput
   175  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   176  	//
   177  	// Deprecated: Please use `tags` instead.
   178  	TagsAll pulumi.StringMapInput
   179  	// The identifier of the custom vocabulary.
   180  	VocabularyId pulumi.StringPtrInput
   181  }
   182  
   183  func (VocabularyState) ElementType() reflect.Type {
   184  	return reflect.TypeOf((*vocabularyState)(nil)).Elem()
   185  }
   186  
   187  type vocabularyArgs struct {
   188  	// The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table). Minimum length of `1`. Maximum length of `60000`.
   189  	Content string `pulumi:"content"`
   190  	// Specifies the identifier of the hosting Amazon Connect Instance.
   191  	InstanceId string `pulumi:"instanceId"`
   192  	// The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
   193  	LanguageCode string `pulumi:"languageCode"`
   194  	// A unique name of the custom vocabulary. Must not be more than 140 characters.
   195  	Name *string `pulumi:"name"`
   196  	// Tags to apply to the vocabulary. If configured with a provider
   197  	// `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   198  	Tags map[string]string `pulumi:"tags"`
   199  }
   200  
   201  // The set of arguments for constructing a Vocabulary resource.
   202  type VocabularyArgs struct {
   203  	// The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table). Minimum length of `1`. Maximum length of `60000`.
   204  	Content pulumi.StringInput
   205  	// Specifies the identifier of the hosting Amazon Connect Instance.
   206  	InstanceId pulumi.StringInput
   207  	// The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
   208  	LanguageCode pulumi.StringInput
   209  	// A unique name of the custom vocabulary. Must not be more than 140 characters.
   210  	Name pulumi.StringPtrInput
   211  	// Tags to apply to the vocabulary. If configured with a provider
   212  	// `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   213  	Tags pulumi.StringMapInput
   214  }
   215  
   216  func (VocabularyArgs) ElementType() reflect.Type {
   217  	return reflect.TypeOf((*vocabularyArgs)(nil)).Elem()
   218  }
   219  
   220  type VocabularyInput interface {
   221  	pulumi.Input
   222  
   223  	ToVocabularyOutput() VocabularyOutput
   224  	ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput
   225  }
   226  
   227  func (*Vocabulary) ElementType() reflect.Type {
   228  	return reflect.TypeOf((**Vocabulary)(nil)).Elem()
   229  }
   230  
   231  func (i *Vocabulary) ToVocabularyOutput() VocabularyOutput {
   232  	return i.ToVocabularyOutputWithContext(context.Background())
   233  }
   234  
   235  func (i *Vocabulary) ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput {
   236  	return pulumi.ToOutputWithContext(ctx, i).(VocabularyOutput)
   237  }
   238  
   239  // VocabularyArrayInput is an input type that accepts VocabularyArray and VocabularyArrayOutput values.
   240  // You can construct a concrete instance of `VocabularyArrayInput` via:
   241  //
   242  //	VocabularyArray{ VocabularyArgs{...} }
   243  type VocabularyArrayInput interface {
   244  	pulumi.Input
   245  
   246  	ToVocabularyArrayOutput() VocabularyArrayOutput
   247  	ToVocabularyArrayOutputWithContext(context.Context) VocabularyArrayOutput
   248  }
   249  
   250  type VocabularyArray []VocabularyInput
   251  
   252  func (VocabularyArray) ElementType() reflect.Type {
   253  	return reflect.TypeOf((*[]*Vocabulary)(nil)).Elem()
   254  }
   255  
   256  func (i VocabularyArray) ToVocabularyArrayOutput() VocabularyArrayOutput {
   257  	return i.ToVocabularyArrayOutputWithContext(context.Background())
   258  }
   259  
   260  func (i VocabularyArray) ToVocabularyArrayOutputWithContext(ctx context.Context) VocabularyArrayOutput {
   261  	return pulumi.ToOutputWithContext(ctx, i).(VocabularyArrayOutput)
   262  }
   263  
   264  // VocabularyMapInput is an input type that accepts VocabularyMap and VocabularyMapOutput values.
   265  // You can construct a concrete instance of `VocabularyMapInput` via:
   266  //
   267  //	VocabularyMap{ "key": VocabularyArgs{...} }
   268  type VocabularyMapInput interface {
   269  	pulumi.Input
   270  
   271  	ToVocabularyMapOutput() VocabularyMapOutput
   272  	ToVocabularyMapOutputWithContext(context.Context) VocabularyMapOutput
   273  }
   274  
   275  type VocabularyMap map[string]VocabularyInput
   276  
   277  func (VocabularyMap) ElementType() reflect.Type {
   278  	return reflect.TypeOf((*map[string]*Vocabulary)(nil)).Elem()
   279  }
   280  
   281  func (i VocabularyMap) ToVocabularyMapOutput() VocabularyMapOutput {
   282  	return i.ToVocabularyMapOutputWithContext(context.Background())
   283  }
   284  
   285  func (i VocabularyMap) ToVocabularyMapOutputWithContext(ctx context.Context) VocabularyMapOutput {
   286  	return pulumi.ToOutputWithContext(ctx, i).(VocabularyMapOutput)
   287  }
   288  
   289  type VocabularyOutput struct{ *pulumi.OutputState }
   290  
   291  func (VocabularyOutput) ElementType() reflect.Type {
   292  	return reflect.TypeOf((**Vocabulary)(nil)).Elem()
   293  }
   294  
   295  func (o VocabularyOutput) ToVocabularyOutput() VocabularyOutput {
   296  	return o
   297  }
   298  
   299  func (o VocabularyOutput) ToVocabularyOutputWithContext(ctx context.Context) VocabularyOutput {
   300  	return o
   301  }
   302  
   303  // The Amazon Resource Name (ARN) of the vocabulary.
   304  func (o VocabularyOutput) Arn() pulumi.StringOutput {
   305  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
   306  }
   307  
   308  // The content of the custom vocabulary in plain-text format with a table of values. Each row in the table represents a word or a phrase, described with Phrase, IPA, SoundsLike, and DisplayAs fields. Separate the fields with TAB characters. For more information, see [Create a custom vocabulary using a table](https://docs.aws.amazon.com/transcribe/latest/dg/custom-vocabulary.html#create-vocabulary-table). Minimum length of `1`. Maximum length of `60000`.
   309  func (o VocabularyOutput) Content() pulumi.StringOutput {
   310  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.Content }).(pulumi.StringOutput)
   311  }
   312  
   313  // The reason why the custom vocabulary was not created.
   314  func (o VocabularyOutput) FailureReason() pulumi.StringOutput {
   315  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.FailureReason }).(pulumi.StringOutput)
   316  }
   317  
   318  // Specifies the identifier of the hosting Amazon Connect Instance.
   319  func (o VocabularyOutput) InstanceId() pulumi.StringOutput {
   320  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.InstanceId }).(pulumi.StringOutput)
   321  }
   322  
   323  // The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html). Valid Values are `ar-AE`, `de-CH`, `de-DE`, `en-AB`, `en-AU`, `en-GB`, `en-IE`, `en-IN`, `en-US`, `en-WL`, `es-ES`, `es-US`, `fr-CA`, `fr-FR`, `hi-IN`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, `pt-PT`, `zh-CN`.
   324  func (o VocabularyOutput) LanguageCode() pulumi.StringOutput {
   325  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.LanguageCode }).(pulumi.StringOutput)
   326  }
   327  
   328  // The timestamp when the custom vocabulary was last modified.
   329  func (o VocabularyOutput) LastModifiedTime() pulumi.StringOutput {
   330  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.LastModifiedTime }).(pulumi.StringOutput)
   331  }
   332  
   333  // A unique name of the custom vocabulary. Must not be more than 140 characters.
   334  func (o VocabularyOutput) Name() pulumi.StringOutput {
   335  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
   336  }
   337  
   338  // The current state of the custom vocabulary. Valid values are `CREATION_IN_PROGRESS`, `ACTIVE`, `CREATION_FAILED`, `DELETE_IN_PROGRESS`.
   339  func (o VocabularyOutput) State() pulumi.StringOutput {
   340  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
   341  }
   342  
   343  // Tags to apply to the vocabulary. If configured with a provider
   344  // `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   345  func (o VocabularyOutput) Tags() pulumi.StringMapOutput {
   346  	return o.ApplyT(func(v *Vocabulary) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
   347  }
   348  
   349  // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   350  //
   351  // Deprecated: Please use `tags` instead.
   352  func (o VocabularyOutput) TagsAll() pulumi.StringMapOutput {
   353  	return o.ApplyT(func(v *Vocabulary) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
   354  }
   355  
   356  // The identifier of the custom vocabulary.
   357  func (o VocabularyOutput) VocabularyId() pulumi.StringOutput {
   358  	return o.ApplyT(func(v *Vocabulary) pulumi.StringOutput { return v.VocabularyId }).(pulumi.StringOutput)
   359  }
   360  
   361  type VocabularyArrayOutput struct{ *pulumi.OutputState }
   362  
   363  func (VocabularyArrayOutput) ElementType() reflect.Type {
   364  	return reflect.TypeOf((*[]*Vocabulary)(nil)).Elem()
   365  }
   366  
   367  func (o VocabularyArrayOutput) ToVocabularyArrayOutput() VocabularyArrayOutput {
   368  	return o
   369  }
   370  
   371  func (o VocabularyArrayOutput) ToVocabularyArrayOutputWithContext(ctx context.Context) VocabularyArrayOutput {
   372  	return o
   373  }
   374  
   375  func (o VocabularyArrayOutput) Index(i pulumi.IntInput) VocabularyOutput {
   376  	return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Vocabulary {
   377  		return vs[0].([]*Vocabulary)[vs[1].(int)]
   378  	}).(VocabularyOutput)
   379  }
   380  
   381  type VocabularyMapOutput struct{ *pulumi.OutputState }
   382  
   383  func (VocabularyMapOutput) ElementType() reflect.Type {
   384  	return reflect.TypeOf((*map[string]*Vocabulary)(nil)).Elem()
   385  }
   386  
   387  func (o VocabularyMapOutput) ToVocabularyMapOutput() VocabularyMapOutput {
   388  	return o
   389  }
   390  
   391  func (o VocabularyMapOutput) ToVocabularyMapOutputWithContext(ctx context.Context) VocabularyMapOutput {
   392  	return o
   393  }
   394  
   395  func (o VocabularyMapOutput) MapIndex(k pulumi.StringInput) VocabularyOutput {
   396  	return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Vocabulary {
   397  		return vs[0].(map[string]*Vocabulary)[vs[1].(string)]
   398  	}).(VocabularyOutput)
   399  }
   400  
   401  func init() {
   402  	pulumi.RegisterInputType(reflect.TypeOf((*VocabularyInput)(nil)).Elem(), &Vocabulary{})
   403  	pulumi.RegisterInputType(reflect.TypeOf((*VocabularyArrayInput)(nil)).Elem(), VocabularyArray{})
   404  	pulumi.RegisterInputType(reflect.TypeOf((*VocabularyMapInput)(nil)).Elem(), VocabularyMap{})
   405  	pulumi.RegisterOutputType(VocabularyOutput{})
   406  	pulumi.RegisterOutputType(VocabularyArrayOutput{})
   407  	pulumi.RegisterOutputType(VocabularyMapOutput{})
   408  }