github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/pinpoint/apnsSandboxChannel.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 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.NewApnsSandboxChannel(ctx, "apns_sandbox", &pinpoint.ApnsSandboxChannelArgs{
    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 Sandbox Channel using the `application-id`. For example:
    68  //
    69  // ```sh
    70  // $ pulumi import aws:pinpoint/apnsSandboxChannel:ApnsSandboxChannel apns_sandbox application-id
    71  // ```
    72  type ApnsSandboxChannel 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 Sandbox.
    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  // NewApnsSandboxChannel registers a new resource with the given unique name, arguments, and options.
   105  func NewApnsSandboxChannel(ctx *pulumi.Context,
   106  	name string, args *ApnsSandboxChannelArgs, opts ...pulumi.ResourceOption) (*ApnsSandboxChannel, 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 ApnsSandboxChannel
   143  	err := ctx.RegisterResource("aws:pinpoint/apnsSandboxChannel:ApnsSandboxChannel", name, args, &resource, opts...)
   144  	if err != nil {
   145  		return nil, err
   146  	}
   147  	return &resource, nil
   148  }
   149  
   150  // GetApnsSandboxChannel gets an existing ApnsSandboxChannel 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 GetApnsSandboxChannel(ctx *pulumi.Context,
   153  	name string, id pulumi.IDInput, state *ApnsSandboxChannelState, opts ...pulumi.ResourceOption) (*ApnsSandboxChannel, error) {
   154  	var resource ApnsSandboxChannel
   155  	err := ctx.ReadResource("aws:pinpoint/apnsSandboxChannel:ApnsSandboxChannel", 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 ApnsSandboxChannel resources.
   163  type apnsSandboxChannelState 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 Sandbox.
   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 ApnsSandboxChannelState 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 Sandbox.
   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 (ApnsSandboxChannelState) ElementType() reflect.Type {
   224  	return reflect.TypeOf((*apnsSandboxChannelState)(nil)).Elem()
   225  }
   226  
   227  type apnsSandboxChannelArgs 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 Sandbox.
   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 ApnsSandboxChannel resource.
   258  type ApnsSandboxChannelArgs 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 Sandbox.
   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 (ApnsSandboxChannelArgs) ElementType() reflect.Type {
   289  	return reflect.TypeOf((*apnsSandboxChannelArgs)(nil)).Elem()
   290  }
   291  
   292  type ApnsSandboxChannelInput interface {
   293  	pulumi.Input
   294  
   295  	ToApnsSandboxChannelOutput() ApnsSandboxChannelOutput
   296  	ToApnsSandboxChannelOutputWithContext(ctx context.Context) ApnsSandboxChannelOutput
   297  }
   298  
   299  func (*ApnsSandboxChannel) ElementType() reflect.Type {
   300  	return reflect.TypeOf((**ApnsSandboxChannel)(nil)).Elem()
   301  }
   302  
   303  func (i *ApnsSandboxChannel) ToApnsSandboxChannelOutput() ApnsSandboxChannelOutput {
   304  	return i.ToApnsSandboxChannelOutputWithContext(context.Background())
   305  }
   306  
   307  func (i *ApnsSandboxChannel) ToApnsSandboxChannelOutputWithContext(ctx context.Context) ApnsSandboxChannelOutput {
   308  	return pulumi.ToOutputWithContext(ctx, i).(ApnsSandboxChannelOutput)
   309  }
   310  
   311  // ApnsSandboxChannelArrayInput is an input type that accepts ApnsSandboxChannelArray and ApnsSandboxChannelArrayOutput values.
   312  // You can construct a concrete instance of `ApnsSandboxChannelArrayInput` via:
   313  //
   314  //	ApnsSandboxChannelArray{ ApnsSandboxChannelArgs{...} }
   315  type ApnsSandboxChannelArrayInput interface {
   316  	pulumi.Input
   317  
   318  	ToApnsSandboxChannelArrayOutput() ApnsSandboxChannelArrayOutput
   319  	ToApnsSandboxChannelArrayOutputWithContext(context.Context) ApnsSandboxChannelArrayOutput
   320  }
   321  
   322  type ApnsSandboxChannelArray []ApnsSandboxChannelInput
   323  
   324  func (ApnsSandboxChannelArray) ElementType() reflect.Type {
   325  	return reflect.TypeOf((*[]*ApnsSandboxChannel)(nil)).Elem()
   326  }
   327  
   328  func (i ApnsSandboxChannelArray) ToApnsSandboxChannelArrayOutput() ApnsSandboxChannelArrayOutput {
   329  	return i.ToApnsSandboxChannelArrayOutputWithContext(context.Background())
   330  }
   331  
   332  func (i ApnsSandboxChannelArray) ToApnsSandboxChannelArrayOutputWithContext(ctx context.Context) ApnsSandboxChannelArrayOutput {
   333  	return pulumi.ToOutputWithContext(ctx, i).(ApnsSandboxChannelArrayOutput)
   334  }
   335  
   336  // ApnsSandboxChannelMapInput is an input type that accepts ApnsSandboxChannelMap and ApnsSandboxChannelMapOutput values.
   337  // You can construct a concrete instance of `ApnsSandboxChannelMapInput` via:
   338  //
   339  //	ApnsSandboxChannelMap{ "key": ApnsSandboxChannelArgs{...} }
   340  type ApnsSandboxChannelMapInput interface {
   341  	pulumi.Input
   342  
   343  	ToApnsSandboxChannelMapOutput() ApnsSandboxChannelMapOutput
   344  	ToApnsSandboxChannelMapOutputWithContext(context.Context) ApnsSandboxChannelMapOutput
   345  }
   346  
   347  type ApnsSandboxChannelMap map[string]ApnsSandboxChannelInput
   348  
   349  func (ApnsSandboxChannelMap) ElementType() reflect.Type {
   350  	return reflect.TypeOf((*map[string]*ApnsSandboxChannel)(nil)).Elem()
   351  }
   352  
   353  func (i ApnsSandboxChannelMap) ToApnsSandboxChannelMapOutput() ApnsSandboxChannelMapOutput {
   354  	return i.ToApnsSandboxChannelMapOutputWithContext(context.Background())
   355  }
   356  
   357  func (i ApnsSandboxChannelMap) ToApnsSandboxChannelMapOutputWithContext(ctx context.Context) ApnsSandboxChannelMapOutput {
   358  	return pulumi.ToOutputWithContext(ctx, i).(ApnsSandboxChannelMapOutput)
   359  }
   360  
   361  type ApnsSandboxChannelOutput struct{ *pulumi.OutputState }
   362  
   363  func (ApnsSandboxChannelOutput) ElementType() reflect.Type {
   364  	return reflect.TypeOf((**ApnsSandboxChannel)(nil)).Elem()
   365  }
   366  
   367  func (o ApnsSandboxChannelOutput) ToApnsSandboxChannelOutput() ApnsSandboxChannelOutput {
   368  	return o
   369  }
   370  
   371  func (o ApnsSandboxChannelOutput) ToApnsSandboxChannelOutputWithContext(ctx context.Context) ApnsSandboxChannelOutput {
   372  	return o
   373  }
   374  
   375  // The application ID.
   376  func (o ApnsSandboxChannelOutput) ApplicationId() pulumi.StringOutput {
   377  	return o.ApplyT(func(v *ApnsSandboxChannel) 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 ApnsSandboxChannelOutput) BundleId() pulumi.StringPtrOutput {
   382  	return o.ApplyT(func(v *ApnsSandboxChannel) pulumi.StringPtrOutput { return v.BundleId }).(pulumi.StringPtrOutput)
   383  }
   384  
   385  // The pem encoded TLS Certificate from Apple.
   386  func (o ApnsSandboxChannelOutput) Certificate() pulumi.StringPtrOutput {
   387  	return o.ApplyT(func(v *ApnsSandboxChannel) pulumi.StringPtrOutput { return v.Certificate }).(pulumi.StringPtrOutput)
   388  }
   389  
   390  // The default authentication method used for APNs Sandbox.
   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 ApnsSandboxChannelOutput) DefaultAuthenticationMethod() pulumi.StringPtrOutput {
   399  	return o.ApplyT(func(v *ApnsSandboxChannel) pulumi.StringPtrOutput { return v.DefaultAuthenticationMethod }).(pulumi.StringPtrOutput)
   400  }
   401  
   402  // Whether the channel is enabled or disabled. Defaults to `true`.
   403  func (o ApnsSandboxChannelOutput) Enabled() pulumi.BoolPtrOutput {
   404  	return o.ApplyT(func(v *ApnsSandboxChannel) 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 ApnsSandboxChannelOutput) PrivateKey() pulumi.StringPtrOutput {
   411  	return o.ApplyT(func(v *ApnsSandboxChannel) 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 ApnsSandboxChannelOutput) TeamId() pulumi.StringPtrOutput {
   416  	return o.ApplyT(func(v *ApnsSandboxChannel) 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 ApnsSandboxChannelOutput) TokenKey() pulumi.StringPtrOutput {
   421  	return o.ApplyT(func(v *ApnsSandboxChannel) 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 ApnsSandboxChannelOutput) TokenKeyId() pulumi.StringPtrOutput {
   426  	return o.ApplyT(func(v *ApnsSandboxChannel) pulumi.StringPtrOutput { return v.TokenKeyId }).(pulumi.StringPtrOutput)
   427  }
   428  
   429  type ApnsSandboxChannelArrayOutput struct{ *pulumi.OutputState }
   430  
   431  func (ApnsSandboxChannelArrayOutput) ElementType() reflect.Type {
   432  	return reflect.TypeOf((*[]*ApnsSandboxChannel)(nil)).Elem()
   433  }
   434  
   435  func (o ApnsSandboxChannelArrayOutput) ToApnsSandboxChannelArrayOutput() ApnsSandboxChannelArrayOutput {
   436  	return o
   437  }
   438  
   439  func (o ApnsSandboxChannelArrayOutput) ToApnsSandboxChannelArrayOutputWithContext(ctx context.Context) ApnsSandboxChannelArrayOutput {
   440  	return o
   441  }
   442  
   443  func (o ApnsSandboxChannelArrayOutput) Index(i pulumi.IntInput) ApnsSandboxChannelOutput {
   444  	return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ApnsSandboxChannel {
   445  		return vs[0].([]*ApnsSandboxChannel)[vs[1].(int)]
   446  	}).(ApnsSandboxChannelOutput)
   447  }
   448  
   449  type ApnsSandboxChannelMapOutput struct{ *pulumi.OutputState }
   450  
   451  func (ApnsSandboxChannelMapOutput) ElementType() reflect.Type {
   452  	return reflect.TypeOf((*map[string]*ApnsSandboxChannel)(nil)).Elem()
   453  }
   454  
   455  func (o ApnsSandboxChannelMapOutput) ToApnsSandboxChannelMapOutput() ApnsSandboxChannelMapOutput {
   456  	return o
   457  }
   458  
   459  func (o ApnsSandboxChannelMapOutput) ToApnsSandboxChannelMapOutputWithContext(ctx context.Context) ApnsSandboxChannelMapOutput {
   460  	return o
   461  }
   462  
   463  func (o ApnsSandboxChannelMapOutput) MapIndex(k pulumi.StringInput) ApnsSandboxChannelOutput {
   464  	return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ApnsSandboxChannel {
   465  		return vs[0].(map[string]*ApnsSandboxChannel)[vs[1].(string)]
   466  	}).(ApnsSandboxChannelOutput)
   467  }
   468  
   469  func init() {
   470  	pulumi.RegisterInputType(reflect.TypeOf((*ApnsSandboxChannelInput)(nil)).Elem(), &ApnsSandboxChannel{})
   471  	pulumi.RegisterInputType(reflect.TypeOf((*ApnsSandboxChannelArrayInput)(nil)).Elem(), ApnsSandboxChannelArray{})
   472  	pulumi.RegisterInputType(reflect.TypeOf((*ApnsSandboxChannelMapInput)(nil)).Elem(), ApnsSandboxChannelMap{})
   473  	pulumi.RegisterOutputType(ApnsSandboxChannelOutput{})
   474  	pulumi.RegisterOutputType(ApnsSandboxChannelArrayOutput{})
   475  	pulumi.RegisterOutputType(ApnsSandboxChannelMapOutput{})
   476  }