Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
alpn_policy: Optional[pulumi.Input[str]] = None,
certificate_arn: Optional[pulumi.Input[str]] = None,
default_actions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListenerDefaultActionArgs']]]]] = None,
load_balancer_arn: Optional[pulumi.Input[str]] = None,
port: Optional[pulumi.Input[int]] = None,
protocol: Optional[pulumi.Input[str]] = None,
ssl_policy: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
__props__=None):
pulumi.log.warn("""Listener is deprecated: aws.elasticloadbalancingv2.Listener has been deprecated in favor of aws.lb.Listener""")
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ListenerArgs.__new__(ListenerArgs)
__props__.__dict__["alpn_policy"] = alpn_policy
__props__.__dict__["certificate_arn"] = certificate_arn
if default_actions is None and not opts.urn:
raise TypeError("Missing required property 'default_actions'")
__props__.__dict__["default_actions"] = default_actions
def __key_warning(key: str):
suggest = None
if key == "authorizedNetworks":
suggest = "authorized_networks"
elif key == "enableIpv4":
suggest = "enable_ipv4"
elif key == "privateNetwork":
suggest = "private_network"
elif key == "requireSsl":
suggest = "require_ssl"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in SqlIpConfigResponse. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "instanceId":
suggest = "instance_id"
elif key == "tableId":
suggest = "table_id"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BigTableIODetailsResponse. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "accessLevels":
suggest = "access_levels"
elif key == "restrictedServices":
suggest = "restricted_services"
elif key == "vpcAccessibleServices":
suggest = "vpc_accessible_services"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ServicePerimeterConfigResponse. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "changeComputeType":
suggest = "change_compute_type"
elif key == "increaseVolumeSize":
suggest = "increase_volume_size"
elif key == "rebuildWorkspace":
suggest = "rebuild_workspace"
elif key == "restartWorkspace":
suggest = "restart_workspace"
elif key == "switchRunningMode":
suggest = "switch_running_mode"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in DirectorySelfServicePermissions. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "commentControl":
suggest = "comment_control"
elif key == "invertRegex":
suggest = "invert_regex"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in PullRequestFilterResponse. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "delegationServiceAccountEmail":
suggest = "delegation_service_account_email"
elif key == "noteReference":
suggest = "note_reference"
elif key == "publicKeys":
suggest = "public_keys"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in UserOwnedGrafeasNoteResponse. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "includeExecutionData":
suggest = "include_execution_data"
elif key == "logDestination":
suggest = "log_destination"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in StateMachineLoggingConfiguration. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "availabilityZone":
suggest = "availability_zone"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ClusterCacheNode. Access the value via the '{suggest}' property getter instead.")
def __key_warning(key: str):
suggest = None
if key == "maxNumWorkers":
suggest = "max_num_workers"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in AutoscalingSettingsResponse. Access the value via the '{suggest}' property getter instead.")