Interface CfnListenerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnListenerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)",
date="2024-05-08T21:35:14.805Z")
@Stability(Stable)
public interface CfnListenerProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnListener
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.vpclattice.*; CfnListenerProps cfnListenerProps = CfnListenerProps.builder() .defaultAction(DefaultActionProperty.builder() .fixedResponse(FixedResponseProperty.builder() .statusCode(123) .build()) .forward(ForwardProperty.builder() .targetGroups(List.of(WeightedTargetGroupProperty.builder() .targetGroupIdentifier("targetGroupIdentifier") // the properties below are optional .weight(123) .build())) .build()) .build()) .protocol("protocol") // the properties below are optional .name("name") .port(123) .serviceIdentifier("serviceIdentifier") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnListenerProps
static final class
An implementation forCfnListenerProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnListenerProps.Builder
builder()
The action for the default rule.default String
getName()
The name of the listener.default Number
getPort()
The listener port.The listener protocol.default String
The ID or Amazon Resource Name (ARN) of the service.getTags()
The tags for the listener.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefaultAction
The action for the default rule.Each listener has a default rule. The default rule is used if no other rules match.
- See Also:
-
getProtocol
The listener protocol.- See Also:
-
getName
The name of the listener.A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
- See Also:
-
getPort
The listener port.You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.
- See Also:
-
getServiceIdentifier
The ID or Amazon Resource Name (ARN) of the service.- See Also:
-
getTags
The tags for the listener.- See Also:
-
builder
- Returns:
- a
CfnListenerProps.Builder
ofCfnListenerProps
-