1. Packages
  2. Ns1 Provider
  3. API Docs
  4. RedirectCertificate
NS1 v3.4.6 published on Friday, Oct 18, 2024 by Pulumi

ns1.RedirectCertificate

Explore with Pulumi AI

ns1 logo
NS1 v3.4.6 published on Friday, Oct 18, 2024 by Pulumi

    Create RedirectCertificate Resource

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

    Constructor syntax

    new RedirectCertificate(name: string, args: RedirectCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def RedirectCertificate(resource_name: str,
                            args: RedirectCertificateArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def RedirectCertificate(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            domain: Optional[str] = None)
    func NewRedirectCertificate(ctx *Context, name string, args RedirectCertificateArgs, opts ...ResourceOption) (*RedirectCertificate, error)
    public RedirectCertificate(string name, RedirectCertificateArgs args, CustomResourceOptions? opts = null)
    public RedirectCertificate(String name, RedirectCertificateArgs args)
    public RedirectCertificate(String name, RedirectCertificateArgs args, CustomResourceOptions options)
    
    type: ns1:RedirectCertificate
    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 RedirectCertificateArgs
    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 RedirectCertificateArgs
    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 RedirectCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RedirectCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RedirectCertificateArgs
    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 redirectCertificateResource = new Ns1.RedirectCertificate("redirectCertificateResource", new()
    {
        Domain = "string",
    });
    
    example, err := ns1.NewRedirectCertificate(ctx, "redirectCertificateResource", &ns1.RedirectCertificateArgs{
    	Domain: pulumi.String("string"),
    })
    
    var redirectCertificateResource = new RedirectCertificate("redirectCertificateResource", RedirectCertificateArgs.builder()
        .domain("string")
        .build());
    
    redirect_certificate_resource = ns1.RedirectCertificate("redirectCertificateResource", domain="string")
    
    const redirectCertificateResource = new ns1.RedirectCertificate("redirectCertificateResource", {domain: "string"});
    
    type: ns1:RedirectCertificate
    properties:
        domain: string
    

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

    Domain string
    Domain string
    domain String
    domain string
    domain str
    domain String

    Outputs

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

    Certificate string
    Errors string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated int
    ValidFrom int
    ValidUntil int
    Certificate string
    Errors string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdated int
    ValidFrom int
    ValidUntil int
    certificate String
    errors String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated Integer
    validFrom Integer
    validUntil Integer
    certificate string
    errors string
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdated number
    validFrom number
    validUntil number
    certificate str
    errors str
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated int
    valid_from int
    valid_until int
    certificate String
    errors String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdated Number
    validFrom Number
    validUntil Number

    Look up Existing RedirectCertificate Resource

    Get an existing RedirectCertificate 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?: RedirectCertificateState, opts?: CustomResourceOptions): RedirectCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate: Optional[str] = None,
            domain: Optional[str] = None,
            errors: Optional[str] = None,
            last_updated: Optional[int] = None,
            valid_from: Optional[int] = None,
            valid_until: Optional[int] = None) -> RedirectCertificate
    func GetRedirectCertificate(ctx *Context, name string, id IDInput, state *RedirectCertificateState, opts ...ResourceOption) (*RedirectCertificate, error)
    public static RedirectCertificate Get(string name, Input<string> id, RedirectCertificateState? state, CustomResourceOptions? opts = null)
    public static RedirectCertificate get(String name, Output<String> id, RedirectCertificateState 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:
    certificate String
    domain String
    errors String
    lastUpdated Integer
    validFrom Integer
    validUntil Integer
    certificate string
    domain string
    errors string
    lastUpdated number
    validFrom number
    validUntil number
    certificate String
    domain String
    errors String
    lastUpdated Number
    validFrom Number
    validUntil Number

    Package Details

    Repository
    NS1 pulumi/pulumi-ns1
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ns1 Terraform Provider.
    ns1 logo
    NS1 v3.4.6 published on Friday, Oct 18, 2024 by Pulumi