github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/pulumiEnums.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 aws 5 6 import ( 7 "context" 8 "reflect" 9 10 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 11 ) 12 13 // A Region represents any valid Amazon region that may be targeted with deployments. 14 type Region string 15 16 const ( 17 RegionAFSouth1 = Region("af-south-1") 18 RegionAPEast1 = Region("ap-east-1") 19 RegionAPNortheast1 = Region("ap-northeast-1") 20 RegionAPNortheast2 = Region("ap-northeast-2") 21 RegionAPNortheast3 = Region("ap-northeast-3") 22 RegionAPSouth1 = Region("ap-south-1") 23 RegionAPSouth2 = Region("ap-south-2") 24 RegionAPSoutheast1 = Region("ap-southeast-1") 25 RegionAPSoutheast2 = Region("ap-southeast-2") 26 RegionAPSoutheast3 = Region("ap-southeast-3") 27 RegionAPSoutheast4 = Region("ap-southeast-4") 28 RegionCACentral = Region("ca-central-1") 29 RegionCAWest1 = Region("ca-west-1") 30 RegionCNNorth1 = Region("cn-north-1") 31 RegionCNNorthwest1 = Region("cn-northwest-1") 32 RegionEUCentral1 = Region("eu-central-1") 33 RegionEUCentral2 = Region("eu-central-2") 34 RegionEUNorth1 = Region("eu-north-1") 35 RegionEUSouth1 = Region("eu-south-1") 36 RegionEUSouth2 = Region("eu-south-2") 37 RegionEUWest1 = Region("eu-west-1") 38 RegionEUWest2 = Region("eu-west-2") 39 RegionEUWest3 = Region("eu-west-3") 40 RegionMECentral1 = Region("me-central-1") 41 RegionMESouth1 = Region("me-south-1") 42 RegionSAEast1 = Region("sa-east-1") 43 RegionUSGovEast1 = Region("us-gov-east-1") 44 RegionUSGovWest1 = Region("us-gov-west-1") 45 RegionUSEast1 = Region("us-east-1") 46 RegionUSEast2 = Region("us-east-2") 47 RegionUSWest1 = Region("us-west-1") 48 RegionUSWest2 = Region("us-west-2") 49 ) 50 51 func (Region) ElementType() reflect.Type { 52 return reflect.TypeOf((*Region)(nil)).Elem() 53 } 54 55 func (e Region) ToRegionOutput() RegionOutput { 56 return pulumi.ToOutput(e).(RegionOutput) 57 } 58 59 func (e Region) ToRegionOutputWithContext(ctx context.Context) RegionOutput { 60 return pulumi.ToOutputWithContext(ctx, e).(RegionOutput) 61 } 62 63 func (e Region) ToRegionPtrOutput() RegionPtrOutput { 64 return e.ToRegionPtrOutputWithContext(context.Background()) 65 } 66 67 func (e Region) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput { 68 return Region(e).ToRegionOutputWithContext(ctx).ToRegionPtrOutputWithContext(ctx) 69 } 70 71 func (e Region) ToStringOutput() pulumi.StringOutput { 72 return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) 73 } 74 75 func (e Region) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 76 return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) 77 } 78 79 func (e Region) ToStringPtrOutput() pulumi.StringPtrOutput { 80 return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) 81 } 82 83 func (e Region) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 84 return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) 85 } 86 87 type RegionOutput struct{ *pulumi.OutputState } 88 89 func (RegionOutput) ElementType() reflect.Type { 90 return reflect.TypeOf((*Region)(nil)).Elem() 91 } 92 93 func (o RegionOutput) ToRegionOutput() RegionOutput { 94 return o 95 } 96 97 func (o RegionOutput) ToRegionOutputWithContext(ctx context.Context) RegionOutput { 98 return o 99 } 100 101 func (o RegionOutput) ToRegionPtrOutput() RegionPtrOutput { 102 return o.ToRegionPtrOutputWithContext(context.Background()) 103 } 104 105 func (o RegionOutput) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput { 106 return o.ApplyTWithContext(ctx, func(_ context.Context, v Region) *Region { 107 return &v 108 }).(RegionPtrOutput) 109 } 110 111 func (o RegionOutput) ToStringOutput() pulumi.StringOutput { 112 return o.ToStringOutputWithContext(context.Background()) 113 } 114 115 func (o RegionOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 116 return o.ApplyTWithContext(ctx, func(_ context.Context, e Region) string { 117 return string(e) 118 }).(pulumi.StringOutput) 119 } 120 121 func (o RegionOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 122 return o.ToStringPtrOutputWithContext(context.Background()) 123 } 124 125 func (o RegionOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 126 return o.ApplyTWithContext(ctx, func(_ context.Context, e Region) *string { 127 v := string(e) 128 return &v 129 }).(pulumi.StringPtrOutput) 130 } 131 132 type RegionPtrOutput struct{ *pulumi.OutputState } 133 134 func (RegionPtrOutput) ElementType() reflect.Type { 135 return reflect.TypeOf((**Region)(nil)).Elem() 136 } 137 138 func (o RegionPtrOutput) ToRegionPtrOutput() RegionPtrOutput { 139 return o 140 } 141 142 func (o RegionPtrOutput) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput { 143 return o 144 } 145 146 func (o RegionPtrOutput) Elem() RegionOutput { 147 return o.ApplyT(func(v *Region) Region { 148 if v != nil { 149 return *v 150 } 151 var ret Region 152 return ret 153 }).(RegionOutput) 154 } 155 156 func (o RegionPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 157 return o.ToStringPtrOutputWithContext(context.Background()) 158 } 159 160 func (o RegionPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 161 return o.ApplyTWithContext(ctx, func(_ context.Context, e *Region) *string { 162 if e == nil { 163 return nil 164 } 165 v := string(*e) 166 return &v 167 }).(pulumi.StringPtrOutput) 168 } 169 170 // RegionInput is an input type that accepts values of the Region enum 171 // A concrete instance of `RegionInput` can be one of the following: 172 // 173 // RegionAFSouth1 174 // RegionAPEast1 175 // RegionAPNortheast1 176 // RegionAPNortheast2 177 // RegionAPNortheast3 178 // RegionAPSouth1 179 // RegionAPSouth2 180 // RegionAPSoutheast1 181 // RegionAPSoutheast2 182 // RegionAPSoutheast3 183 // RegionAPSoutheast4 184 // RegionCACentral 185 // RegionCAWest1 186 // RegionCNNorth1 187 // RegionCNNorthwest1 188 // RegionEUCentral1 189 // RegionEUCentral2 190 // RegionEUNorth1 191 // RegionEUSouth1 192 // RegionEUSouth2 193 // RegionEUWest1 194 // RegionEUWest2 195 // RegionEUWest3 196 // RegionMECentral1 197 // RegionMESouth1 198 // RegionSAEast1 199 // RegionUSGovEast1 200 // RegionUSGovWest1 201 // RegionUSEast1 202 // RegionUSEast2 203 // RegionUSWest1 204 // RegionUSWest2 205 type RegionInput interface { 206 pulumi.Input 207 208 ToRegionOutput() RegionOutput 209 ToRegionOutputWithContext(context.Context) RegionOutput 210 } 211 212 var regionPtrType = reflect.TypeOf((**Region)(nil)).Elem() 213 214 type RegionPtrInput interface { 215 pulumi.Input 216 217 ToRegionPtrOutput() RegionPtrOutput 218 ToRegionPtrOutputWithContext(context.Context) RegionPtrOutput 219 } 220 221 type regionPtr string 222 223 func RegionPtr(v string) RegionPtrInput { 224 return (*regionPtr)(&v) 225 } 226 227 func (*regionPtr) ElementType() reflect.Type { 228 return regionPtrType 229 } 230 231 func (in *regionPtr) ToRegionPtrOutput() RegionPtrOutput { 232 return pulumi.ToOutput(in).(RegionPtrOutput) 233 } 234 235 func (in *regionPtr) ToRegionPtrOutputWithContext(ctx context.Context) RegionPtrOutput { 236 return pulumi.ToOutputWithContext(ctx, in).(RegionPtrOutput) 237 } 238 239 func init() { 240 pulumi.RegisterInputType(reflect.TypeOf((*RegionInput)(nil)).Elem(), Region("af-south-1")) 241 pulumi.RegisterInputType(reflect.TypeOf((*RegionPtrInput)(nil)).Elem(), Region("af-south-1")) 242 pulumi.RegisterOutputType(RegionOutput{}) 243 pulumi.RegisterOutputType(RegionPtrOutput{}) 244 }