def __init__(__self__, *, target: Optional[pulumi.Input[str]]=None, type: Optional[pulumi.Input['SecurityPolicyRuleRedirectOptionsType']]=None):
    "\n        :param pulumi.Input[str] target: Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.\n        :param pulumi.Input['SecurityPolicyRuleRedirectOptionsType'] type: Type of the redirect action.\n        "
    if (target is not None):
        pulumi.set(__self__, 'target', target)
    if (type is not None):
        pulumi.set(__self__, 'type', type)
:param pulumi.Input[str] target: Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
:param pulumi.Input['SecurityPolicyRuleRedirectOptionsType'] type: Type of the redirect action.
def __init__(__self__, *, target: Optional[pulumi.Input[str]]=None, type: Optional[pulumi.Input['SecurityPolicyRuleRedirectOptionsType']]=None):
    "\n        :param pulumi.Input[str] target: Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.\n        :param pulumi.Input['SecurityPolicyRuleRedirectOptionsType'] type: Type of the redirect action.\n        "
    if (target is not None):
        pulumi.set(__self__, 'target', target)
    if (type is not None):
        pulumi.set(__self__, 'type', type)