Insight Horizon
lifestyle /

create_rule - Boto3 1.27.0 documentation

response = client.create_rule( ListenerArn='string', Conditions=[ { 'Field': 'string', 'Values': [ 'string', ], 'HostHeaderConfig': { 'Values': [ 'string', ] }, 'PathPatternConfig': { 'Values': [ 'string', ] }, 'HttpHeaderConfig': { 'HttpHeaderName': 'string', 'Values': [ 'string', ] }, 'QueryStringConfig': { 'Values': [ { 'Key': 'string', 'Value': 'string' }, ] }, 'HttpRequestMethodConfig': { 'Values': [ 'string', ] }, 'SourceIpConfig': { 'Values': [ 'string', ] } }, ], Priority=123, Actions=[ { 'Type': 'forward'|'authenticate-oidc'|'authenticate-cognito'|'redirect'|'fixed-response', 'TargetGroupArn': 'string', 'AuthenticateOidcConfig': { 'Issuer': 'string', 'AuthorizationEndpoint': 'string', 'TokenEndpoint': 'string', 'UserInfoEndpoint': 'string', 'ClientId': 'string', 'ClientSecret': 'string', 'SessionCookieName': 'string', 'Scope': 'string', 'SessionTimeout': 123, 'AuthenticationRequestExtraParams': { 'string': 'string' }, 'OnUnauthenticatedRequest': 'deny'|'allow'|'authenticate', 'UseExistingClientSecret': True|False }, 'AuthenticateCognitoConfig': { 'UserPoolArn': 'string', 'UserPoolClientId': 'string', 'UserPoolDomain': 'string', 'SessionCookieName': 'string', 'Scope': 'string', 'SessionTimeout': 123, 'AuthenticationRequestExtraParams': { 'string': 'string' }, 'OnUnauthenticatedRequest': 'deny'|'allow'|'authenticate' }, 'Order': 123, 'RedirectConfig': { 'Protocol': 'string', 'Port': 'string', 'Host': 'string', 'Path': 'string', 'Query': 'string', 'StatusCode': 'HTTP_301'|'HTTP_302' }, 'FixedResponseConfig': { 'MessageBody': 'string', 'StatusCode': 'string', 'ContentType': 'string' }, 'ForwardConfig': { 'TargetGroups': [ { 'TargetGroupArn': 'string', 'Weight': 123 }, ], 'TargetGroupStickinessConfig': { 'Enabled': True|False, 'DurationSeconds': 123 } } }, ], Tags=[ { 'Key': 'string', 'Value': 'string' }, ])