github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/ec2transitgateway/vpcAttachmentAccepter.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 ec2transitgateway
     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  // Manages the accepter's side of an EC2 Transit Gateway VPC Attachment.
    16  //
    17  // When a cross-account (requester's AWS account differs from the accepter's AWS account) EC2 Transit Gateway VPC Attachment
    18  // is created, an EC2 Transit Gateway VPC Attachment resource is automatically created in the accepter's account.
    19  // The requester can use the `ec2transitgateway.VpcAttachment` resource to manage its side of the connection
    20  // and the accepter can use the `ec2transitgateway.VpcAttachmentAccepter` resource to "adopt" its side of the
    21  // connection into management.
    22  //
    23  // ## Example Usage
    24  //
    25  // <!--Start PulumiCodeChooser -->
    26  // ```go
    27  // package main
    28  //
    29  // import (
    30  //
    31  //	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2transitgateway"
    32  //	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    33  //
    34  // )
    35  //
    36  //	func main() {
    37  //		pulumi.Run(func(ctx *pulumi.Context) error {
    38  //			_, err := ec2transitgateway.NewVpcAttachmentAccepter(ctx, "example", &ec2transitgateway.VpcAttachmentAccepterArgs{
    39  //				TransitGatewayAttachmentId: pulumi.Any(exampleAwsEc2TransitGatewayVpcAttachment.Id),
    40  //				Tags: pulumi.StringMap{
    41  //					"Name": pulumi.String("Example cross-account attachment"),
    42  //				},
    43  //			})
    44  //			if err != nil {
    45  //				return err
    46  //			}
    47  //			return nil
    48  //		})
    49  //	}
    50  //
    51  // ```
    52  // <!--End PulumiCodeChooser -->
    53  //
    54  // ## Import
    55  //
    56  // Using `pulumi import`, import `aws_ec2_transit_gateway_vpc_attachment_accepter` using the EC2 Transit Gateway Attachment identifier. For example:
    57  //
    58  // ```sh
    59  // $ pulumi import aws:ec2transitgateway/vpcAttachmentAccepter:VpcAttachmentAccepter example tgw-attach-12345678
    60  // ```
    61  type VpcAttachmentAccepter struct {
    62  	pulumi.CustomResourceState
    63  
    64  	// Whether Appliance Mode support is enabled. Valid values: `disable`, `enable`.
    65  	ApplianceModeSupport pulumi.StringOutput `pulumi:"applianceModeSupport"`
    66  	// Whether DNS support is enabled. Valid values: `disable`, `enable`.
    67  	DnsSupport pulumi.StringOutput `pulumi:"dnsSupport"`
    68  	// Whether IPv6 support is enabled. Valid values: `disable`, `enable`.
    69  	Ipv6Support pulumi.StringOutput `pulumi:"ipv6Support"`
    70  	// Identifiers of EC2 Subnets.
    71  	SubnetIds pulumi.StringArrayOutput `pulumi:"subnetIds"`
    72  	// Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    73  	Tags pulumi.StringMapOutput `pulumi:"tags"`
    74  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
    75  	//
    76  	// Deprecated: Please use `tags` instead.
    77  	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
    78  	// The ID of the EC2 Transit Gateway Attachment to manage.
    79  	TransitGatewayAttachmentId pulumi.StringOutput `pulumi:"transitGatewayAttachmentId"`
    80  	// Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: `true`.
    81  	TransitGatewayDefaultRouteTableAssociation pulumi.BoolPtrOutput `pulumi:"transitGatewayDefaultRouteTableAssociation"`
    82  	// Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: `true`.
    83  	TransitGatewayDefaultRouteTablePropagation pulumi.BoolPtrOutput `pulumi:"transitGatewayDefaultRouteTablePropagation"`
    84  	// Identifier of EC2 Transit Gateway.
    85  	TransitGatewayId pulumi.StringOutput `pulumi:"transitGatewayId"`
    86  	// Identifier of EC2 VPC.
    87  	VpcId pulumi.StringOutput `pulumi:"vpcId"`
    88  	// Identifier of the AWS account that owns the EC2 VPC.
    89  	VpcOwnerId pulumi.StringOutput `pulumi:"vpcOwnerId"`
    90  }
    91  
    92  // NewVpcAttachmentAccepter registers a new resource with the given unique name, arguments, and options.
    93  func NewVpcAttachmentAccepter(ctx *pulumi.Context,
    94  	name string, args *VpcAttachmentAccepterArgs, opts ...pulumi.ResourceOption) (*VpcAttachmentAccepter, error) {
    95  	if args == nil {
    96  		return nil, errors.New("missing one or more required arguments")
    97  	}
    98  
    99  	if args.TransitGatewayAttachmentId == nil {
   100  		return nil, errors.New("invalid value for required argument 'TransitGatewayAttachmentId'")
   101  	}
   102  	opts = internal.PkgResourceDefaultOpts(opts)
   103  	var resource VpcAttachmentAccepter
   104  	err := ctx.RegisterResource("aws:ec2transitgateway/vpcAttachmentAccepter:VpcAttachmentAccepter", name, args, &resource, opts...)
   105  	if err != nil {
   106  		return nil, err
   107  	}
   108  	return &resource, nil
   109  }
   110  
   111  // GetVpcAttachmentAccepter gets an existing VpcAttachmentAccepter resource's state with the given name, ID, and optional
   112  // state properties that are used to uniquely qualify the lookup (nil if not required).
   113  func GetVpcAttachmentAccepter(ctx *pulumi.Context,
   114  	name string, id pulumi.IDInput, state *VpcAttachmentAccepterState, opts ...pulumi.ResourceOption) (*VpcAttachmentAccepter, error) {
   115  	var resource VpcAttachmentAccepter
   116  	err := ctx.ReadResource("aws:ec2transitgateway/vpcAttachmentAccepter:VpcAttachmentAccepter", name, id, state, &resource, opts...)
   117  	if err != nil {
   118  		return nil, err
   119  	}
   120  	return &resource, nil
   121  }
   122  
   123  // Input properties used for looking up and filtering VpcAttachmentAccepter resources.
   124  type vpcAttachmentAccepterState struct {
   125  	// Whether Appliance Mode support is enabled. Valid values: `disable`, `enable`.
   126  	ApplianceModeSupport *string `pulumi:"applianceModeSupport"`
   127  	// Whether DNS support is enabled. Valid values: `disable`, `enable`.
   128  	DnsSupport *string `pulumi:"dnsSupport"`
   129  	// Whether IPv6 support is enabled. Valid values: `disable`, `enable`.
   130  	Ipv6Support *string `pulumi:"ipv6Support"`
   131  	// Identifiers of EC2 Subnets.
   132  	SubnetIds []string `pulumi:"subnetIds"`
   133  	// Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   134  	Tags map[string]string `pulumi:"tags"`
   135  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   136  	//
   137  	// Deprecated: Please use `tags` instead.
   138  	TagsAll map[string]string `pulumi:"tagsAll"`
   139  	// The ID of the EC2 Transit Gateway Attachment to manage.
   140  	TransitGatewayAttachmentId *string `pulumi:"transitGatewayAttachmentId"`
   141  	// Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: `true`.
   142  	TransitGatewayDefaultRouteTableAssociation *bool `pulumi:"transitGatewayDefaultRouteTableAssociation"`
   143  	// Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: `true`.
   144  	TransitGatewayDefaultRouteTablePropagation *bool `pulumi:"transitGatewayDefaultRouteTablePropagation"`
   145  	// Identifier of EC2 Transit Gateway.
   146  	TransitGatewayId *string `pulumi:"transitGatewayId"`
   147  	// Identifier of EC2 VPC.
   148  	VpcId *string `pulumi:"vpcId"`
   149  	// Identifier of the AWS account that owns the EC2 VPC.
   150  	VpcOwnerId *string `pulumi:"vpcOwnerId"`
   151  }
   152  
   153  type VpcAttachmentAccepterState struct {
   154  	// Whether Appliance Mode support is enabled. Valid values: `disable`, `enable`.
   155  	ApplianceModeSupport pulumi.StringPtrInput
   156  	// Whether DNS support is enabled. Valid values: `disable`, `enable`.
   157  	DnsSupport pulumi.StringPtrInput
   158  	// Whether IPv6 support is enabled. Valid values: `disable`, `enable`.
   159  	Ipv6Support pulumi.StringPtrInput
   160  	// Identifiers of EC2 Subnets.
   161  	SubnetIds pulumi.StringArrayInput
   162  	// Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   163  	Tags pulumi.StringMapInput
   164  	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   165  	//
   166  	// Deprecated: Please use `tags` instead.
   167  	TagsAll pulumi.StringMapInput
   168  	// The ID of the EC2 Transit Gateway Attachment to manage.
   169  	TransitGatewayAttachmentId pulumi.StringPtrInput
   170  	// Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: `true`.
   171  	TransitGatewayDefaultRouteTableAssociation pulumi.BoolPtrInput
   172  	// Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: `true`.
   173  	TransitGatewayDefaultRouteTablePropagation pulumi.BoolPtrInput
   174  	// Identifier of EC2 Transit Gateway.
   175  	TransitGatewayId pulumi.StringPtrInput
   176  	// Identifier of EC2 VPC.
   177  	VpcId pulumi.StringPtrInput
   178  	// Identifier of the AWS account that owns the EC2 VPC.
   179  	VpcOwnerId pulumi.StringPtrInput
   180  }
   181  
   182  func (VpcAttachmentAccepterState) ElementType() reflect.Type {
   183  	return reflect.TypeOf((*vpcAttachmentAccepterState)(nil)).Elem()
   184  }
   185  
   186  type vpcAttachmentAccepterArgs struct {
   187  	// Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   188  	Tags map[string]string `pulumi:"tags"`
   189  	// The ID of the EC2 Transit Gateway Attachment to manage.
   190  	TransitGatewayAttachmentId string `pulumi:"transitGatewayAttachmentId"`
   191  	// Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: `true`.
   192  	TransitGatewayDefaultRouteTableAssociation *bool `pulumi:"transitGatewayDefaultRouteTableAssociation"`
   193  	// Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: `true`.
   194  	TransitGatewayDefaultRouteTablePropagation *bool `pulumi:"transitGatewayDefaultRouteTablePropagation"`
   195  }
   196  
   197  // The set of arguments for constructing a VpcAttachmentAccepter resource.
   198  type VpcAttachmentAccepterArgs struct {
   199  	// Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   200  	Tags pulumi.StringMapInput
   201  	// The ID of the EC2 Transit Gateway Attachment to manage.
   202  	TransitGatewayAttachmentId pulumi.StringInput
   203  	// Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: `true`.
   204  	TransitGatewayDefaultRouteTableAssociation pulumi.BoolPtrInput
   205  	// Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: `true`.
   206  	TransitGatewayDefaultRouteTablePropagation pulumi.BoolPtrInput
   207  }
   208  
   209  func (VpcAttachmentAccepterArgs) ElementType() reflect.Type {
   210  	return reflect.TypeOf((*vpcAttachmentAccepterArgs)(nil)).Elem()
   211  }
   212  
   213  type VpcAttachmentAccepterInput interface {
   214  	pulumi.Input
   215  
   216  	ToVpcAttachmentAccepterOutput() VpcAttachmentAccepterOutput
   217  	ToVpcAttachmentAccepterOutputWithContext(ctx context.Context) VpcAttachmentAccepterOutput
   218  }
   219  
   220  func (*VpcAttachmentAccepter) ElementType() reflect.Type {
   221  	return reflect.TypeOf((**VpcAttachmentAccepter)(nil)).Elem()
   222  }
   223  
   224  func (i *VpcAttachmentAccepter) ToVpcAttachmentAccepterOutput() VpcAttachmentAccepterOutput {
   225  	return i.ToVpcAttachmentAccepterOutputWithContext(context.Background())
   226  }
   227  
   228  func (i *VpcAttachmentAccepter) ToVpcAttachmentAccepterOutputWithContext(ctx context.Context) VpcAttachmentAccepterOutput {
   229  	return pulumi.ToOutputWithContext(ctx, i).(VpcAttachmentAccepterOutput)
   230  }
   231  
   232  // VpcAttachmentAccepterArrayInput is an input type that accepts VpcAttachmentAccepterArray and VpcAttachmentAccepterArrayOutput values.
   233  // You can construct a concrete instance of `VpcAttachmentAccepterArrayInput` via:
   234  //
   235  //	VpcAttachmentAccepterArray{ VpcAttachmentAccepterArgs{...} }
   236  type VpcAttachmentAccepterArrayInput interface {
   237  	pulumi.Input
   238  
   239  	ToVpcAttachmentAccepterArrayOutput() VpcAttachmentAccepterArrayOutput
   240  	ToVpcAttachmentAccepterArrayOutputWithContext(context.Context) VpcAttachmentAccepterArrayOutput
   241  }
   242  
   243  type VpcAttachmentAccepterArray []VpcAttachmentAccepterInput
   244  
   245  func (VpcAttachmentAccepterArray) ElementType() reflect.Type {
   246  	return reflect.TypeOf((*[]*VpcAttachmentAccepter)(nil)).Elem()
   247  }
   248  
   249  func (i VpcAttachmentAccepterArray) ToVpcAttachmentAccepterArrayOutput() VpcAttachmentAccepterArrayOutput {
   250  	return i.ToVpcAttachmentAccepterArrayOutputWithContext(context.Background())
   251  }
   252  
   253  func (i VpcAttachmentAccepterArray) ToVpcAttachmentAccepterArrayOutputWithContext(ctx context.Context) VpcAttachmentAccepterArrayOutput {
   254  	return pulumi.ToOutputWithContext(ctx, i).(VpcAttachmentAccepterArrayOutput)
   255  }
   256  
   257  // VpcAttachmentAccepterMapInput is an input type that accepts VpcAttachmentAccepterMap and VpcAttachmentAccepterMapOutput values.
   258  // You can construct a concrete instance of `VpcAttachmentAccepterMapInput` via:
   259  //
   260  //	VpcAttachmentAccepterMap{ "key": VpcAttachmentAccepterArgs{...} }
   261  type VpcAttachmentAccepterMapInput interface {
   262  	pulumi.Input
   263  
   264  	ToVpcAttachmentAccepterMapOutput() VpcAttachmentAccepterMapOutput
   265  	ToVpcAttachmentAccepterMapOutputWithContext(context.Context) VpcAttachmentAccepterMapOutput
   266  }
   267  
   268  type VpcAttachmentAccepterMap map[string]VpcAttachmentAccepterInput
   269  
   270  func (VpcAttachmentAccepterMap) ElementType() reflect.Type {
   271  	return reflect.TypeOf((*map[string]*VpcAttachmentAccepter)(nil)).Elem()
   272  }
   273  
   274  func (i VpcAttachmentAccepterMap) ToVpcAttachmentAccepterMapOutput() VpcAttachmentAccepterMapOutput {
   275  	return i.ToVpcAttachmentAccepterMapOutputWithContext(context.Background())
   276  }
   277  
   278  func (i VpcAttachmentAccepterMap) ToVpcAttachmentAccepterMapOutputWithContext(ctx context.Context) VpcAttachmentAccepterMapOutput {
   279  	return pulumi.ToOutputWithContext(ctx, i).(VpcAttachmentAccepterMapOutput)
   280  }
   281  
   282  type VpcAttachmentAccepterOutput struct{ *pulumi.OutputState }
   283  
   284  func (VpcAttachmentAccepterOutput) ElementType() reflect.Type {
   285  	return reflect.TypeOf((**VpcAttachmentAccepter)(nil)).Elem()
   286  }
   287  
   288  func (o VpcAttachmentAccepterOutput) ToVpcAttachmentAccepterOutput() VpcAttachmentAccepterOutput {
   289  	return o
   290  }
   291  
   292  func (o VpcAttachmentAccepterOutput) ToVpcAttachmentAccepterOutputWithContext(ctx context.Context) VpcAttachmentAccepterOutput {
   293  	return o
   294  }
   295  
   296  // Whether Appliance Mode support is enabled. Valid values: `disable`, `enable`.
   297  func (o VpcAttachmentAccepterOutput) ApplianceModeSupport() pulumi.StringOutput {
   298  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringOutput { return v.ApplianceModeSupport }).(pulumi.StringOutput)
   299  }
   300  
   301  // Whether DNS support is enabled. Valid values: `disable`, `enable`.
   302  func (o VpcAttachmentAccepterOutput) DnsSupport() pulumi.StringOutput {
   303  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringOutput { return v.DnsSupport }).(pulumi.StringOutput)
   304  }
   305  
   306  // Whether IPv6 support is enabled. Valid values: `disable`, `enable`.
   307  func (o VpcAttachmentAccepterOutput) Ipv6Support() pulumi.StringOutput {
   308  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringOutput { return v.Ipv6Support }).(pulumi.StringOutput)
   309  }
   310  
   311  // Identifiers of EC2 Subnets.
   312  func (o VpcAttachmentAccepterOutput) SubnetIds() pulumi.StringArrayOutput {
   313  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringArrayOutput { return v.SubnetIds }).(pulumi.StringArrayOutput)
   314  }
   315  
   316  // Key-value tags for the EC2 Transit Gateway VPC Attachment. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
   317  func (o VpcAttachmentAccepterOutput) Tags() pulumi.StringMapOutput {
   318  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
   319  }
   320  
   321  // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
   322  //
   323  // Deprecated: Please use `tags` instead.
   324  func (o VpcAttachmentAccepterOutput) TagsAll() pulumi.StringMapOutput {
   325  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
   326  }
   327  
   328  // The ID of the EC2 Transit Gateway Attachment to manage.
   329  func (o VpcAttachmentAccepterOutput) TransitGatewayAttachmentId() pulumi.StringOutput {
   330  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringOutput { return v.TransitGatewayAttachmentId }).(pulumi.StringOutput)
   331  }
   332  
   333  // Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: `true`.
   334  func (o VpcAttachmentAccepterOutput) TransitGatewayDefaultRouteTableAssociation() pulumi.BoolPtrOutput {
   335  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.BoolPtrOutput {
   336  		return v.TransitGatewayDefaultRouteTableAssociation
   337  	}).(pulumi.BoolPtrOutput)
   338  }
   339  
   340  // Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: `true`.
   341  func (o VpcAttachmentAccepterOutput) TransitGatewayDefaultRouteTablePropagation() pulumi.BoolPtrOutput {
   342  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.BoolPtrOutput {
   343  		return v.TransitGatewayDefaultRouteTablePropagation
   344  	}).(pulumi.BoolPtrOutput)
   345  }
   346  
   347  // Identifier of EC2 Transit Gateway.
   348  func (o VpcAttachmentAccepterOutput) TransitGatewayId() pulumi.StringOutput {
   349  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringOutput { return v.TransitGatewayId }).(pulumi.StringOutput)
   350  }
   351  
   352  // Identifier of EC2 VPC.
   353  func (o VpcAttachmentAccepterOutput) VpcId() pulumi.StringOutput {
   354  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringOutput { return v.VpcId }).(pulumi.StringOutput)
   355  }
   356  
   357  // Identifier of the AWS account that owns the EC2 VPC.
   358  func (o VpcAttachmentAccepterOutput) VpcOwnerId() pulumi.StringOutput {
   359  	return o.ApplyT(func(v *VpcAttachmentAccepter) pulumi.StringOutput { return v.VpcOwnerId }).(pulumi.StringOutput)
   360  }
   361  
   362  type VpcAttachmentAccepterArrayOutput struct{ *pulumi.OutputState }
   363  
   364  func (VpcAttachmentAccepterArrayOutput) ElementType() reflect.Type {
   365  	return reflect.TypeOf((*[]*VpcAttachmentAccepter)(nil)).Elem()
   366  }
   367  
   368  func (o VpcAttachmentAccepterArrayOutput) ToVpcAttachmentAccepterArrayOutput() VpcAttachmentAccepterArrayOutput {
   369  	return o
   370  }
   371  
   372  func (o VpcAttachmentAccepterArrayOutput) ToVpcAttachmentAccepterArrayOutputWithContext(ctx context.Context) VpcAttachmentAccepterArrayOutput {
   373  	return o
   374  }
   375  
   376  func (o VpcAttachmentAccepterArrayOutput) Index(i pulumi.IntInput) VpcAttachmentAccepterOutput {
   377  	return pulumi.All(o, i).ApplyT(func(vs []interface{}) *VpcAttachmentAccepter {
   378  		return vs[0].([]*VpcAttachmentAccepter)[vs[1].(int)]
   379  	}).(VpcAttachmentAccepterOutput)
   380  }
   381  
   382  type VpcAttachmentAccepterMapOutput struct{ *pulumi.OutputState }
   383  
   384  func (VpcAttachmentAccepterMapOutput) ElementType() reflect.Type {
   385  	return reflect.TypeOf((*map[string]*VpcAttachmentAccepter)(nil)).Elem()
   386  }
   387  
   388  func (o VpcAttachmentAccepterMapOutput) ToVpcAttachmentAccepterMapOutput() VpcAttachmentAccepterMapOutput {
   389  	return o
   390  }
   391  
   392  func (o VpcAttachmentAccepterMapOutput) ToVpcAttachmentAccepterMapOutputWithContext(ctx context.Context) VpcAttachmentAccepterMapOutput {
   393  	return o
   394  }
   395  
   396  func (o VpcAttachmentAccepterMapOutput) MapIndex(k pulumi.StringInput) VpcAttachmentAccepterOutput {
   397  	return pulumi.All(o, k).ApplyT(func(vs []interface{}) *VpcAttachmentAccepter {
   398  		return vs[0].(map[string]*VpcAttachmentAccepter)[vs[1].(string)]
   399  	}).(VpcAttachmentAccepterOutput)
   400  }
   401  
   402  func init() {
   403  	pulumi.RegisterInputType(reflect.TypeOf((*VpcAttachmentAccepterInput)(nil)).Elem(), &VpcAttachmentAccepter{})
   404  	pulumi.RegisterInputType(reflect.TypeOf((*VpcAttachmentAccepterArrayInput)(nil)).Elem(), VpcAttachmentAccepterArray{})
   405  	pulumi.RegisterInputType(reflect.TypeOf((*VpcAttachmentAccepterMapInput)(nil)).Elem(), VpcAttachmentAccepterMap{})
   406  	pulumi.RegisterOutputType(VpcAttachmentAccepterOutput{})
   407  	pulumi.RegisterOutputType(VpcAttachmentAccepterArrayOutput{})
   408  	pulumi.RegisterOutputType(VpcAttachmentAccepterMapOutput{})
   409  }