aws_sdk_elasticloadbalancingv2/operation/create_target_group/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_target_group::_create_target_group_output::CreateTargetGroupOutputBuilder;
3
4pub use crate::operation::create_target_group::_create_target_group_input::CreateTargetGroupInputBuilder;
5
6impl crate::operation::create_target_group::builders::CreateTargetGroupInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_target_group::CreateTargetGroupOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_target_group::CreateTargetGroupError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_target_group();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateTargetGroup`.
24///
25/// <p>Creates a target group.</p>
26/// <p>For more information, see the following:</p>
27/// <ul>
28/// <li>
29/// <p><a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html">Target groups for your Application Load Balancers</a></p></li>
30/// <li>
31/// <p><a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-target-groups.html">Target groups for your Network Load Balancers</a></p></li>
32/// <li>
33/// <p><a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/target-groups.html">Target groups for your Gateway Load Balancers</a></p></li>
34/// </ul>
35/// <p>This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple target groups with the same settings, each call succeeds.</p>
36#[derive(::std::clone::Clone, ::std::fmt::Debug)]
37pub struct CreateTargetGroupFluentBuilder {
38 handle: ::std::sync::Arc<crate::client::Handle>,
39 inner: crate::operation::create_target_group::builders::CreateTargetGroupInputBuilder,
40 config_override: ::std::option::Option<crate::config::Builder>,
41}
42impl
43 crate::client::customize::internal::CustomizableSend<
44 crate::operation::create_target_group::CreateTargetGroupOutput,
45 crate::operation::create_target_group::CreateTargetGroupError,
46 > for CreateTargetGroupFluentBuilder
47{
48 fn send(
49 self,
50 config_override: crate::config::Builder,
51 ) -> crate::client::customize::internal::BoxFuture<
52 crate::client::customize::internal::SendResult<
53 crate::operation::create_target_group::CreateTargetGroupOutput,
54 crate::operation::create_target_group::CreateTargetGroupError,
55 >,
56 > {
57 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
58 }
59}
60impl CreateTargetGroupFluentBuilder {
61 /// Creates a new `CreateTargetGroupFluentBuilder`.
62 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
63 Self {
64 handle,
65 inner: ::std::default::Default::default(),
66 config_override: ::std::option::Option::None,
67 }
68 }
69 /// Access the CreateTargetGroup as a reference.
70 pub fn as_input(&self) -> &crate::operation::create_target_group::builders::CreateTargetGroupInputBuilder {
71 &self.inner
72 }
73 /// Sends the request and returns the response.
74 ///
75 /// If an error occurs, an `SdkError` will be returned with additional details that
76 /// can be matched against.
77 ///
78 /// By default, any retryable failures will be retried twice. Retry behavior
79 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
80 /// set when configuring the client.
81 pub async fn send(
82 self,
83 ) -> ::std::result::Result<
84 crate::operation::create_target_group::CreateTargetGroupOutput,
85 ::aws_smithy_runtime_api::client::result::SdkError<
86 crate::operation::create_target_group::CreateTargetGroupError,
87 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
88 >,
89 > {
90 let input = self
91 .inner
92 .build()
93 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
94 let runtime_plugins = crate::operation::create_target_group::CreateTargetGroup::operation_runtime_plugins(
95 self.handle.runtime_plugins.clone(),
96 &self.handle.conf,
97 self.config_override,
98 );
99 crate::operation::create_target_group::CreateTargetGroup::orchestrate(&runtime_plugins, input).await
100 }
101
102 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
103 pub fn customize(
104 self,
105 ) -> crate::client::customize::CustomizableOperation<
106 crate::operation::create_target_group::CreateTargetGroupOutput,
107 crate::operation::create_target_group::CreateTargetGroupError,
108 Self,
109 > {
110 crate::client::customize::CustomizableOperation::new(self)
111 }
112 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
113 self.set_config_override(::std::option::Option::Some(config_override.into()));
114 self
115 }
116
117 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
118 self.config_override = config_override;
119 self
120 }
121 /// <p>The name of the target group.</p>
122 /// <p>This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.</p>
123 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
124 self.inner = self.inner.name(input.into());
125 self
126 }
127 /// <p>The name of the target group.</p>
128 /// <p>This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.</p>
129 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
130 self.inner = self.inner.set_name(input);
131 self
132 }
133 /// <p>The name of the target group.</p>
134 /// <p>This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.</p>
135 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
136 self.inner.get_name()
137 }
138 /// <p>The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply.</p>
139 pub fn protocol(mut self, input: crate::types::ProtocolEnum) -> Self {
140 self.inner = self.inner.protocol(input);
141 self
142 }
143 /// <p>The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply.</p>
144 pub fn set_protocol(mut self, input: ::std::option::Option<crate::types::ProtocolEnum>) -> Self {
145 self.inner = self.inner.set_protocol(input);
146 self
147 }
148 /// <p>The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply.</p>
149 pub fn get_protocol(&self) -> &::std::option::Option<crate::types::ProtocolEnum> {
150 self.inner.get_protocol()
151 }
152 /// <p>\[HTTP/HTTPS protocol\] The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1.</p>
153 pub fn protocol_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
154 self.inner = self.inner.protocol_version(input.into());
155 self
156 }
157 /// <p>\[HTTP/HTTPS protocol\] The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1.</p>
158 pub fn set_protocol_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
159 self.inner = self.inner.set_protocol_version(input);
160 self
161 }
162 /// <p>\[HTTP/HTTPS protocol\] The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1.</p>
163 pub fn get_protocol_version(&self) -> &::std::option::Option<::std::string::String> {
164 self.inner.get_protocol_version()
165 }
166 /// <p>The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is GENEVE, the supported port is 6081.</p>
167 pub fn port(mut self, input: i32) -> Self {
168 self.inner = self.inner.port(input);
169 self
170 }
171 /// <p>The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is GENEVE, the supported port is 6081.</p>
172 pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
173 self.inner = self.inner.set_port(input);
174 self
175 }
176 /// <p>The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is GENEVE, the supported port is 6081.</p>
177 pub fn get_port(&self) -> &::std::option::Option<i32> {
178 self.inner.get_port()
179 }
180 /// <p>The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply. Otherwise, this parameter is required.</p>
181 pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
182 self.inner = self.inner.vpc_id(input.into());
183 self
184 }
185 /// <p>The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply. Otherwise, this parameter is required.</p>
186 pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
187 self.inner = self.inner.set_vpc_id(input);
188 self
189 }
190 /// <p>The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply. Otherwise, this parameter is required.</p>
191 pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
192 self.inner.get_vpc_id()
193 }
194 /// <p>The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.</p>
195 pub fn health_check_protocol(mut self, input: crate::types::ProtocolEnum) -> Self {
196 self.inner = self.inner.health_check_protocol(input);
197 self
198 }
199 /// <p>The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.</p>
200 pub fn set_health_check_protocol(mut self, input: ::std::option::Option<crate::types::ProtocolEnum>) -> Self {
201 self.inner = self.inner.set_health_check_protocol(input);
202 self
203 }
204 /// <p>The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.</p>
205 pub fn get_health_check_protocol(&self) -> &::std::option::Option<crate::types::ProtocolEnum> {
206 self.inner.get_health_check_protocol()
207 }
208 /// <p>The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, TLS, UDP, or TCP_UDP, the default is <code>traffic-port</code>, which is the port on which each target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80.</p>
209 pub fn health_check_port(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
210 self.inner = self.inner.health_check_port(input.into());
211 self
212 }
213 /// <p>The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, TLS, UDP, or TCP_UDP, the default is <code>traffic-port</code>, which is the port on which each target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80.</p>
214 pub fn set_health_check_port(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
215 self.inner = self.inner.set_health_check_port(input);
216 self
217 }
218 /// <p>The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, TLS, UDP, or TCP_UDP, the default is <code>traffic-port</code>, which is the port on which each target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80.</p>
219 pub fn get_health_check_port(&self) -> &::std::option::Option<::std::string::String> {
220 self.inner.get_health_check_port()
221 }
222 /// <p>Indicates whether health checks are enabled. If the target type is <code>lambda</code>, health checks are disabled by default but can be enabled. If the target type is <code>instance</code>, <code>ip</code>, or <code>alb</code>, health checks are always enabled and can't be disabled.</p>
223 pub fn health_check_enabled(mut self, input: bool) -> Self {
224 self.inner = self.inner.health_check_enabled(input);
225 self
226 }
227 /// <p>Indicates whether health checks are enabled. If the target type is <code>lambda</code>, health checks are disabled by default but can be enabled. If the target type is <code>instance</code>, <code>ip</code>, or <code>alb</code>, health checks are always enabled and can't be disabled.</p>
228 pub fn set_health_check_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
229 self.inner = self.inner.set_health_check_enabled(input);
230 self
231 }
232 /// <p>Indicates whether health checks are enabled. If the target type is <code>lambda</code>, health checks are disabled by default but can be enabled. If the target type is <code>instance</code>, <code>ip</code>, or <code>alb</code>, health checks are always enabled and can't be disabled.</p>
233 pub fn get_health_check_enabled(&self) -> &::std::option::Option<bool> {
234 self.inner.get_health_check_enabled()
235 }
236 /// <p>\[HTTP/HTTPS health checks\] The destination for health checks on the targets.</p>
237 /// <p>\[HTTP1 or HTTP2 protocol version\] The ping path. The default is /.</p>
238 /// <p>\[GRPC protocol version\] The path of a custom health check method with the format /package.service/method. The default is /Amazon Web Services.ALB/healthcheck.</p>
239 pub fn health_check_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
240 self.inner = self.inner.health_check_path(input.into());
241 self
242 }
243 /// <p>\[HTTP/HTTPS health checks\] The destination for health checks on the targets.</p>
244 /// <p>\[HTTP1 or HTTP2 protocol version\] The ping path. The default is /.</p>
245 /// <p>\[GRPC protocol version\] The path of a custom health check method with the format /package.service/method. The default is /Amazon Web Services.ALB/healthcheck.</p>
246 pub fn set_health_check_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
247 self.inner = self.inner.set_health_check_path(input);
248 self
249 }
250 /// <p>\[HTTP/HTTPS health checks\] The destination for health checks on the targets.</p>
251 /// <p>\[HTTP1 or HTTP2 protocol version\] The ping path. The default is /.</p>
252 /// <p>\[GRPC protocol version\] The path of a custom health check method with the format /package.service/method. The default is /Amazon Web Services.ALB/healthcheck.</p>
253 pub fn get_health_check_path(&self) -> &::std::option::Option<::std::string::String> {
254 self.inner.get_health_check_path()
255 }
256 /// <p>The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is <code>lambda</code>, the default is 35 seconds.</p>
257 pub fn health_check_interval_seconds(mut self, input: i32) -> Self {
258 self.inner = self.inner.health_check_interval_seconds(input);
259 self
260 }
261 /// <p>The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is <code>lambda</code>, the default is 35 seconds.</p>
262 pub fn set_health_check_interval_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
263 self.inner = self.inner.set_health_check_interval_seconds(input);
264 self
265 }
266 /// <p>The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is <code>lambda</code>, the default is 35 seconds.</p>
267 pub fn get_health_check_interval_seconds(&self) -> &::std::option::Option<i32> {
268 self.inner.get_health_check_interval_seconds()
269 }
270 /// <p>The amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is <code>lambda</code>, the default is 30 seconds.</p>
271 pub fn health_check_timeout_seconds(mut self, input: i32) -> Self {
272 self.inner = self.inner.health_check_timeout_seconds(input);
273 self
274 }
275 /// <p>The amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is <code>lambda</code>, the default is 30 seconds.</p>
276 pub fn set_health_check_timeout_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
277 self.inner = self.inner.set_health_check_timeout_seconds(input);
278 self
279 }
280 /// <p>The amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is <code>lambda</code>, the default is 30 seconds.</p>
281 pub fn get_health_check_timeout_seconds(&self) -> &::std::option::Option<i32> {
282 self.inner.get_health_check_timeout_seconds()
283 }
284 /// <p>The number of consecutive health check successes required before considering a target healthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a protocol of GENEVE, the default is 5. If the target type is <code>lambda</code>, the default is 5.</p>
285 pub fn healthy_threshold_count(mut self, input: i32) -> Self {
286 self.inner = self.inner.healthy_threshold_count(input);
287 self
288 }
289 /// <p>The number of consecutive health check successes required before considering a target healthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a protocol of GENEVE, the default is 5. If the target type is <code>lambda</code>, the default is 5.</p>
290 pub fn set_healthy_threshold_count(mut self, input: ::std::option::Option<i32>) -> Self {
291 self.inner = self.inner.set_healthy_threshold_count(input);
292 self
293 }
294 /// <p>The number of consecutive health check successes required before considering a target healthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a protocol of GENEVE, the default is 5. If the target type is <code>lambda</code>, the default is 5.</p>
295 pub fn get_healthy_threshold_count(&self) -> &::std::option::Option<i32> {
296 self.inner.get_healthy_threshold_count()
297 }
298 /// <p>The number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups with a protocol of GENEVE, the default is 2. If the target type is <code>lambda</code>, the default is 5.</p>
299 pub fn unhealthy_threshold_count(mut self, input: i32) -> Self {
300 self.inner = self.inner.unhealthy_threshold_count(input);
301 self
302 }
303 /// <p>The number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups with a protocol of GENEVE, the default is 2. If the target type is <code>lambda</code>, the default is 5.</p>
304 pub fn set_unhealthy_threshold_count(mut self, input: ::std::option::Option<i32>) -> Self {
305 self.inner = self.inner.set_unhealthy_threshold_count(input);
306 self
307 }
308 /// <p>The number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups with a protocol of GENEVE, the default is 2. If the target type is <code>lambda</code>, the default is 5.</p>
309 pub fn get_unhealthy_threshold_count(&self) -> &::std::option::Option<i32> {
310 self.inner.get_unhealthy_threshold_count()
311 }
312 /// <p>\[HTTP/HTTPS health checks\] The HTTP or gRPC codes to use when checking for a successful response from a target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is 200-399.</p>
313 pub fn matcher(mut self, input: crate::types::Matcher) -> Self {
314 self.inner = self.inner.matcher(input);
315 self
316 }
317 /// <p>\[HTTP/HTTPS health checks\] The HTTP or gRPC codes to use when checking for a successful response from a target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is 200-399.</p>
318 pub fn set_matcher(mut self, input: ::std::option::Option<crate::types::Matcher>) -> Self {
319 self.inner = self.inner.set_matcher(input);
320 self
321 }
322 /// <p>\[HTTP/HTTPS health checks\] The HTTP or gRPC codes to use when checking for a successful response from a target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is 200-399.</p>
323 pub fn get_matcher(&self) -> &::std::option::Option<crate::types::Matcher> {
324 self.inner.get_matcher()
325 }
326 /// <p>The type of target that you must specify when registering targets with this target group. You can't specify targets for a target group using more than one target type.</p>
327 /// <ul>
328 /// <li>
329 /// <p><code>instance</code> - Register targets by instance ID. This is the default value.</p></li>
330 /// <li>
331 /// <p><code>ip</code> - Register targets by IP address. You can specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.</p></li>
332 /// <li>
333 /// <p><code>lambda</code> - Register a single Lambda function as a target.</p></li>
334 /// <li>
335 /// <p><code>alb</code> - Register a single Application Load Balancer as a target.</p></li>
336 /// </ul>
337 pub fn target_type(mut self, input: crate::types::TargetTypeEnum) -> Self {
338 self.inner = self.inner.target_type(input);
339 self
340 }
341 /// <p>The type of target that you must specify when registering targets with this target group. You can't specify targets for a target group using more than one target type.</p>
342 /// <ul>
343 /// <li>
344 /// <p><code>instance</code> - Register targets by instance ID. This is the default value.</p></li>
345 /// <li>
346 /// <p><code>ip</code> - Register targets by IP address. You can specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.</p></li>
347 /// <li>
348 /// <p><code>lambda</code> - Register a single Lambda function as a target.</p></li>
349 /// <li>
350 /// <p><code>alb</code> - Register a single Application Load Balancer as a target.</p></li>
351 /// </ul>
352 pub fn set_target_type(mut self, input: ::std::option::Option<crate::types::TargetTypeEnum>) -> Self {
353 self.inner = self.inner.set_target_type(input);
354 self
355 }
356 /// <p>The type of target that you must specify when registering targets with this target group. You can't specify targets for a target group using more than one target type.</p>
357 /// <ul>
358 /// <li>
359 /// <p><code>instance</code> - Register targets by instance ID. This is the default value.</p></li>
360 /// <li>
361 /// <p><code>ip</code> - Register targets by IP address. You can specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.</p></li>
362 /// <li>
363 /// <p><code>lambda</code> - Register a single Lambda function as a target.</p></li>
364 /// <li>
365 /// <p><code>alb</code> - Register a single Application Load Balancer as a target.</p></li>
366 /// </ul>
367 pub fn get_target_type(&self) -> &::std::option::Option<crate::types::TargetTypeEnum> {
368 self.inner.get_target_type()
369 }
370 ///
371 /// Appends an item to `Tags`.
372 ///
373 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
374 ///
375 /// <p>The tags to assign to the target group.</p>
376 pub fn tags(mut self, input: crate::types::Tag) -> Self {
377 self.inner = self.inner.tags(input);
378 self
379 }
380 /// <p>The tags to assign to the target group.</p>
381 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
382 self.inner = self.inner.set_tags(input);
383 self
384 }
385 /// <p>The tags to assign to the target group.</p>
386 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
387 self.inner.get_tags()
388 }
389 /// <p>The IP address type. The default value is <code>ipv4</code>.</p>
390 pub fn ip_address_type(mut self, input: crate::types::TargetGroupIpAddressTypeEnum) -> Self {
391 self.inner = self.inner.ip_address_type(input);
392 self
393 }
394 /// <p>The IP address type. The default value is <code>ipv4</code>.</p>
395 pub fn set_ip_address_type(mut self, input: ::std::option::Option<crate::types::TargetGroupIpAddressTypeEnum>) -> Self {
396 self.inner = self.inner.set_ip_address_type(input);
397 self
398 }
399 /// <p>The IP address type. The default value is <code>ipv4</code>.</p>
400 pub fn get_ip_address_type(&self) -> &::std::option::Option<crate::types::TargetGroupIpAddressTypeEnum> {
401 self.inner.get_ip_address_type()
402 }
403}