Class CfnListener.ActionProperty
Specifies an action for a listener rule.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class ActionProperty : Object, CfnListener.IActionProperty
Syntax (vb)
Public Class ActionProperty
Inherits Object
Implements CfnListener.IActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
var actionProperty = new ActionProperty {
Type = "type",
// the properties below are optional
AuthenticateCognitoConfig = new AuthenticateCognitoConfigProperty {
UserPoolArn = "userPoolArn",
UserPoolClientId = "userPoolClientId",
UserPoolDomain = "userPoolDomain",
// the properties below are optional
AuthenticationRequestExtraParams = new Dictionary<string, string> {
{ "authenticationRequestExtraParamsKey", "authenticationRequestExtraParams" }
},
OnUnauthenticatedRequest = "onUnauthenticatedRequest",
Scope = "scope",
SessionCookieName = "sessionCookieName",
SessionTimeout = "sessionTimeout"
},
AuthenticateOidcConfig = new AuthenticateOidcConfigProperty {
AuthorizationEndpoint = "authorizationEndpoint",
ClientId = "clientId",
Issuer = "issuer",
TokenEndpoint = "tokenEndpoint",
UserInfoEndpoint = "userInfoEndpoint",
// the properties below are optional
AuthenticationRequestExtraParams = new Dictionary<string, string> {
{ "authenticationRequestExtraParamsKey", "authenticationRequestExtraParams" }
},
ClientSecret = "clientSecret",
OnUnauthenticatedRequest = "onUnauthenticatedRequest",
Scope = "scope",
SessionCookieName = "sessionCookieName",
SessionTimeout = "sessionTimeout",
UseExistingClientSecret = false
},
FixedResponseConfig = new FixedResponseConfigProperty {
StatusCode = "statusCode",
// the properties below are optional
ContentType = "contentType",
MessageBody = "messageBody"
},
ForwardConfig = new ForwardConfigProperty {
TargetGroups = new [] { new TargetGroupTupleProperty {
TargetGroupArn = "targetGroupArn",
Weight = 123
} },
TargetGroupStickinessConfig = new TargetGroupStickinessConfigProperty {
DurationSeconds = 123,
Enabled = false
}
},
Order = 123,
RedirectConfig = new RedirectConfigProperty {
StatusCode = "statusCode",
// the properties below are optional
Host = "host",
Path = "path",
Port = "port",
Protocol = "protocol",
Query = "query"
},
TargetGroupArn = "targetGroupArn"
};
Synopsis
Constructors
ActionProperty() |
Properties
AuthenticateCognitoConfig | [HTTPS listeners] Information for using Amazon Cognito to authenticate users. |
AuthenticateOidcConfig | [HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). |
FixedResponseConfig | [Application Load Balancer] Information for creating an action that returns a custom HTTP response. |
ForwardConfig | Information for creating an action that distributes requests among one or more target groups. |
Order | The order for the action. |
RedirectConfig | [Application Load Balancer] Information for creating a redirect action. |
TargetGroupArn | The Amazon Resource Name (ARN) of the target group. |
Type | The type of action. |
Constructors
ActionProperty()
public ActionProperty()
Properties
AuthenticateCognitoConfig
[HTTPS listeners] Information for using Amazon Cognito to authenticate users.
public object AuthenticateCognitoConfig { get; set; }
Property Value
System.Object
Remarks
Specify only when Type
is authenticate-cognito
.
AuthenticateOidcConfig
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).
public object AuthenticateOidcConfig { get; set; }
Property Value
System.Object
Remarks
Specify only when Type
is authenticate-oidc
.
FixedResponseConfig
[Application Load Balancer] Information for creating an action that returns a custom HTTP response.
public object FixedResponseConfig { get; set; }
Property Value
System.Object
Remarks
Specify only when Type
is fixed-response
.
ForwardConfig
Information for creating an action that distributes requests among one or more target groups.
public object ForwardConfig { get; set; }
Property Value
System.Object
Remarks
For Network Load Balancers, you can specify a single target group. Specify only when Type
is forward
. If you specify both ForwardConfig
and TargetGroupArn
, you can specify only one target group using ForwardConfig
and it must be the same target group specified in TargetGroupArn
.
Order
The order for the action.
public Nullable<double> Order { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This value is required for rules with multiple actions. The action with the lowest value for order is performed first.
RedirectConfig
[Application Load Balancer] Information for creating a redirect action.
public object RedirectConfig { get; set; }
Property Value
System.Object
Remarks
TargetGroupArn
The Amazon Resource Name (ARN) of the target group.
public string TargetGroupArn { get; set; }
Property Value
System.String
Remarks
Specify only when Type
is forward
and you want to route to a single target group. To route to one or more target groups, use ForwardConfig
instead.
Type
The type of action.
public string Type { get; set; }
Property Value
System.String