معرفی شرکت ها


aws-cdk.aws-elasticloadbalancingv2-actions-1.99.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Integration actions for AWS ElasticLoadBalancingV2
ویژگی مقدار
سیستم عامل -
نام فایل aws-cdk.aws-elasticloadbalancingv2-actions-1.99.0
نام aws-cdk.aws-elasticloadbalancingv2-actions
نسخه کتابخانه 1.99.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Amazon Web Services
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/aws/aws-cdk
آدرس اینترنتی https://pypi.org/project/aws-cdk.aws-elasticloadbalancingv2-actions/
مجوز Apache-2.0
# Actions for AWS Elastic Load Balancing V2 <!--BEGIN STABILITY BANNER-->--- ![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge) --- <!--END STABILITY BANNER--> This package contains integration actions for ELBv2. See the README of the `@aws-cdk/aws-elasticloadbalancingv2` library. ## Cognito ELB allows for requests to be authenticated against a Cognito user pool using the `AuthenticateCognitoAction`. For details on the setup's requirements, read [Prepare to use Amazon Cognito](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-authenticate-users.html#cognito-requirements). Here's an example: ```python import aws_cdk.aws_cognito as cognito import aws_cdk.aws_ec2 as ec2 import aws_cdk.aws_elasticloadbalancingv2 as elbv2 from aws_cdk.core import App, CfnOutput, Stack from constructs import Construct import aws_cdk.aws_elasticloadbalancingv2_actions as actions Stack): lb = elbv2.ApplicationLoadBalancer(self, "LB", vpc=vpc, internet_facing=True ) user_pool = cognito.UserPool(self, "UserPool") user_pool_client = cognito.UserPoolClient(self, "Client", user_pool=user_pool, # Required minimal configuration for use with an ELB generate_secret=True, auth_flows=cognito.AuthFlow( user_password=True ), o_auth=cognito.OAuthSettings( flows=cognito.OAuthFlows( authorization_code_grant=True ), scopes=[cognito.OAuthScope.EMAIL], callback_urls=[f"https://{lb.loadBalancerDnsName}/oauth2/idpresponse" ] ) ) cfn_client = user_pool_client.node.default_child cfn_client.add_property_override("RefreshTokenValidity", 1) cfn_client.add_property_override("SupportedIdentityProviders", ["COGNITO"]) user_pool_domain = cognito.UserPoolDomain(self, "Domain", user_pool=user_pool, cognito_domain=cognito.CognitoDomainOptions( domain_prefix="test-cdk-prefix" ) ) lb.add_listener("Listener", port=443, certificates=[certificate], default_action=actions.AuthenticateCognitoAction( user_pool=user_pool, user_pool_client=user_pool_client, user_pool_domain=user_pool_domain, next=elbv2.ListenerAction.fixed_response(200, content_type="text/plain", message_body="Authenticated" ) ) ) CfnOutput(self, "DNS", value=lb.load_balancer_dns_name ) app = App() CognitoStack(app, "integ-cognito") app.synth() ``` > NOTE: this example seems incomplete, I was not able to get the redirect back to the > Load Balancer after authentication working. Would love some pointers on what a full working > setup actually looks like!


نیازمندی

مقدار نام
==1.200.0 aws-cdk.aws-cognito
==1.200.0 aws-cdk.aws-ec2
==1.200.0 aws-cdk.aws-elasticloadbalancingv2
==1.200.0 aws-cdk.aws-iam
==1.200.0 aws-cdk.core
<4.0.0,>=3.3.69 constructs
<2.0.0,>=1.74.0 jsii
>=0.0.3 publication
~=2.13.3 typeguard


زبان مورد نیاز

مقدار نام
~=3.7 Python


نحوه نصب


نصب پکیج whl aws-cdk.aws-elasticloadbalancingv2-actions-1.99.0:

    pip install aws-cdk.aws-elasticloadbalancingv2-actions-1.99.0.whl


نصب پکیج tar.gz aws-cdk.aws-elasticloadbalancingv2-actions-1.99.0:

    pip install aws-cdk.aws-elasticloadbalancingv2-actions-1.99.0.tar.gz