/
pulumiTypes.go
172 lines (138 loc) · 6.55 KB
/
pulumiTypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package polly
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type GetVoicesVoice struct {
// Additional codes for languages available for the specified voice in addition to its default language.
AdditionalLanguageCodes []string `pulumi:"additionalLanguageCodes"`
// Gender of the voice.
Gender string `pulumi:"gender"`
// Amazon Polly assigned voice ID.
Id string `pulumi:"id"`
// Language identification tag for filtering the list of voices returned. If not specified, all available voices are returned.
LanguageCode string `pulumi:"languageCode"`
// Human readable name of the language in English.
LanguageName string `pulumi:"languageName"`
// Name of the voice.
Name string `pulumi:"name"`
// Specifies which engines are supported by a given voice.
SupportedEngines []string `pulumi:"supportedEngines"`
}
// GetVoicesVoiceInput is an input type that accepts GetVoicesVoiceArgs and GetVoicesVoiceOutput values.
// You can construct a concrete instance of `GetVoicesVoiceInput` via:
//
// GetVoicesVoiceArgs{...}
type GetVoicesVoiceInput interface {
pulumi.Input
ToGetVoicesVoiceOutput() GetVoicesVoiceOutput
ToGetVoicesVoiceOutputWithContext(context.Context) GetVoicesVoiceOutput
}
type GetVoicesVoiceArgs struct {
// Additional codes for languages available for the specified voice in addition to its default language.
AdditionalLanguageCodes pulumi.StringArrayInput `pulumi:"additionalLanguageCodes"`
// Gender of the voice.
Gender pulumi.StringInput `pulumi:"gender"`
// Amazon Polly assigned voice ID.
Id pulumi.StringInput `pulumi:"id"`
// Language identification tag for filtering the list of voices returned. If not specified, all available voices are returned.
LanguageCode pulumi.StringInput `pulumi:"languageCode"`
// Human readable name of the language in English.
LanguageName pulumi.StringInput `pulumi:"languageName"`
// Name of the voice.
Name pulumi.StringInput `pulumi:"name"`
// Specifies which engines are supported by a given voice.
SupportedEngines pulumi.StringArrayInput `pulumi:"supportedEngines"`
}
func (GetVoicesVoiceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetVoicesVoice)(nil)).Elem()
}
func (i GetVoicesVoiceArgs) ToGetVoicesVoiceOutput() GetVoicesVoiceOutput {
return i.ToGetVoicesVoiceOutputWithContext(context.Background())
}
func (i GetVoicesVoiceArgs) ToGetVoicesVoiceOutputWithContext(ctx context.Context) GetVoicesVoiceOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetVoicesVoiceOutput)
}
// GetVoicesVoiceArrayInput is an input type that accepts GetVoicesVoiceArray and GetVoicesVoiceArrayOutput values.
// You can construct a concrete instance of `GetVoicesVoiceArrayInput` via:
//
// GetVoicesVoiceArray{ GetVoicesVoiceArgs{...} }
type GetVoicesVoiceArrayInput interface {
pulumi.Input
ToGetVoicesVoiceArrayOutput() GetVoicesVoiceArrayOutput
ToGetVoicesVoiceArrayOutputWithContext(context.Context) GetVoicesVoiceArrayOutput
}
type GetVoicesVoiceArray []GetVoicesVoiceInput
func (GetVoicesVoiceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetVoicesVoice)(nil)).Elem()
}
func (i GetVoicesVoiceArray) ToGetVoicesVoiceArrayOutput() GetVoicesVoiceArrayOutput {
return i.ToGetVoicesVoiceArrayOutputWithContext(context.Background())
}
func (i GetVoicesVoiceArray) ToGetVoicesVoiceArrayOutputWithContext(ctx context.Context) GetVoicesVoiceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetVoicesVoiceArrayOutput)
}
type GetVoicesVoiceOutput struct{ *pulumi.OutputState }
func (GetVoicesVoiceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetVoicesVoice)(nil)).Elem()
}
func (o GetVoicesVoiceOutput) ToGetVoicesVoiceOutput() GetVoicesVoiceOutput {
return o
}
func (o GetVoicesVoiceOutput) ToGetVoicesVoiceOutputWithContext(ctx context.Context) GetVoicesVoiceOutput {
return o
}
// Additional codes for languages available for the specified voice in addition to its default language.
func (o GetVoicesVoiceOutput) AdditionalLanguageCodes() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetVoicesVoice) []string { return v.AdditionalLanguageCodes }).(pulumi.StringArrayOutput)
}
// Gender of the voice.
func (o GetVoicesVoiceOutput) Gender() pulumi.StringOutput {
return o.ApplyT(func(v GetVoicesVoice) string { return v.Gender }).(pulumi.StringOutput)
}
// Amazon Polly assigned voice ID.
func (o GetVoicesVoiceOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetVoicesVoice) string { return v.Id }).(pulumi.StringOutput)
}
// Language identification tag for filtering the list of voices returned. If not specified, all available voices are returned.
func (o GetVoicesVoiceOutput) LanguageCode() pulumi.StringOutput {
return o.ApplyT(func(v GetVoicesVoice) string { return v.LanguageCode }).(pulumi.StringOutput)
}
// Human readable name of the language in English.
func (o GetVoicesVoiceOutput) LanguageName() pulumi.StringOutput {
return o.ApplyT(func(v GetVoicesVoice) string { return v.LanguageName }).(pulumi.StringOutput)
}
// Name of the voice.
func (o GetVoicesVoiceOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v GetVoicesVoice) string { return v.Name }).(pulumi.StringOutput)
}
// Specifies which engines are supported by a given voice.
func (o GetVoicesVoiceOutput) SupportedEngines() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetVoicesVoice) []string { return v.SupportedEngines }).(pulumi.StringArrayOutput)
}
type GetVoicesVoiceArrayOutput struct{ *pulumi.OutputState }
func (GetVoicesVoiceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetVoicesVoice)(nil)).Elem()
}
func (o GetVoicesVoiceArrayOutput) ToGetVoicesVoiceArrayOutput() GetVoicesVoiceArrayOutput {
return o
}
func (o GetVoicesVoiceArrayOutput) ToGetVoicesVoiceArrayOutputWithContext(ctx context.Context) GetVoicesVoiceArrayOutput {
return o
}
func (o GetVoicesVoiceArrayOutput) Index(i pulumi.IntInput) GetVoicesVoiceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetVoicesVoice {
return vs[0].([]GetVoicesVoice)[vs[1].(int)]
}).(GetVoicesVoiceOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GetVoicesVoiceInput)(nil)).Elem(), GetVoicesVoiceArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetVoicesVoiceArrayInput)(nil)).Elem(), GetVoicesVoiceArray{})
pulumi.RegisterOutputType(GetVoicesVoiceOutput{})
pulumi.RegisterOutputType(GetVoicesVoiceArrayOutput{})
}