@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:17.544Z") @Stability(value=Stable) public class CfnListenerRule extends CfnResource implements IInspectable
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.elasticloadbalancingv2.*;
CfnListenerRule cfnListenerRule = CfnListenerRule.Builder.create(this, "MyCfnListenerRule")
.actions(List.of(ActionProperty.builder()
.type("type")
// the properties below are optional
.authenticateCognitoConfig(AuthenticateCognitoConfigProperty.builder()
.userPoolArn("userPoolArn")
.userPoolClientId("userPoolClientId")
.userPoolDomain("userPoolDomain")
// the properties below are optional
.authenticationRequestExtraParams(Map.of(
"authenticationRequestExtraParamsKey", "authenticationRequestExtraParams"))
.onUnauthenticatedRequest("onUnauthenticatedRequest")
.scope("scope")
.sessionCookieName("sessionCookieName")
.sessionTimeout(123)
.build())
.authenticateOidcConfig(AuthenticateOidcConfigProperty.builder()
.authorizationEndpoint("authorizationEndpoint")
.clientId("clientId")
.clientSecret("clientSecret")
.issuer("issuer")
.tokenEndpoint("tokenEndpoint")
.userInfoEndpoint("userInfoEndpoint")
// the properties below are optional
.authenticationRequestExtraParams(Map.of(
"authenticationRequestExtraParamsKey", "authenticationRequestExtraParams"))
.onUnauthenticatedRequest("onUnauthenticatedRequest")
.scope("scope")
.sessionCookieName("sessionCookieName")
.sessionTimeout(123)
.useExistingClientSecret(false)
.build())
.fixedResponseConfig(FixedResponseConfigProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.contentType("contentType")
.messageBody("messageBody")
.build())
.forwardConfig(ForwardConfigProperty.builder()
.targetGroups(List.of(TargetGroupTupleProperty.builder()
.targetGroupArn("targetGroupArn")
.weight(123)
.build()))
.targetGroupStickinessConfig(TargetGroupStickinessConfigProperty.builder()
.durationSeconds(123)
.enabled(false)
.build())
.build())
.order(123)
.redirectConfig(RedirectConfigProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.host("host")
.path("path")
.port("port")
.protocol("protocol")
.query("query")
.build())
.targetGroupArn("targetGroupArn")
.build()))
.conditions(List.of(RuleConditionProperty.builder()
.field("field")
.hostHeaderConfig(HostHeaderConfigProperty.builder()
.values(List.of("values"))
.build())
.httpHeaderConfig(HttpHeaderConfigProperty.builder()
.httpHeaderName("httpHeaderName")
.values(List.of("values"))
.build())
.httpRequestMethodConfig(HttpRequestMethodConfigProperty.builder()
.values(List.of("values"))
.build())
.pathPatternConfig(PathPatternConfigProperty.builder()
.values(List.of("values"))
.build())
.queryStringConfig(QueryStringConfigProperty.builder()
.values(List.of(QueryStringKeyValueProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.sourceIpConfig(SourceIpConfigProperty.builder()
.values(List.of("values"))
.build())
.values(List.of("values"))
.build()))
.listenerArn("listenerArn")
.priority(123)
.build();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnListenerRule(software.constructs.Construct scope,
String id,
CfnListenerRuleProps props)
Create a new `AWS::ElasticLoadBalancingV2::ListenerRule`.
|
protected |
CfnListenerRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnListenerRule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getActions()
`AWS::ElasticLoadBalancingV2::ListenerRule.Actions`.
|
IResolvable |
getAttrIsDefault() |
String |
getAttrRuleArn() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getConditions()
`AWS::ElasticLoadBalancingV2::ListenerRule.Conditions`.
|
String |
getListenerArn()
`AWS::ElasticLoadBalancingV2::ListenerRule.ListenerArn`.
|
Number |
getPriority()
`AWS::ElasticLoadBalancingV2::ListenerRule.Priority`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setActions(IResolvable value)
`AWS::ElasticLoadBalancingV2::ListenerRule.Actions`.
|
void |
setActions(List<Object> value)
`AWS::ElasticLoadBalancingV2::ListenerRule.Actions`.
|
void |
setConditions(IResolvable value)
`AWS::ElasticLoadBalancingV2::ListenerRule.Conditions`.
|
void |
setConditions(List<Object> value)
`AWS::ElasticLoadBalancingV2::ListenerRule.Conditions`.
|
void |
setListenerArn(String value)
`AWS::ElasticLoadBalancingV2::ListenerRule.ListenerArn`.
|
void |
setPriority(Number value)
`AWS::ElasticLoadBalancingV2::ListenerRule.Priority`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnListenerRule(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnListenerRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnListenerRule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnListenerRuleProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public Object getActions()
@Stability(value=Stable)
public void setActions(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setActions(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public IResolvable getAttrIsDefault()
@Stability(value=Stable) @NotNull public String getAttrRuleArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getConditions()
@Stability(value=Stable)
public void setConditions(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setConditions(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public String getListenerArn()
@Stability(value=Stable)
public void setListenerArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public Number getPriority()
@Stability(value=Stable)
public void setPriority(@NotNull
Number value)
Copyright © 2021. All rights reserved.