1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustLocalFallbackDomain
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

cloudflare.ZeroTrustLocalFallbackDomain

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi

    Provides a Cloudflare Fallback Domain resource. Fallback domains are used to ignore DNS requests to a given list of domains. These DNS requests will be passed back to other DNS servers configured on existing network interfaces on the device.

    Create ZeroTrustLocalFallbackDomain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ZeroTrustLocalFallbackDomain(name: string, args: ZeroTrustLocalFallbackDomainArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustLocalFallbackDomain(resource_name: str,
                                     args: ZeroTrustLocalFallbackDomainArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustLocalFallbackDomain(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     account_id: Optional[str] = None,
                                     domains: Optional[Sequence[ZeroTrustLocalFallbackDomainDomainArgs]] = None,
                                     policy_id: Optional[str] = None)
    func NewZeroTrustLocalFallbackDomain(ctx *Context, name string, args ZeroTrustLocalFallbackDomainArgs, opts ...ResourceOption) (*ZeroTrustLocalFallbackDomain, error)
    public ZeroTrustLocalFallbackDomain(string name, ZeroTrustLocalFallbackDomainArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustLocalFallbackDomain(String name, ZeroTrustLocalFallbackDomainArgs args)
    public ZeroTrustLocalFallbackDomain(String name, ZeroTrustLocalFallbackDomainArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustLocalFallbackDomain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ZeroTrustLocalFallbackDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ZeroTrustLocalFallbackDomainArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ZeroTrustLocalFallbackDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustLocalFallbackDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustLocalFallbackDomainArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var zeroTrustLocalFallbackDomainResource = new Cloudflare.ZeroTrustLocalFallbackDomain("zeroTrustLocalFallbackDomainResource", new()
    {
        AccountId = "string",
        Domains = new[]
        {
            new Cloudflare.Inputs.ZeroTrustLocalFallbackDomainDomainArgs
            {
                Description = "string",
                DnsServers = new[]
                {
                    "string",
                },
                Suffix = "string",
            },
        },
        PolicyId = "string",
    });
    
    example, err := cloudflare.NewZeroTrustLocalFallbackDomain(ctx, "zeroTrustLocalFallbackDomainResource", &cloudflare.ZeroTrustLocalFallbackDomainArgs{
    	AccountId: pulumi.String("string"),
    	Domains: cloudflare.ZeroTrustLocalFallbackDomainDomainArray{
    		&cloudflare.ZeroTrustLocalFallbackDomainDomainArgs{
    			Description: pulumi.String("string"),
    			DnsServers: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Suffix: pulumi.String("string"),
    		},
    	},
    	PolicyId: pulumi.String("string"),
    })
    
    var zeroTrustLocalFallbackDomainResource = new ZeroTrustLocalFallbackDomain("zeroTrustLocalFallbackDomainResource", ZeroTrustLocalFallbackDomainArgs.builder()
        .accountId("string")
        .domains(ZeroTrustLocalFallbackDomainDomainArgs.builder()
            .description("string")
            .dnsServers("string")
            .suffix("string")
            .build())
        .policyId("string")
        .build());
    
    zero_trust_local_fallback_domain_resource = cloudflare.ZeroTrustLocalFallbackDomain("zeroTrustLocalFallbackDomainResource",
        account_id="string",
        domains=[cloudflare.ZeroTrustLocalFallbackDomainDomainArgs(
            description="string",
            dns_servers=["string"],
            suffix="string",
        )],
        policy_id="string")
    
    const zeroTrustLocalFallbackDomainResource = new cloudflare.ZeroTrustLocalFallbackDomain("zeroTrustLocalFallbackDomainResource", {
        accountId: "string",
        domains: [{
            description: "string",
            dnsServers: ["string"],
            suffix: "string",
        }],
        policyId: "string",
    });
    
    type: cloudflare:ZeroTrustLocalFallbackDomain
    properties:
        accountId: string
        domains:
            - description: string
              dnsServers:
                - string
              suffix: string
        policyId: string
    

    ZeroTrustLocalFallbackDomain Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ZeroTrustLocalFallbackDomain resource accepts the following input properties:

    AccountId string
    The account identifier to target for the resource.
    Domains List<ZeroTrustLocalFallbackDomainDomain>
    PolicyId string
    The settings policy for which to configure this fallback domain policy.
    AccountId string
    The account identifier to target for the resource.
    Domains []ZeroTrustLocalFallbackDomainDomainArgs
    PolicyId string
    The settings policy for which to configure this fallback domain policy.
    accountId String
    The account identifier to target for the resource.
    domains List<ZeroTrustLocalFallbackDomainDomain>
    policyId String
    The settings policy for which to configure this fallback domain policy.
    accountId string
    The account identifier to target for the resource.
    domains ZeroTrustLocalFallbackDomainDomain[]
    policyId string
    The settings policy for which to configure this fallback domain policy.
    account_id str
    The account identifier to target for the resource.
    domains Sequence[ZeroTrustLocalFallbackDomainDomainArgs]
    policy_id str
    The settings policy for which to configure this fallback domain policy.
    accountId String
    The account identifier to target for the resource.
    domains List<Property Map>
    policyId String
    The settings policy for which to configure this fallback domain policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ZeroTrustLocalFallbackDomain resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ZeroTrustLocalFallbackDomain Resource

    Get an existing ZeroTrustLocalFallbackDomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ZeroTrustLocalFallbackDomainState, opts?: CustomResourceOptions): ZeroTrustLocalFallbackDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            domains: Optional[Sequence[ZeroTrustLocalFallbackDomainDomainArgs]] = None,
            policy_id: Optional[str] = None) -> ZeroTrustLocalFallbackDomain
    func GetZeroTrustLocalFallbackDomain(ctx *Context, name string, id IDInput, state *ZeroTrustLocalFallbackDomainState, opts ...ResourceOption) (*ZeroTrustLocalFallbackDomain, error)
    public static ZeroTrustLocalFallbackDomain Get(string name, Input<string> id, ZeroTrustLocalFallbackDomainState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustLocalFallbackDomain get(String name, Output<String> id, ZeroTrustLocalFallbackDomainState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    The account identifier to target for the resource.
    Domains List<ZeroTrustLocalFallbackDomainDomain>
    PolicyId string
    The settings policy for which to configure this fallback domain policy.
    AccountId string
    The account identifier to target for the resource.
    Domains []ZeroTrustLocalFallbackDomainDomainArgs
    PolicyId string
    The settings policy for which to configure this fallback domain policy.
    accountId String
    The account identifier to target for the resource.
    domains List<ZeroTrustLocalFallbackDomainDomain>
    policyId String
    The settings policy for which to configure this fallback domain policy.
    accountId string
    The account identifier to target for the resource.
    domains ZeroTrustLocalFallbackDomainDomain[]
    policyId string
    The settings policy for which to configure this fallback domain policy.
    account_id str
    The account identifier to target for the resource.
    domains Sequence[ZeroTrustLocalFallbackDomainDomainArgs]
    policy_id str
    The settings policy for which to configure this fallback domain policy.
    accountId String
    The account identifier to target for the resource.
    domains List<Property Map>
    policyId String
    The settings policy for which to configure this fallback domain policy.

    Supporting Types

    ZeroTrustLocalFallbackDomainDomain, ZeroTrustLocalFallbackDomainDomainArgs

    Description string
    A description of the fallback domain, displayed in the client UI.
    DnsServers List<string>
    A list of IP addresses to handle domain resolution.
    Suffix string
    The domain suffix to match when resolving locally.
    Description string
    A description of the fallback domain, displayed in the client UI.
    DnsServers []string
    A list of IP addresses to handle domain resolution.
    Suffix string
    The domain suffix to match when resolving locally.
    description String
    A description of the fallback domain, displayed in the client UI.
    dnsServers List<String>
    A list of IP addresses to handle domain resolution.
    suffix String
    The domain suffix to match when resolving locally.
    description string
    A description of the fallback domain, displayed in the client UI.
    dnsServers string[]
    A list of IP addresses to handle domain resolution.
    suffix string
    The domain suffix to match when resolving locally.
    description str
    A description of the fallback domain, displayed in the client UI.
    dns_servers Sequence[str]
    A list of IP addresses to handle domain resolution.
    suffix str
    The domain suffix to match when resolving locally.
    description String
    A description of the fallback domain, displayed in the client UI.
    dnsServers List<String>
    A list of IP addresses to handle domain resolution.
    suffix String
    The domain suffix to match when resolving locally.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v5.39.1 published on Tuesday, Sep 24, 2024 by Pulumi