You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ElasticLoadBalancingV2::Types::Action

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb

Overview

Note:

When making an API call, you may pass Action data as a hash:

{
  type: "forward", # required, accepts forward, authenticate-oidc, authenticate-cognito, redirect, fixed-response
  target_group_arn: "TargetGroupArn",
  authenticate_oidc_config: {
    issuer: "AuthenticateOidcActionIssuer", # required
    authorization_endpoint: "AuthenticateOidcActionAuthorizationEndpoint", # required
    token_endpoint: "AuthenticateOidcActionTokenEndpoint", # required
    user_info_endpoint: "AuthenticateOidcActionUserInfoEndpoint", # required
    client_id: "AuthenticateOidcActionClientId", # required
    client_secret: "AuthenticateOidcActionClientSecret",
    session_cookie_name: "AuthenticateOidcActionSessionCookieName",
    scope: "AuthenticateOidcActionScope",
    session_timeout: 1,
    authentication_request_extra_params: {
      "AuthenticateOidcActionAuthenticationRequestParamName" => "AuthenticateOidcActionAuthenticationRequestParamValue",
    },
    on_unauthenticated_request: "deny", # accepts deny, allow, authenticate
    use_existing_client_secret: false,
  },
  authenticate_cognito_config: {
    user_pool_arn: "AuthenticateCognitoActionUserPoolArn", # required
    user_pool_client_id: "AuthenticateCognitoActionUserPoolClientId", # required
    user_pool_domain: "AuthenticateCognitoActionUserPoolDomain", # required
    session_cookie_name: "AuthenticateCognitoActionSessionCookieName",
    scope: "AuthenticateCognitoActionScope",
    session_timeout: 1,
    authentication_request_extra_params: {
      "AuthenticateCognitoActionAuthenticationRequestParamName" => "AuthenticateCognitoActionAuthenticationRequestParamValue",
    },
    on_unauthenticated_request: "deny", # accepts deny, allow, authenticate
  },
  order: 1,
  redirect_config: {
    protocol: "RedirectActionProtocol",
    port: "RedirectActionPort",
    host: "RedirectActionHost",
    path: "RedirectActionPath",
    query: "RedirectActionQuery",
    status_code: "HTTP_301", # required, accepts HTTP_301, HTTP_302
  },
  fixed_response_config: {
    message_body: "FixedResponseActionMessage",
    status_code: "FixedResponseActionStatusCode", # required
    content_type: "FixedResponseActionContentType",
  },
}

Information about an action.

Instance Attribute Summary collapse

Instance Attribute Details

#authenticate_cognito_configTypes::AuthenticateCognitoActionConfig

[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type is authenticate-cognito.



106
107
108
109
110
111
112
113
114
115
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 106

class Action < Struct.new(
  :type,
  :target_group_arn,
  :authenticate_oidc_config,
  :authenticate_cognito_config,
  :order,
  :redirect_config,
  :fixed_response_config)
  include Aws::Structure
end

#authenticate_oidc_configTypes::AuthenticateOidcActionConfig

[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when Type is authenticate-oidc.



106
107
108
109
110
111
112
113
114
115
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 106

class Action < Struct.new(
  :type,
  :target_group_arn,
  :authenticate_oidc_config,
  :authenticate_cognito_config,
  :order,
  :redirect_config,
  :fixed_response_config)
  include Aws::Structure
end

#fixed_response_configTypes::FixedResponseActionConfig

[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when Type is fixed-response.



106
107
108
109
110
111
112
113
114
115
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 106

class Action < Struct.new(
  :type,
  :target_group_arn,
  :authenticate_oidc_config,
  :authenticate_cognito_config,
  :order,
  :redirect_config,
  :fixed_response_config)
  include Aws::Structure
end

#orderInteger

The order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first. The final action to be performed must be a forward or a fixed-response action.

Returns:

  • (Integer)


106
107
108
109
110
111
112
113
114
115
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 106

class Action < Struct.new(
  :type,
  :target_group_arn,
  :authenticate_oidc_config,
  :authenticate_cognito_config,
  :order,
  :redirect_config,
  :fixed_response_config)
  include Aws::Structure
end

#redirect_configTypes::RedirectActionConfig

[Application Load Balancer] Information for creating a redirect action. Specify only when Type is redirect.



106
107
108
109
110
111
112
113
114
115
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 106

class Action < Struct.new(
  :type,
  :target_group_arn,
  :authenticate_oidc_config,
  :authenticate_cognito_config,
  :order,
  :redirect_config,
  :fixed_response_config)
  include Aws::Structure
end

#target_group_arnString

The Amazon Resource Name (ARN) of the target group. Specify only when Type is forward.

Returns:

  • (String)


106
107
108
109
110
111
112
113
114
115
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 106

class Action < Struct.new(
  :type,
  :target_group_arn,
  :authenticate_oidc_config,
  :authenticate_cognito_config,
  :order,
  :redirect_config,
  :fixed_response_config)
  include Aws::Structure
end

#typeString

The type of action. Each rule must include exactly one of the following types of actions: forward, fixed-response, or redirect.

Returns:

  • (String)


106
107
108
109
110
111
112
113
114
115
# File 'gems/aws-sdk-elasticloadbalancingv2/lib/aws-sdk-elasticloadbalancingv2/types.rb', line 106

class Action < Struct.new(
  :type,
  :target_group_arn,
  :authenticate_oidc_config,
  :authenticate_cognito_config,
  :order,
  :redirect_config,
  :fixed_response_config)
  include Aws::Structure
end