cloudflare.DnsZoneTransfersIncoming
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleDnsZoneTransfersIncoming = new cloudflare.DnsZoneTransfersIncoming("example_dns_zone_transfers_incoming", {
zoneId: "269d8f4853475ca241c4e730be286b20",
autoRefreshSeconds: 86400,
name: "www.example.com.",
peers: [
"23ff594956f20c2a721606e94745a8aa",
"00920f38ce07c2e2f4df50b1f61d4194",
],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_dns_zone_transfers_incoming = cloudflare.DnsZoneTransfersIncoming("example_dns_zone_transfers_incoming",
zone_id="269d8f4853475ca241c4e730be286b20",
auto_refresh_seconds=86400,
name="www.example.com.",
peers=[
"23ff594956f20c2a721606e94745a8aa",
"00920f38ce07c2e2f4df50b1f61d4194",
])
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewDnsZoneTransfersIncoming(ctx, "example_dns_zone_transfers_incoming", &cloudflare.DnsZoneTransfersIncomingArgs{
ZoneId: pulumi.String("269d8f4853475ca241c4e730be286b20"),
AutoRefreshSeconds: pulumi.Float64(86400),
Name: pulumi.String("www.example.com."),
Peers: pulumi.StringArray{
pulumi.String("23ff594956f20c2a721606e94745a8aa"),
pulumi.String("00920f38ce07c2e2f4df50b1f61d4194"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleDnsZoneTransfersIncoming = new Cloudflare.DnsZoneTransfersIncoming("example_dns_zone_transfers_incoming", new()
{
ZoneId = "269d8f4853475ca241c4e730be286b20",
AutoRefreshSeconds = 86400,
Name = "www.example.com.",
Peers = new[]
{
"23ff594956f20c2a721606e94745a8aa",
"00920f38ce07c2e2f4df50b1f61d4194",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.DnsZoneTransfersIncoming;
import com.pulumi.cloudflare.DnsZoneTransfersIncomingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleDnsZoneTransfersIncoming = new DnsZoneTransfersIncoming("exampleDnsZoneTransfersIncoming", DnsZoneTransfersIncomingArgs.builder()
.zoneId("269d8f4853475ca241c4e730be286b20")
.autoRefreshSeconds(86400.0)
.name("www.example.com.")
.peers(
"23ff594956f20c2a721606e94745a8aa",
"00920f38ce07c2e2f4df50b1f61d4194")
.build());
}
}
resources:
exampleDnsZoneTransfersIncoming:
type: cloudflare:DnsZoneTransfersIncoming
name: example_dns_zone_transfers_incoming
properties:
zoneId: 269d8f4853475ca241c4e730be286b20
autoRefreshSeconds: 86400
name: www.example.com.
peers:
- 23ff594956f20c2a721606e94745a8aa
- 00920f38ce07c2e2f4df50b1f61d4194
Create DnsZoneTransfersIncoming Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsZoneTransfersIncoming(name: string, args: DnsZoneTransfersIncomingArgs, opts?: CustomResourceOptions);
@overload
def DnsZoneTransfersIncoming(resource_name: str,
args: DnsZoneTransfersIncomingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnsZoneTransfersIncoming(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_refresh_seconds: Optional[float] = None,
name: Optional[str] = None,
peers: Optional[Sequence[str]] = None,
zone_id: Optional[str] = None)
func NewDnsZoneTransfersIncoming(ctx *Context, name string, args DnsZoneTransfersIncomingArgs, opts ...ResourceOption) (*DnsZoneTransfersIncoming, error)
public DnsZoneTransfersIncoming(string name, DnsZoneTransfersIncomingArgs args, CustomResourceOptions? opts = null)
public DnsZoneTransfersIncoming(String name, DnsZoneTransfersIncomingArgs args)
public DnsZoneTransfersIncoming(String name, DnsZoneTransfersIncomingArgs args, CustomResourceOptions options)
type: cloudflare:DnsZoneTransfersIncoming
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 DnsZoneTransfersIncomingArgs
- 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 DnsZoneTransfersIncomingArgs
- 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 DnsZoneTransfersIncomingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsZoneTransfersIncomingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsZoneTransfersIncomingArgs
- 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 dnsZoneTransfersIncomingResource = new Cloudflare.DnsZoneTransfersIncoming("dnsZoneTransfersIncomingResource", new()
{
AutoRefreshSeconds = 0,
Name = "string",
Peers = new[]
{
"string",
},
ZoneId = "string",
});
example, err := cloudflare.NewDnsZoneTransfersIncoming(ctx, "dnsZoneTransfersIncomingResource", &cloudflare.DnsZoneTransfersIncomingArgs{
AutoRefreshSeconds: pulumi.Float64(0),
Name: pulumi.String("string"),
Peers: pulumi.StringArray{
pulumi.String("string"),
},
ZoneId: pulumi.String("string"),
})
var dnsZoneTransfersIncomingResource = new DnsZoneTransfersIncoming("dnsZoneTransfersIncomingResource", DnsZoneTransfersIncomingArgs.builder()
.autoRefreshSeconds(0)
.name("string")
.peers("string")
.zoneId("string")
.build());
dns_zone_transfers_incoming_resource = cloudflare.DnsZoneTransfersIncoming("dnsZoneTransfersIncomingResource",
auto_refresh_seconds=0,
name="string",
peers=["string"],
zone_id="string")
const dnsZoneTransfersIncomingResource = new cloudflare.DnsZoneTransfersIncoming("dnsZoneTransfersIncomingResource", {
autoRefreshSeconds: 0,
name: "string",
peers: ["string"],
zoneId: "string",
});
type: cloudflare:DnsZoneTransfersIncoming
properties:
autoRefreshSeconds: 0
name: string
peers:
- string
zoneId: string
DnsZoneTransfersIncoming Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DnsZoneTransfersIncoming resource accepts the following input properties:
- Auto
Refresh doubleSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- Name string
- Zone name.
- Peers List<string>
- A list of peer tags.
- Zone
Id string
- Auto
Refresh float64Seconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- Name string
- Zone name.
- Peers []string
- A list of peer tags.
- Zone
Id string
- auto
Refresh DoubleSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- name String
- Zone name.
- peers List<String>
- A list of peer tags.
- zone
Id String
- auto
Refresh numberSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- name string
- Zone name.
- peers string[]
- A list of peer tags.
- zone
Id string
- auto_
refresh_ floatseconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- name str
- Zone name.
- peers Sequence[str]
- A list of peer tags.
- zone_
id str
- auto
Refresh NumberSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- name String
- Zone name.
- peers List<String>
- A list of peer tags.
- zone
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsZoneTransfersIncoming resource produces the following output properties:
- Checked
Time string - The time for a specific event.
- Created
Time string - The time for a specific event.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
Time string - The time for a specific event.
- Soa
Serial double - The serial number of the SOA for the given zone.
- Checked
Time string - The time for a specific event.
- Created
Time string - The time for a specific event.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
Time string - The time for a specific event.
- Soa
Serial float64 - The serial number of the SOA for the given zone.
- checked
Time String - The time for a specific event.
- created
Time String - The time for a specific event.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
Time String - The time for a specific event.
- soa
Serial Double - The serial number of the SOA for the given zone.
- checked
Time string - The time for a specific event.
- created
Time string - The time for a specific event.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
Time string - The time for a specific event.
- soa
Serial number - The serial number of the SOA for the given zone.
- checked_
time str - The time for a specific event.
- created_
time str - The time for a specific event.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
time str - The time for a specific event.
- soa_
serial float - The serial number of the SOA for the given zone.
- checked
Time String - The time for a specific event.
- created
Time String - The time for a specific event.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
Time String - The time for a specific event.
- soa
Serial Number - The serial number of the SOA for the given zone.
Look up Existing DnsZoneTransfersIncoming Resource
Get an existing DnsZoneTransfersIncoming 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?: DnsZoneTransfersIncomingState, opts?: CustomResourceOptions): DnsZoneTransfersIncoming
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_refresh_seconds: Optional[float] = None,
checked_time: Optional[str] = None,
created_time: Optional[str] = None,
modified_time: Optional[str] = None,
name: Optional[str] = None,
peers: Optional[Sequence[str]] = None,
soa_serial: Optional[float] = None,
zone_id: Optional[str] = None) -> DnsZoneTransfersIncoming
func GetDnsZoneTransfersIncoming(ctx *Context, name string, id IDInput, state *DnsZoneTransfersIncomingState, opts ...ResourceOption) (*DnsZoneTransfersIncoming, error)
public static DnsZoneTransfersIncoming Get(string name, Input<string> id, DnsZoneTransfersIncomingState? state, CustomResourceOptions? opts = null)
public static DnsZoneTransfersIncoming get(String name, Output<String> id, DnsZoneTransfersIncomingState state, CustomResourceOptions options)
resources: _: type: cloudflare:DnsZoneTransfersIncoming get: id: ${id}
- 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.
- Auto
Refresh doubleSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- Checked
Time string - The time for a specific event.
- Created
Time string - The time for a specific event.
- Modified
Time string - The time for a specific event.
- Name string
- Zone name.
- Peers List<string>
- A list of peer tags.
- Soa
Serial double - The serial number of the SOA for the given zone.
- Zone
Id string
- Auto
Refresh float64Seconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- Checked
Time string - The time for a specific event.
- Created
Time string - The time for a specific event.
- Modified
Time string - The time for a specific event.
- Name string
- Zone name.
- Peers []string
- A list of peer tags.
- Soa
Serial float64 - The serial number of the SOA for the given zone.
- Zone
Id string
- auto
Refresh DoubleSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- checked
Time String - The time for a specific event.
- created
Time String - The time for a specific event.
- modified
Time String - The time for a specific event.
- name String
- Zone name.
- peers List<String>
- A list of peer tags.
- soa
Serial Double - The serial number of the SOA for the given zone.
- zone
Id String
- auto
Refresh numberSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- checked
Time string - The time for a specific event.
- created
Time string - The time for a specific event.
- modified
Time string - The time for a specific event.
- name string
- Zone name.
- peers string[]
- A list of peer tags.
- soa
Serial number - The serial number of the SOA for the given zone.
- zone
Id string
- auto_
refresh_ floatseconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- checked_
time str - The time for a specific event.
- created_
time str - The time for a specific event.
- modified_
time str - The time for a specific event.
- name str
- Zone name.
- peers Sequence[str]
- A list of peer tags.
- soa_
serial float - The serial number of the SOA for the given zone.
- zone_
id str
- auto
Refresh NumberSeconds - How often should a secondary zone auto refresh regardless of DNS NOTIFY. Not applicable for primary zones.
- checked
Time String - The time for a specific event.
- created
Time String - The time for a specific event.
- modified
Time String - The time for a specific event.
- name String
- Zone name.
- peers List<String>
- A list of peer tags.
- soa
Serial Number - The serial number of the SOA for the given zone.
- zone
Id String
Import
$ pulumi import cloudflare:index/dnsZoneTransfersIncoming:DnsZoneTransfersIncoming example '<zone_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.