github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/pinpoint/apnsVoipSandboxChannel.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 pinpoint 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 a Pinpoint APNs VoIP Sandbox Channel resource. 16 // 17 // > **Note:** All arguments, including certificates and tokens, will be stored in the raw state as plain-text. 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/pinpoint" 27 // "github.com/pulumi/pulumi-std/sdk/go/std" 28 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 29 // 30 // ) 31 // 32 // func main() { 33 // pulumi.Run(func(ctx *pulumi.Context) error { 34 // app, err := pinpoint.NewApp(ctx, "app", nil) 35 // if err != nil { 36 // return err 37 // } 38 // invokeFile, err := std.File(ctx, &std.FileArgs{ 39 // Input: "./certificate.pem", 40 // }, nil) 41 // if err != nil { 42 // return err 43 // } 44 // invokeFile1, err := std.File(ctx, &std.FileArgs{ 45 // Input: "./private_key.key", 46 // }, nil) 47 // if err != nil { 48 // return err 49 // } 50 // _, err = pinpoint.NewApnsVoipSandboxChannel(ctx, "apns_voip_sandbox", &pinpoint.ApnsVoipSandboxChannelArgs{ 51 // ApplicationId: app.ApplicationId, 52 // Certificate: invokeFile.Result, 53 // PrivateKey: invokeFile1.Result, 54 // }) 55 // if err != nil { 56 // return err 57 // } 58 // return nil 59 // }) 60 // } 61 // 62 // ``` 63 // <!--End PulumiCodeChooser --> 64 // 65 // ## Import 66 // 67 // Using `pulumi import`, import Pinpoint APNs VoIP Sandbox Channel using the `application-id`. For example: 68 // 69 // ```sh 70 // $ pulumi import aws:pinpoint/apnsVoipSandboxChannel:ApnsVoipSandboxChannel apns_voip_sandbox application-id 71 // ``` 72 type ApnsVoipSandboxChannel struct { 73 pulumi.CustomResourceState 74 75 // The application ID. 76 ApplicationId pulumi.StringOutput `pulumi:"applicationId"` 77 // The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app. 78 BundleId pulumi.StringPtrOutput `pulumi:"bundleId"` 79 // The pem encoded TLS Certificate from Apple. 80 Certificate pulumi.StringPtrOutput `pulumi:"certificate"` 81 // The default authentication method used for APNs. 82 // __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console. 83 // You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. 84 // If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type. 85 // 86 // One of the following sets of credentials is also required. 87 // 88 // If you choose to use __Certificate credentials__ you will have to provide: 89 DefaultAuthenticationMethod pulumi.StringPtrOutput `pulumi:"defaultAuthenticationMethod"` 90 // Whether the channel is enabled or disabled. Defaults to `true`. 91 Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` 92 // The Certificate Private Key file (ie. `.key` file). 93 // 94 // If you choose to use __Key credentials__ you will have to provide: 95 PrivateKey pulumi.StringPtrOutput `pulumi:"privateKey"` 96 // The ID assigned to your Apple developer account team. This value is provided on the Membership page. 97 TeamId pulumi.StringPtrOutput `pulumi:"teamId"` 98 // The `.p8` file that you download from your Apple developer account when you create an authentication key. 99 TokenKey pulumi.StringPtrOutput `pulumi:"tokenKey"` 100 // The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section. 101 TokenKeyId pulumi.StringPtrOutput `pulumi:"tokenKeyId"` 102 } 103 104 // NewApnsVoipSandboxChannel registers a new resource with the given unique name, arguments, and options. 105 func NewApnsVoipSandboxChannel(ctx *pulumi.Context, 106 name string, args *ApnsVoipSandboxChannelArgs, opts ...pulumi.ResourceOption) (*ApnsVoipSandboxChannel, error) { 107 if args == nil { 108 return nil, errors.New("missing one or more required arguments") 109 } 110 111 if args.ApplicationId == nil { 112 return nil, errors.New("invalid value for required argument 'ApplicationId'") 113 } 114 if args.BundleId != nil { 115 args.BundleId = pulumi.ToSecret(args.BundleId).(pulumi.StringPtrInput) 116 } 117 if args.Certificate != nil { 118 args.Certificate = pulumi.ToSecret(args.Certificate).(pulumi.StringPtrInput) 119 } 120 if args.PrivateKey != nil { 121 args.PrivateKey = pulumi.ToSecret(args.PrivateKey).(pulumi.StringPtrInput) 122 } 123 if args.TeamId != nil { 124 args.TeamId = pulumi.ToSecret(args.TeamId).(pulumi.StringPtrInput) 125 } 126 if args.TokenKey != nil { 127 args.TokenKey = pulumi.ToSecret(args.TokenKey).(pulumi.StringPtrInput) 128 } 129 if args.TokenKeyId != nil { 130 args.TokenKeyId = pulumi.ToSecret(args.TokenKeyId).(pulumi.StringPtrInput) 131 } 132 secrets := pulumi.AdditionalSecretOutputs([]string{ 133 "bundleId", 134 "certificate", 135 "privateKey", 136 "teamId", 137 "tokenKey", 138 "tokenKeyId", 139 }) 140 opts = append(opts, secrets) 141 opts = internal.PkgResourceDefaultOpts(opts) 142 var resource ApnsVoipSandboxChannel 143 err := ctx.RegisterResource("aws:pinpoint/apnsVoipSandboxChannel:ApnsVoipSandboxChannel", name, args, &resource, opts...) 144 if err != nil { 145 return nil, err 146 } 147 return &resource, nil 148 } 149 150 // GetApnsVoipSandboxChannel gets an existing ApnsVoipSandboxChannel resource's state with the given name, ID, and optional 151 // state properties that are used to uniquely qualify the lookup (nil if not required). 152 func GetApnsVoipSandboxChannel(ctx *pulumi.Context, 153 name string, id pulumi.IDInput, state *ApnsVoipSandboxChannelState, opts ...pulumi.ResourceOption) (*ApnsVoipSandboxChannel, error) { 154 var resource ApnsVoipSandboxChannel 155 err := ctx.ReadResource("aws:pinpoint/apnsVoipSandboxChannel:ApnsVoipSandboxChannel", name, id, state, &resource, opts...) 156 if err != nil { 157 return nil, err 158 } 159 return &resource, nil 160 } 161 162 // Input properties used for looking up and filtering ApnsVoipSandboxChannel resources. 163 type apnsVoipSandboxChannelState struct { 164 // The application ID. 165 ApplicationId *string `pulumi:"applicationId"` 166 // The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app. 167 BundleId *string `pulumi:"bundleId"` 168 // The pem encoded TLS Certificate from Apple. 169 Certificate *string `pulumi:"certificate"` 170 // The default authentication method used for APNs. 171 // __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console. 172 // You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. 173 // If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type. 174 // 175 // One of the following sets of credentials is also required. 176 // 177 // If you choose to use __Certificate credentials__ you will have to provide: 178 DefaultAuthenticationMethod *string `pulumi:"defaultAuthenticationMethod"` 179 // Whether the channel is enabled or disabled. Defaults to `true`. 180 Enabled *bool `pulumi:"enabled"` 181 // The Certificate Private Key file (ie. `.key` file). 182 // 183 // If you choose to use __Key credentials__ you will have to provide: 184 PrivateKey *string `pulumi:"privateKey"` 185 // The ID assigned to your Apple developer account team. This value is provided on the Membership page. 186 TeamId *string `pulumi:"teamId"` 187 // The `.p8` file that you download from your Apple developer account when you create an authentication key. 188 TokenKey *string `pulumi:"tokenKey"` 189 // The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section. 190 TokenKeyId *string `pulumi:"tokenKeyId"` 191 } 192 193 type ApnsVoipSandboxChannelState struct { 194 // The application ID. 195 ApplicationId pulumi.StringPtrInput 196 // The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app. 197 BundleId pulumi.StringPtrInput 198 // The pem encoded TLS Certificate from Apple. 199 Certificate pulumi.StringPtrInput 200 // The default authentication method used for APNs. 201 // __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console. 202 // You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. 203 // If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type. 204 // 205 // One of the following sets of credentials is also required. 206 // 207 // If you choose to use __Certificate credentials__ you will have to provide: 208 DefaultAuthenticationMethod pulumi.StringPtrInput 209 // Whether the channel is enabled or disabled. Defaults to `true`. 210 Enabled pulumi.BoolPtrInput 211 // The Certificate Private Key file (ie. `.key` file). 212 // 213 // If you choose to use __Key credentials__ you will have to provide: 214 PrivateKey pulumi.StringPtrInput 215 // The ID assigned to your Apple developer account team. This value is provided on the Membership page. 216 TeamId pulumi.StringPtrInput 217 // The `.p8` file that you download from your Apple developer account when you create an authentication key. 218 TokenKey pulumi.StringPtrInput 219 // The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section. 220 TokenKeyId pulumi.StringPtrInput 221 } 222 223 func (ApnsVoipSandboxChannelState) ElementType() reflect.Type { 224 return reflect.TypeOf((*apnsVoipSandboxChannelState)(nil)).Elem() 225 } 226 227 type apnsVoipSandboxChannelArgs struct { 228 // The application ID. 229 ApplicationId string `pulumi:"applicationId"` 230 // The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app. 231 BundleId *string `pulumi:"bundleId"` 232 // The pem encoded TLS Certificate from Apple. 233 Certificate *string `pulumi:"certificate"` 234 // The default authentication method used for APNs. 235 // __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console. 236 // You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. 237 // If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type. 238 // 239 // One of the following sets of credentials is also required. 240 // 241 // If you choose to use __Certificate credentials__ you will have to provide: 242 DefaultAuthenticationMethod *string `pulumi:"defaultAuthenticationMethod"` 243 // Whether the channel is enabled or disabled. Defaults to `true`. 244 Enabled *bool `pulumi:"enabled"` 245 // The Certificate Private Key file (ie. `.key` file). 246 // 247 // If you choose to use __Key credentials__ you will have to provide: 248 PrivateKey *string `pulumi:"privateKey"` 249 // The ID assigned to your Apple developer account team. This value is provided on the Membership page. 250 TeamId *string `pulumi:"teamId"` 251 // The `.p8` file that you download from your Apple developer account when you create an authentication key. 252 TokenKey *string `pulumi:"tokenKey"` 253 // The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section. 254 TokenKeyId *string `pulumi:"tokenKeyId"` 255 } 256 257 // The set of arguments for constructing a ApnsVoipSandboxChannel resource. 258 type ApnsVoipSandboxChannelArgs struct { 259 // The application ID. 260 ApplicationId pulumi.StringInput 261 // The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app. 262 BundleId pulumi.StringPtrInput 263 // The pem encoded TLS Certificate from Apple. 264 Certificate pulumi.StringPtrInput 265 // The default authentication method used for APNs. 266 // __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console. 267 // You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. 268 // If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type. 269 // 270 // One of the following sets of credentials is also required. 271 // 272 // If you choose to use __Certificate credentials__ you will have to provide: 273 DefaultAuthenticationMethod pulumi.StringPtrInput 274 // Whether the channel is enabled or disabled. Defaults to `true`. 275 Enabled pulumi.BoolPtrInput 276 // The Certificate Private Key file (ie. `.key` file). 277 // 278 // If you choose to use __Key credentials__ you will have to provide: 279 PrivateKey pulumi.StringPtrInput 280 // The ID assigned to your Apple developer account team. This value is provided on the Membership page. 281 TeamId pulumi.StringPtrInput 282 // The `.p8` file that you download from your Apple developer account when you create an authentication key. 283 TokenKey pulumi.StringPtrInput 284 // The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section. 285 TokenKeyId pulumi.StringPtrInput 286 } 287 288 func (ApnsVoipSandboxChannelArgs) ElementType() reflect.Type { 289 return reflect.TypeOf((*apnsVoipSandboxChannelArgs)(nil)).Elem() 290 } 291 292 type ApnsVoipSandboxChannelInput interface { 293 pulumi.Input 294 295 ToApnsVoipSandboxChannelOutput() ApnsVoipSandboxChannelOutput 296 ToApnsVoipSandboxChannelOutputWithContext(ctx context.Context) ApnsVoipSandboxChannelOutput 297 } 298 299 func (*ApnsVoipSandboxChannel) ElementType() reflect.Type { 300 return reflect.TypeOf((**ApnsVoipSandboxChannel)(nil)).Elem() 301 } 302 303 func (i *ApnsVoipSandboxChannel) ToApnsVoipSandboxChannelOutput() ApnsVoipSandboxChannelOutput { 304 return i.ToApnsVoipSandboxChannelOutputWithContext(context.Background()) 305 } 306 307 func (i *ApnsVoipSandboxChannel) ToApnsVoipSandboxChannelOutputWithContext(ctx context.Context) ApnsVoipSandboxChannelOutput { 308 return pulumi.ToOutputWithContext(ctx, i).(ApnsVoipSandboxChannelOutput) 309 } 310 311 // ApnsVoipSandboxChannelArrayInput is an input type that accepts ApnsVoipSandboxChannelArray and ApnsVoipSandboxChannelArrayOutput values. 312 // You can construct a concrete instance of `ApnsVoipSandboxChannelArrayInput` via: 313 // 314 // ApnsVoipSandboxChannelArray{ ApnsVoipSandboxChannelArgs{...} } 315 type ApnsVoipSandboxChannelArrayInput interface { 316 pulumi.Input 317 318 ToApnsVoipSandboxChannelArrayOutput() ApnsVoipSandboxChannelArrayOutput 319 ToApnsVoipSandboxChannelArrayOutputWithContext(context.Context) ApnsVoipSandboxChannelArrayOutput 320 } 321 322 type ApnsVoipSandboxChannelArray []ApnsVoipSandboxChannelInput 323 324 func (ApnsVoipSandboxChannelArray) ElementType() reflect.Type { 325 return reflect.TypeOf((*[]*ApnsVoipSandboxChannel)(nil)).Elem() 326 } 327 328 func (i ApnsVoipSandboxChannelArray) ToApnsVoipSandboxChannelArrayOutput() ApnsVoipSandboxChannelArrayOutput { 329 return i.ToApnsVoipSandboxChannelArrayOutputWithContext(context.Background()) 330 } 331 332 func (i ApnsVoipSandboxChannelArray) ToApnsVoipSandboxChannelArrayOutputWithContext(ctx context.Context) ApnsVoipSandboxChannelArrayOutput { 333 return pulumi.ToOutputWithContext(ctx, i).(ApnsVoipSandboxChannelArrayOutput) 334 } 335 336 // ApnsVoipSandboxChannelMapInput is an input type that accepts ApnsVoipSandboxChannelMap and ApnsVoipSandboxChannelMapOutput values. 337 // You can construct a concrete instance of `ApnsVoipSandboxChannelMapInput` via: 338 // 339 // ApnsVoipSandboxChannelMap{ "key": ApnsVoipSandboxChannelArgs{...} } 340 type ApnsVoipSandboxChannelMapInput interface { 341 pulumi.Input 342 343 ToApnsVoipSandboxChannelMapOutput() ApnsVoipSandboxChannelMapOutput 344 ToApnsVoipSandboxChannelMapOutputWithContext(context.Context) ApnsVoipSandboxChannelMapOutput 345 } 346 347 type ApnsVoipSandboxChannelMap map[string]ApnsVoipSandboxChannelInput 348 349 func (ApnsVoipSandboxChannelMap) ElementType() reflect.Type { 350 return reflect.TypeOf((*map[string]*ApnsVoipSandboxChannel)(nil)).Elem() 351 } 352 353 func (i ApnsVoipSandboxChannelMap) ToApnsVoipSandboxChannelMapOutput() ApnsVoipSandboxChannelMapOutput { 354 return i.ToApnsVoipSandboxChannelMapOutputWithContext(context.Background()) 355 } 356 357 func (i ApnsVoipSandboxChannelMap) ToApnsVoipSandboxChannelMapOutputWithContext(ctx context.Context) ApnsVoipSandboxChannelMapOutput { 358 return pulumi.ToOutputWithContext(ctx, i).(ApnsVoipSandboxChannelMapOutput) 359 } 360 361 type ApnsVoipSandboxChannelOutput struct{ *pulumi.OutputState } 362 363 func (ApnsVoipSandboxChannelOutput) ElementType() reflect.Type { 364 return reflect.TypeOf((**ApnsVoipSandboxChannel)(nil)).Elem() 365 } 366 367 func (o ApnsVoipSandboxChannelOutput) ToApnsVoipSandboxChannelOutput() ApnsVoipSandboxChannelOutput { 368 return o 369 } 370 371 func (o ApnsVoipSandboxChannelOutput) ToApnsVoipSandboxChannelOutputWithContext(ctx context.Context) ApnsVoipSandboxChannelOutput { 372 return o 373 } 374 375 // The application ID. 376 func (o ApnsVoipSandboxChannelOutput) ApplicationId() pulumi.StringOutput { 377 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringOutput { return v.ApplicationId }).(pulumi.StringOutput) 378 } 379 380 // The ID assigned to your iOS app. To find this value, choose Certificates, IDs & Profiles, choose App IDs in the Identifiers section, and choose your app. 381 func (o ApnsVoipSandboxChannelOutput) BundleId() pulumi.StringPtrOutput { 382 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringPtrOutput { return v.BundleId }).(pulumi.StringPtrOutput) 383 } 384 385 // The pem encoded TLS Certificate from Apple. 386 func (o ApnsVoipSandboxChannelOutput) Certificate() pulumi.StringPtrOutput { 387 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringPtrOutput { return v.Certificate }).(pulumi.StringPtrOutput) 388 } 389 390 // The default authentication method used for APNs. 391 // __NOTE__: Amazon Pinpoint uses this default for every APNs push notification that you send using the console. 392 // You can override the default when you send a message programmatically using the Amazon Pinpoint API, the AWS CLI, or an AWS SDK. 393 // If your default authentication type fails, Amazon Pinpoint doesn't attempt to use the other authentication type. 394 // 395 // One of the following sets of credentials is also required. 396 // 397 // If you choose to use __Certificate credentials__ you will have to provide: 398 func (o ApnsVoipSandboxChannelOutput) DefaultAuthenticationMethod() pulumi.StringPtrOutput { 399 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringPtrOutput { return v.DefaultAuthenticationMethod }).(pulumi.StringPtrOutput) 400 } 401 402 // Whether the channel is enabled or disabled. Defaults to `true`. 403 func (o ApnsVoipSandboxChannelOutput) Enabled() pulumi.BoolPtrOutput { 404 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) 405 } 406 407 // The Certificate Private Key file (ie. `.key` file). 408 // 409 // If you choose to use __Key credentials__ you will have to provide: 410 func (o ApnsVoipSandboxChannelOutput) PrivateKey() pulumi.StringPtrOutput { 411 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringPtrOutput { return v.PrivateKey }).(pulumi.StringPtrOutput) 412 } 413 414 // The ID assigned to your Apple developer account team. This value is provided on the Membership page. 415 func (o ApnsVoipSandboxChannelOutput) TeamId() pulumi.StringPtrOutput { 416 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringPtrOutput { return v.TeamId }).(pulumi.StringPtrOutput) 417 } 418 419 // The `.p8` file that you download from your Apple developer account when you create an authentication key. 420 func (o ApnsVoipSandboxChannelOutput) TokenKey() pulumi.StringPtrOutput { 421 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringPtrOutput { return v.TokenKey }).(pulumi.StringPtrOutput) 422 } 423 424 // The ID assigned to your signing key. To find this value, choose Certificates, IDs & Profiles, and choose your key in the Keys section. 425 func (o ApnsVoipSandboxChannelOutput) TokenKeyId() pulumi.StringPtrOutput { 426 return o.ApplyT(func(v *ApnsVoipSandboxChannel) pulumi.StringPtrOutput { return v.TokenKeyId }).(pulumi.StringPtrOutput) 427 } 428 429 type ApnsVoipSandboxChannelArrayOutput struct{ *pulumi.OutputState } 430 431 func (ApnsVoipSandboxChannelArrayOutput) ElementType() reflect.Type { 432 return reflect.TypeOf((*[]*ApnsVoipSandboxChannel)(nil)).Elem() 433 } 434 435 func (o ApnsVoipSandboxChannelArrayOutput) ToApnsVoipSandboxChannelArrayOutput() ApnsVoipSandboxChannelArrayOutput { 436 return o 437 } 438 439 func (o ApnsVoipSandboxChannelArrayOutput) ToApnsVoipSandboxChannelArrayOutputWithContext(ctx context.Context) ApnsVoipSandboxChannelArrayOutput { 440 return o 441 } 442 443 func (o ApnsVoipSandboxChannelArrayOutput) Index(i pulumi.IntInput) ApnsVoipSandboxChannelOutput { 444 return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ApnsVoipSandboxChannel { 445 return vs[0].([]*ApnsVoipSandboxChannel)[vs[1].(int)] 446 }).(ApnsVoipSandboxChannelOutput) 447 } 448 449 type ApnsVoipSandboxChannelMapOutput struct{ *pulumi.OutputState } 450 451 func (ApnsVoipSandboxChannelMapOutput) ElementType() reflect.Type { 452 return reflect.TypeOf((*map[string]*ApnsVoipSandboxChannel)(nil)).Elem() 453 } 454 455 func (o ApnsVoipSandboxChannelMapOutput) ToApnsVoipSandboxChannelMapOutput() ApnsVoipSandboxChannelMapOutput { 456 return o 457 } 458 459 func (o ApnsVoipSandboxChannelMapOutput) ToApnsVoipSandboxChannelMapOutputWithContext(ctx context.Context) ApnsVoipSandboxChannelMapOutput { 460 return o 461 } 462 463 func (o ApnsVoipSandboxChannelMapOutput) MapIndex(k pulumi.StringInput) ApnsVoipSandboxChannelOutput { 464 return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ApnsVoipSandboxChannel { 465 return vs[0].(map[string]*ApnsVoipSandboxChannel)[vs[1].(string)] 466 }).(ApnsVoipSandboxChannelOutput) 467 } 468 469 func init() { 470 pulumi.RegisterInputType(reflect.TypeOf((*ApnsVoipSandboxChannelInput)(nil)).Elem(), &ApnsVoipSandboxChannel{}) 471 pulumi.RegisterInputType(reflect.TypeOf((*ApnsVoipSandboxChannelArrayInput)(nil)).Elem(), ApnsVoipSandboxChannelArray{}) 472 pulumi.RegisterInputType(reflect.TypeOf((*ApnsVoipSandboxChannelMapInput)(nil)).Elem(), ApnsVoipSandboxChannelMap{}) 473 pulumi.RegisterOutputType(ApnsVoipSandboxChannelOutput{}) 474 pulumi.RegisterOutputType(ApnsVoipSandboxChannelArrayOutput{}) 475 pulumi.RegisterOutputType(ApnsVoipSandboxChannelMapOutput{}) 476 }