404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.188.79: ~ $
**Example 1: To create a rule using a path condition and a forward action**

The following ``create-rule`` example creates a rule that forwards requests to the specified target group if the URL contains the specified pattern. ::

    aws elbv2 create-rule \
        --listener-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2 \
        --priority 5 \
        --conditions file://conditions-pattern.json 
        --actions Type=forward,TargetGroupArn=arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067

Contents of ``conditions-pattern.json``::

    [
        {
            "Field": "path-pattern",
            "PathPatternConfig": {
                "Values": ["/images/*"]
            }
        }
    ]

**Example 2: To create a rule using a host condition and a fixed response**

The following ``create-rule`` example creates a rule that provides a fixed response if the hostname in the host header matches the specified hostname. ::

    aws elbv2 create-rule \
        --listener-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2 \
        --priority 10 \
        --conditions file://conditions-host.json \
        --actions file://actions-fixed-response.json

Contents of ``conditions-host.json`` ::

  [
    {
        "Field": "host-header",
        "HostHeaderConfig": {
            "Values": ["*.example.com"]
        }
    }
  ]

Contents of ``actions-fixed-response.json`` ::

    [
        {
            "Type": "fixed-response",
            "FixedResponseConfig": {
                "MessageBody": "Hello world",
                "StatusCode": "200",
                "ContentType": "text/plain"
            }
        }
    ]

**Example 3: To create a rule using a source IP address condition, an authenticate action, and a forward action**

The following ``create-rule`` example creates a rule that authenticates the user if the source IP address matches the specified IP address, and forwards the request to the specified target group if authentication is successful. :: 

    aws elbv2 create-rule \
        --listener-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2 \
        --priority 20 \
        --conditions file://conditions-source-ip.json \
        --actions file://actions-authenticate.json

Contents of ``conditions-source-ip.json`` ::

    [
        {
            "Field": "source-ip",
            "SourceIpConfig": {
                "Values": ["192.0.2.0/24", "198.51.100.10/32"]
            }
        }
    ]

Contents of ``actions-authenticate.json`` ::

    [
        {
            "Type": "authenticate-oidc",
            "AuthenticateOidcConfig": {
                "Issuer": "https://idp-issuer.com",
                "AuthorizationEndpoint": "https://authorization-endpoint.com",
                "TokenEndpoint": "https://token-endpoint.com",
                "UserInfoEndpoint": "https://user-info-endpoint.com",
                "ClientId": "abcdefghijklmnopqrstuvwxyz123456789",
                "ClientSecret": "123456789012345678901234567890",
                "SessionCookieName": "my-cookie",
                "SessionTimeout": 3600,
                "Scope": "email",
                "AuthenticationRequestExtraParams": {
                    "display": "page",
                    "prompt": "login"
                },
                "OnUnauthenticatedRequest": "deny"
            },
            "Order": 1
        },
        {
            "Type": "forward",
            "TargetGroupArn": "arn:aws:elasticloadbalancing:us-east-1:880185128111:targetgroup/cli-test/642a97ecb0e0f26b",
            "Order": 2
        }
    ]

Filemanager

Name Type Size Permission Actions
wait Folder 0755
add-listener-certificates.rst File 653 B 0644
add-tags.rst File 390 B 0644
create-listener.rst File 6.53 KB 0644
create-load-balancer.rst File 6.97 KB 0644
create-rule.rst File 3.72 KB 0644
create-target-group.rst File 5.71 KB 0644
delete-listener.rst File 281 B 0644
delete-load-balancer.rst File 293 B 0644
delete-rule.rst File 283 B 0644
delete-target-group.rst File 277 B 0644
deregister-targets.rst File 833 B 0644
describe-account-limits.rst File 1.51 KB 0644
describe-listener-certificates.rst File 895 B 0644
describe-listeners.rst File 2.71 KB 0644
describe-load-balancer-attributes.rst File 1.85 KB 0644
describe-load-balancers.rst File 1.47 KB 0644
describe-rules.rst File 727 B 0644
describe-ssl-policies.rst File 1.44 KB 0644
describe-tags.rst File 785 B 0644
describe-target-group-attributes.rst File 1.75 KB 0644
describe-target-groups.rst File 1.9 KB 0644
describe-target-health.rst File 4.18 KB 0644
modify-listener.rst File 3.72 KB 0644
modify-load-balancer-attributes.rst File 2.87 KB 0644
modify-rule.rst File 1.33 KB 0644
modify-target-group-attributes.rst File 858 B 0644
modify-target-group.rst File 1.26 KB 0644
register-targets.rst File 1.95 KB 0644
remove-listener-certificates.rst File 440 B 0644
remove-tags.rst File 367 B 0644
set-ip-address-type.rst File 459 B 0644
set-rule-priorities.rst File 1.05 KB 0644
set-security-groups.rst File 428 B 0644
set-subnets.rst File 631 B 0644