/
CustomerGateway.cs
188 lines (167 loc) · 6.57 KB
/
CustomerGateway.cs
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Aws.Ec2
{
/// <summary>
/// Provides a customer gateway inside a VPC. These objects can be connected to VPN gateways via VPN connections, and allow you to establish tunnels between your network and the VPC.
///
/// ## Example Usage
///
///
///
/// ```csharp
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// class MyStack : Stack
/// {
/// public MyStack()
/// {
/// var main = new Aws.Ec2.CustomerGateway("main", new Aws.Ec2.CustomerGatewayArgs
/// {
/// BgpAsn = 65000,
/// IpAddress = "172.83.124.10",
/// Tags =
/// {
/// { "Name", "main-customer-gateway" },
/// },
/// Type = "ipsec.1",
/// });
/// }
///
/// }
/// ```
/// </summary>
public partial class CustomerGateway : Pulumi.CustomResource
{
/// <summary>
/// The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
/// </summary>
[Output("bgpAsn")]
public Output<int> BgpAsn { get; private set; } = null!;
/// <summary>
/// The IP address of the gateway's Internet-routable external interface.
/// </summary>
[Output("ipAddress")]
public Output<string> IpAddress { get; private set; } = null!;
/// <summary>
/// Tags to apply to the gateway.
/// </summary>
[Output("tags")]
public Output<ImmutableDictionary<string, object>?> Tags { get; private set; } = null!;
/// <summary>
/// The type of customer gateway. The only type AWS
/// supports at this time is "ipsec.1".
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;
/// <summary>
/// Create a CustomerGateway resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public CustomerGateway(string name, CustomerGatewayArgs args, CustomResourceOptions? options = null)
: base("aws:ec2/customerGateway:CustomerGateway", name, args ?? new CustomerGatewayArgs(), MakeResourceOptions(options, ""))
{
}
private CustomerGateway(string name, Input<string> id, CustomerGatewayState? state = null, CustomResourceOptions? options = null)
: base("aws:ec2/customerGateway:CustomerGateway", name, state, MakeResourceOptions(options, id))
{
}
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing CustomerGateway resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static CustomerGateway Get(string name, Input<string> id, CustomerGatewayState? state = null, CustomResourceOptions? options = null)
{
return new CustomerGateway(name, id, state, options);
}
}
public sealed class CustomerGatewayArgs : Pulumi.ResourceArgs
{
/// <summary>
/// The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
/// </summary>
[Input("bgpAsn", required: true)]
public Input<int> BgpAsn { get; set; } = null!;
/// <summary>
/// The IP address of the gateway's Internet-routable external interface.
/// </summary>
[Input("ipAddress", required: true)]
public Input<string> IpAddress { get; set; } = null!;
[Input("tags")]
private InputMap<object>? _tags;
/// <summary>
/// Tags to apply to the gateway.
/// </summary>
public InputMap<object> Tags
{
get => _tags ?? (_tags = new InputMap<object>());
set => _tags = value;
}
/// <summary>
/// The type of customer gateway. The only type AWS
/// supports at this time is "ipsec.1".
/// </summary>
[Input("type", required: true)]
public Input<string> Type { get; set; } = null!;
public CustomerGatewayArgs()
{
}
}
public sealed class CustomerGatewayState : Pulumi.ResourceArgs
{
/// <summary>
/// The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).
/// </summary>
[Input("bgpAsn")]
public Input<int>? BgpAsn { get; set; }
/// <summary>
/// The IP address of the gateway's Internet-routable external interface.
/// </summary>
[Input("ipAddress")]
public Input<string>? IpAddress { get; set; }
[Input("tags")]
private InputMap<object>? _tags;
/// <summary>
/// Tags to apply to the gateway.
/// </summary>
public InputMap<object> Tags
{
get => _tags ?? (_tags = new InputMap<object>());
set => _tags = value;
}
/// <summary>
/// The type of customer gateway. The only type AWS
/// supports at this time is "ipsec.1".
/// </summary>
[Input("type")]
public Input<string>? Type { get; set; }
public CustomerGatewayState()
{
}
}
}