1. Packages
  2. Gandi
  3. API Docs
  4. livedns
  5. Record
Gandi v0.0.14 published on Saturday, Dec 17, 2022 by Pulumiverse

gandi.livedns.Record

Explore with Pulumi AI

gandi logo
Gandi v0.0.14 published on Saturday, Dec 17, 2022 by Pulumiverse

    Create Record Resource

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

    Constructor syntax

    new Record(name: string, args: RecordArgs, opts?: CustomResourceOptions);
    @overload
    def Record(resource_name: str,
               args: RecordArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Record(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               ttl: Optional[int] = None,
               type: Optional[str] = None,
               values: Optional[Sequence[str]] = None,
               zone: Optional[str] = None,
               mutable: Optional[bool] = None,
               name: Optional[str] = None)
    func NewRecord(ctx *Context, name string, args RecordArgs, opts ...ResourceOption) (*Record, error)
    public Record(string name, RecordArgs args, CustomResourceOptions? opts = null)
    public Record(String name, RecordArgs args)
    public Record(String name, RecordArgs args, CustomResourceOptions options)
    
    type: gandi:livedns:Record
    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 RecordArgs
    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 RecordArgs
    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 RecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RecordArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var recordResource = new Gandi.Livedns.Record("recordResource", new()
    {
        Ttl = 0,
        Type = "string",
        Values = new[]
        {
            "string",
        },
        Zone = "string",
        Mutable = false,
        Name = "string",
    });
    
    example, err := livedns.NewRecord(ctx, "recordResource", &livedns.RecordArgs{
    	Ttl:  pulumi.Int(0),
    	Type: pulumi.String("string"),
    	Values: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Zone:    pulumi.String("string"),
    	Mutable: pulumi.Bool(false),
    	Name:    pulumi.String("string"),
    })
    
    var recordResource = new Record("recordResource", RecordArgs.builder()        
        .ttl(0)
        .type("string")
        .values("string")
        .zone("string")
        .mutable(false)
        .name("string")
        .build());
    
    record_resource = gandi.livedns.Record("recordResource",
        ttl=0,
        type="string",
        values=["string"],
        zone="string",
        mutable=False,
        name="string")
    
    const recordResource = new gandi.livedns.Record("recordResource", {
        ttl: 0,
        type: "string",
        values: ["string"],
        zone: "string",
        mutable: false,
        name: "string",
    });
    
    type: gandi:livedns:Record
    properties:
        mutable: false
        name: string
        ttl: 0
        type: string
        values:
            - string
        zone: string
    

    Record 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 Record resource accepts the following input properties:

    Ttl int
    The TTL of the record
    Type string
    The type of the record
    Values List<string>
    A list of values of the record
    Zone string
    The FQDN of the domain
    Mutable bool
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    Name string
    The name of the record
    Ttl int
    The TTL of the record
    Type string
    The type of the record
    Values []string
    A list of values of the record
    Zone string
    The FQDN of the domain
    Mutable bool
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    Name string
    The name of the record
    ttl Integer
    The TTL of the record
    type String
    The type of the record
    values List<String>
    A list of values of the record
    zone String
    The FQDN of the domain
    mutable Boolean
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name String
    The name of the record
    ttl number
    The TTL of the record
    type string
    The type of the record
    values string[]
    A list of values of the record
    zone string
    The FQDN of the domain
    mutable boolean
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name string
    The name of the record
    ttl int
    The TTL of the record
    type str
    The type of the record
    values Sequence[str]
    A list of values of the record
    zone str
    The FQDN of the domain
    mutable bool
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name str
    The name of the record
    ttl Number
    The TTL of the record
    type String
    The type of the record
    values List<String>
    A list of values of the record
    zone String
    The FQDN of the domain
    mutable Boolean
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name String
    The name of the record

    Outputs

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

    Href string
    The href of the record
    Id string
    The provider-assigned unique ID for this managed resource.
    Href string
    The href of the record
    Id string
    The provider-assigned unique ID for this managed resource.
    href String
    The href of the record
    id String
    The provider-assigned unique ID for this managed resource.
    href string
    The href of the record
    id string
    The provider-assigned unique ID for this managed resource.
    href str
    The href of the record
    id str
    The provider-assigned unique ID for this managed resource.
    href String
    The href of the record
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Record Resource

    Get an existing Record 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?: RecordState, opts?: CustomResourceOptions): Record
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            href: Optional[str] = None,
            mutable: Optional[bool] = None,
            name: Optional[str] = None,
            ttl: Optional[int] = None,
            type: Optional[str] = None,
            values: Optional[Sequence[str]] = None,
            zone: Optional[str] = None) -> Record
    func GetRecord(ctx *Context, name string, id IDInput, state *RecordState, opts ...ResourceOption) (*Record, error)
    public static Record Get(string name, Input<string> id, RecordState? state, CustomResourceOptions? opts = null)
    public static Record get(String name, Output<String> id, RecordState 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:
    Href string
    The href of the record
    Mutable bool
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    Name string
    The name of the record
    Ttl int
    The TTL of the record
    Type string
    The type of the record
    Values List<string>
    A list of values of the record
    Zone string
    The FQDN of the domain
    Href string
    The href of the record
    Mutable bool
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    Name string
    The name of the record
    Ttl int
    The TTL of the record
    Type string
    The type of the record
    Values []string
    A list of values of the record
    Zone string
    The FQDN of the domain
    href String
    The href of the record
    mutable Boolean
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name String
    The name of the record
    ttl Integer
    The TTL of the record
    type String
    The type of the record
    values List<String>
    A list of values of the record
    zone String
    The FQDN of the domain
    href string
    The href of the record
    mutable boolean
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name string
    The name of the record
    ttl number
    The TTL of the record
    type string
    The type of the record
    values string[]
    A list of values of the record
    zone string
    The FQDN of the domain
    href str
    The href of the record
    mutable bool
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name str
    The name of the record
    ttl int
    The TTL of the record
    type str
    The type of the record
    values Sequence[str]
    A list of values of the record
    zone str
    The FQDN of the domain
    href String
    The href of the record
    mutable Boolean
    Define if the record can be modified outside Terraform (this currently only works for TXT records)
    name String
    The name of the record
    ttl Number
    The TTL of the record
    type String
    The type of the record
    values List<String>
    A list of values of the record
    zone String
    The FQDN of the domain

    Package Details

    Repository
    gandi pulumiverse/pulumi-gandi
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gandi Terraform Provider.
    gandi logo
    Gandi v0.0.14 published on Saturday, Dec 17, 2022 by Pulumiverse