cloudflare.DnsZoneTransfersOutgoing
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleDnsZoneTransfersOutgoing = new cloudflare.DnsZoneTransfersOutgoing("example_dns_zone_transfers_outgoing", {
zoneId: "269d8f4853475ca241c4e730be286b20",
name: "www.example.com.",
peers: [
"23ff594956f20c2a721606e94745a8aa",
"00920f38ce07c2e2f4df50b1f61d4194",
],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_dns_zone_transfers_outgoing = cloudflare.DnsZoneTransfersOutgoing("example_dns_zone_transfers_outgoing",
zone_id="269d8f4853475ca241c4e730be286b20",
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.NewDnsZoneTransfersOutgoing(ctx, "example_dns_zone_transfers_outgoing", &cloudflare.DnsZoneTransfersOutgoingArgs{
ZoneId: pulumi.String("269d8f4853475ca241c4e730be286b20"),
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 exampleDnsZoneTransfersOutgoing = new Cloudflare.DnsZoneTransfersOutgoing("example_dns_zone_transfers_outgoing", new()
{
ZoneId = "269d8f4853475ca241c4e730be286b20",
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.DnsZoneTransfersOutgoing;
import com.pulumi.cloudflare.DnsZoneTransfersOutgoingArgs;
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 exampleDnsZoneTransfersOutgoing = new DnsZoneTransfersOutgoing("exampleDnsZoneTransfersOutgoing", DnsZoneTransfersOutgoingArgs.builder()
.zoneId("269d8f4853475ca241c4e730be286b20")
.name("www.example.com.")
.peers(
"23ff594956f20c2a721606e94745a8aa",
"00920f38ce07c2e2f4df50b1f61d4194")
.build());
}
}
resources:
exampleDnsZoneTransfersOutgoing:
type: cloudflare:DnsZoneTransfersOutgoing
name: example_dns_zone_transfers_outgoing
properties:
zoneId: 269d8f4853475ca241c4e730be286b20
name: www.example.com.
peers:
- 23ff594956f20c2a721606e94745a8aa
- 00920f38ce07c2e2f4df50b1f61d4194
Create DnsZoneTransfersOutgoing Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsZoneTransfersOutgoing(name: string, args: DnsZoneTransfersOutgoingArgs, opts?: CustomResourceOptions);
@overload
def DnsZoneTransfersOutgoing(resource_name: str,
args: DnsZoneTransfersOutgoingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnsZoneTransfersOutgoing(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
peers: Optional[Sequence[str]] = None,
zone_id: Optional[str] = None)
func NewDnsZoneTransfersOutgoing(ctx *Context, name string, args DnsZoneTransfersOutgoingArgs, opts ...ResourceOption) (*DnsZoneTransfersOutgoing, error)
public DnsZoneTransfersOutgoing(string name, DnsZoneTransfersOutgoingArgs args, CustomResourceOptions? opts = null)
public DnsZoneTransfersOutgoing(String name, DnsZoneTransfersOutgoingArgs args)
public DnsZoneTransfersOutgoing(String name, DnsZoneTransfersOutgoingArgs args, CustomResourceOptions options)
type: cloudflare:DnsZoneTransfersOutgoing
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 DnsZoneTransfersOutgoingArgs
- 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 DnsZoneTransfersOutgoingArgs
- 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 DnsZoneTransfersOutgoingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsZoneTransfersOutgoingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsZoneTransfersOutgoingArgs
- 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 dnsZoneTransfersOutgoingResource = new Cloudflare.DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource", new()
{
Name = "string",
Peers = new[]
{
"string",
},
ZoneId = "string",
});
example, err := cloudflare.NewDnsZoneTransfersOutgoing(ctx, "dnsZoneTransfersOutgoingResource", &cloudflare.DnsZoneTransfersOutgoingArgs{
Name: pulumi.String("string"),
Peers: pulumi.StringArray{
pulumi.String("string"),
},
ZoneId: pulumi.String("string"),
})
var dnsZoneTransfersOutgoingResource = new DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource", DnsZoneTransfersOutgoingArgs.builder()
.name("string")
.peers("string")
.zoneId("string")
.build());
dns_zone_transfers_outgoing_resource = cloudflare.DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource",
name="string",
peers=["string"],
zone_id="string")
const dnsZoneTransfersOutgoingResource = new cloudflare.DnsZoneTransfersOutgoing("dnsZoneTransfersOutgoingResource", {
name: "string",
peers: ["string"],
zoneId: "string",
});
type: cloudflare:DnsZoneTransfersOutgoing
properties:
name: string
peers:
- string
zoneId: string
DnsZoneTransfersOutgoing 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 DnsZoneTransfersOutgoing resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsZoneTransfersOutgoing 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.
- Last
Transferred stringTime - 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.
- Last
Transferred stringTime - 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.
- last
Transferred StringTime - 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.
- last
Transferred stringTime - 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.
- last_
transferred_ strtime - 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.
- last
Transferred StringTime - The time for a specific event.
- soa
Serial Number - The serial number of the SOA for the given zone.
Look up Existing DnsZoneTransfersOutgoing Resource
Get an existing DnsZoneTransfersOutgoing 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?: DnsZoneTransfersOutgoingState, opts?: CustomResourceOptions): DnsZoneTransfersOutgoing
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
checked_time: Optional[str] = None,
created_time: Optional[str] = None,
last_transferred_time: Optional[str] = None,
name: Optional[str] = None,
peers: Optional[Sequence[str]] = None,
soa_serial: Optional[float] = None,
zone_id: Optional[str] = None) -> DnsZoneTransfersOutgoing
func GetDnsZoneTransfersOutgoing(ctx *Context, name string, id IDInput, state *DnsZoneTransfersOutgoingState, opts ...ResourceOption) (*DnsZoneTransfersOutgoing, error)
public static DnsZoneTransfersOutgoing Get(string name, Input<string> id, DnsZoneTransfersOutgoingState? state, CustomResourceOptions? opts = null)
public static DnsZoneTransfersOutgoing get(String name, Output<String> id, DnsZoneTransfersOutgoingState state, CustomResourceOptions options)
resources: _: type: cloudflare:DnsZoneTransfersOutgoing 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.
- Checked
Time string - The time for a specific event.
- Created
Time string - The time for a specific event.
- Last
Transferred stringTime - 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
- Checked
Time string - The time for a specific event.
- Created
Time string - The time for a specific event.
- Last
Transferred stringTime - 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
- checked
Time String - The time for a specific event.
- created
Time String - The time for a specific event.
- last
Transferred StringTime - 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
- checked
Time string - The time for a specific event.
- created
Time string - The time for a specific event.
- last
Transferred stringTime - 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
- checked_
time str - The time for a specific event.
- created_
time str - The time for a specific event.
- last_
transferred_ strtime - 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
- checked
Time String - The time for a specific event.
- created
Time String - The time for a specific event.
- last
Transferred StringTime - 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/dnsZoneTransfersOutgoing:DnsZoneTransfersOutgoing 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.