@@ -21,35 +21,85 @@ namespace Pulumi.Volcengine.Alb
2121 ///
2222 /// return await Deployment.RunAsync(() =>
2323 /// {
24- /// var fooCustomizedCfg = new Volcengine.Alb.CustomizedCfg("fooCustomizedCfg", new()
24+ /// var fooZones = Volcengine.Ecs.Zones.Invoke();
25+ ///
26+ /// var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
27+ /// {
28+ /// VpcName = "acc-test-vpc",
29+ /// CidrBlock = "172.16.0.0/16",
30+ /// });
31+ ///
32+ /// var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
2533 /// {
26- /// CustomizedCfgName = "acc-test-cfg1",
27- /// Description = "This is a test modify",
28- /// CustomizedCfgContent = "proxy_connect_timeout 4s;proxy_request_buffering on;",
34+ /// SubnetName = "acc-test-subnet",
35+ /// CidrBlock = "172.16.0.0/24",
36+ /// ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
37+ /// VpcId = fooVpc.Id,
38+ /// });
39+ ///
40+ /// var fooAlb = new Volcengine.Alb.Alb("fooAlb", new()
41+ /// {
42+ /// AddressIpVersion = "IPv4",
43+ /// Type = "private",
44+ /// LoadBalancerName = "acc-test-alb-private",
45+ /// Description = "acc-test",
46+ /// SubnetIds = new[]
47+ /// {
48+ /// fooSubnet.Id,
49+ /// },
2950 /// ProjectName = "default",
51+ /// DeleteProtection = "off",
52+ /// Tags = new[]
53+ /// {
54+ /// new Volcengine.Alb.Inputs.AlbTagArgs
55+ /// {
56+ /// Key = "k1",
57+ /// Value = "v1",
58+ /// },
59+ /// },
60+ /// });
61+ ///
62+ /// var fooServerGroup = new Volcengine.Alb.ServerGroup("fooServerGroup", new()
63+ /// {
64+ /// VpcId = fooVpc.Id,
65+ /// ServerGroupName = "acc-test-server-group",
66+ /// Description = "acc-test",
67+ /// ServerGroupType = "instance",
68+ /// Scheduler = "wlc",
69+ /// ProjectName = "default",
70+ /// HealthCheck = new Volcengine.Alb.Inputs.ServerGroupHealthCheckArgs
71+ /// {
72+ /// Enabled = "on",
73+ /// Interval = 3,
74+ /// Timeout = 3,
75+ /// Method = "GET",
76+ /// },
77+ /// StickySessionConfig = new Volcengine.Alb.Inputs.ServerGroupStickySessionConfigArgs
78+ /// {
79+ /// StickySessionEnabled = "on",
80+ /// StickySessionType = "insert",
81+ /// CookieTimeout = 1100,
82+ /// },
83+ /// });
84+ ///
85+ /// var fooCertificate = new Volcengine.Alb.Certificate("fooCertificate", new()
86+ /// {
87+ /// Description = "tf-test",
88+ /// PublicKey = "public key",
89+ /// PrivateKey = "private key",
3090 /// });
3191 ///
3292 /// var fooListener = new Volcengine.Alb.Listener("fooListener", new()
3393 /// {
34- /// LoadBalancerId = "alb-1iidd17v3klj474adhfrunyz9" ,
35- /// ListenerName = "acc-test-listener-1 ",
94+ /// LoadBalancerId = fooAlb.Id ,
95+ /// ListenerName = "acc-test-listener",
3696 /// Protocol = "HTTPS",
3797 /// Port = 6666,
38- /// Enabled = "on",
39- /// CertificateId = "cert-1iidd2pahdyio74adhfr9ajwg",
40- /// CaCertificateId = "cert-1iidd2r9ii0hs74adhfeodxo1",
41- /// ServerGroupId = "rsp-1g72w74y4umf42zbhq4k4hnln",
42- /// EnableHttp2 = "on",
43- /// EnableQuic = "off",
44- /// AclStatus = "on",
45- /// AclType = "white",
46- /// AclIds = new[]
47- /// {
48- /// "acl-1g72w6z11ighs2zbhq4v3rvh4",
49- /// "acl-1g72xvtt7kg002zbhq5diim3s",
50- /// },
98+ /// Enabled = "off",
99+ /// CertificateSource = "alb",
100+ /// CertificateId = fooCertificate.Id,
101+ /// ServerGroupId = fooServerGroup.Id,
51102 /// Description = "acc test listener",
52- /// CustomizedCfgId = fooCustomizedCfg.Id,
53103 /// });
54104 ///
55105 /// });
@@ -91,11 +141,23 @@ public partial class Listener : global::Pulumi.CustomResource
91141 public Output < string ? > CaCertificateId { get ; private set ; } = null ! ;
92142
93143 /// <summary>
94- /// The certificate id associated with the listener.
144+ /// The certificate id associated with the listener. Source is `cert_center`.
145+ /// </summary>
146+ [ Output ( "certCenterCertificateId" ) ]
147+ public Output < string ? > CertCenterCertificateId { get ; private set ; } = null ! ;
148+
149+ /// <summary>
150+ /// The certificate id associated with the listener. Source is `alb`.
95151 /// </summary>
96152 [ Output ( "certificateId" ) ]
97153 public Output < string ? > CertificateId { get ; private set ; } = null ! ;
98154
155+ /// <summary>
156+ /// The source of the certificate. Valid values: `alb`, `cert_center`. Default is `alb`.
157+ /// </summary>
158+ [ Output ( "certificateSource" ) ]
159+ public Output < string ? > CertificateSource { get ; private set ; } = null ! ;
160+
99161 /// <summary>
100162 /// Personalized configuration ID, with a value of " " when not bound.
101163 /// </summary>
@@ -240,11 +302,23 @@ public InputList<string> AclIds
240302 public Input < string > ? CaCertificateId { get ; set ; }
241303
242304 /// <summary>
243- /// The certificate id associated with the listener.
305+ /// The certificate id associated with the listener. Source is `cert_center`.
306+ /// </summary>
307+ [ Input ( "certCenterCertificateId" ) ]
308+ public Input < string > ? CertCenterCertificateId { get ; set ; }
309+
310+ /// <summary>
311+ /// The certificate id associated with the listener. Source is `alb`.
244312 /// </summary>
245313 [ Input ( "certificateId" ) ]
246314 public Input < string > ? CertificateId { get ; set ; }
247315
316+ /// <summary>
317+ /// The source of the certificate. Valid values: `alb`, `cert_center`. Default is `alb`.
318+ /// </summary>
319+ [ Input ( "certificateSource" ) ]
320+ public Input < string > ? CertificateSource { get ; set ; }
321+
248322 /// <summary>
249323 /// Personalized configuration ID, with a value of " " when not bound.
250324 /// </summary>
@@ -344,11 +418,23 @@ public InputList<string> AclIds
344418 public Input < string > ? CaCertificateId { get ; set ; }
345419
346420 /// <summary>
347- /// The certificate id associated with the listener.
421+ /// The certificate id associated with the listener. Source is `cert_center`.
422+ /// </summary>
423+ [ Input ( "certCenterCertificateId" ) ]
424+ public Input < string > ? CertCenterCertificateId { get ; set ; }
425+
426+ /// <summary>
427+ /// The certificate id associated with the listener. Source is `alb`.
348428 /// </summary>
349429 [ Input ( "certificateId" ) ]
350430 public Input < string > ? CertificateId { get ; set ; }
351431
432+ /// <summary>
433+ /// The source of the certificate. Valid values: `alb`, `cert_center`. Default is `alb`.
434+ /// </summary>
435+ [ Input ( "certificateSource" ) ]
436+ public Input < string > ? CertificateSource { get ; set ; }
437+
352438 /// <summary>
353439 /// Personalized configuration ID, with a value of " " when not bound.
354440 /// </summary>
0 commit comments