1. Packages
  2. Logdna Provider
  3. API Docs
  4. Key
logdna 1.16.0 published on Monday, Apr 14, 2025 by logdna

logdna.Key

Explore with Pulumi AI

logdna logo
logdna 1.16.0 published on Monday, Apr 14, 2025 by logdna

    Import

    A key can be imported using the id, e.g.,

    $ pulumi import logdna:index/key:Key my_key <id>
    

    Create Key Resource

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

    Constructor syntax

    new Key(name: string, args: KeyArgs, opts?: CustomResourceOptions);
    @overload
    def Key(resource_name: str,
            args: KeyArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Key(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            type: Optional[str] = None,
            name: Optional[str] = None)
    func NewKey(ctx *Context, name string, args KeyArgs, opts ...ResourceOption) (*Key, error)
    public Key(string name, KeyArgs args, CustomResourceOptions? opts = null)
    public Key(String name, KeyArgs args)
    public Key(String name, KeyArgs args, CustomResourceOptions options)
    
    type: logdna:Key
    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 KeyArgs
    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 KeyArgs
    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 KeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KeyArgs
    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 keyResource = new Logdna.Key("keyResource", new()
    {
        Type = "string",
        Name = "string",
    });
    
    example, err := logdna.NewKey(ctx, "keyResource", &logdna.KeyArgs{
    	Type: pulumi.String("string"),
    	Name: pulumi.String("string"),
    })
    
    var keyResource = new Key("keyResource", KeyArgs.builder()
        .type("string")
        .name("string")
        .build());
    
    key_resource = logdna.Key("keyResource",
        type="string",
        name="string")
    
    const keyResource = new logdna.Key("keyResource", {
        type: "string",
        name: "string",
    });
    
    type: logdna:Key
    properties:
        name: string
        type: string
    

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

    Type string
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    Name string
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    Type string
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    Name string
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type String
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    name String
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type string
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    name string
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type str
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    name str
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type String
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    name String
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.

    Outputs

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

    Created double
    int The date the key was created in Unix time milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    string The actual key value.
    Created float64
    int The date the key was created in Unix time milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    string The actual key value.
    created Double
    int The date the key was created in Unix time milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    string The actual key value.
    created number
    int The date the key was created in Unix time milliseconds.
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    string The actual key value.
    created float
    int The date the key was created in Unix time milliseconds.
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    string The actual key value.
    created Number
    int The date the key was created in Unix time milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    string The actual key value.

    Look up Existing Key Resource

    Get an existing Key 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?: KeyState, opts?: CustomResourceOptions): Key
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created: Optional[float] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            type: Optional[str] = None) -> Key
    func GetKey(ctx *Context, name string, id IDInput, state *KeyState, opts ...ResourceOption) (*Key, error)
    public static Key Get(string name, Input<string> id, KeyState? state, CustomResourceOptions? opts = null)
    public static Key get(String name, Output<String> id, KeyState state, CustomResourceOptions options)
    resources:  _:    type: logdna:Key    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.
    The following state arguments are supported:
    Created double
    int The date the key was created in Unix time milliseconds.
    Key string
    string The actual key value.
    Name string
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    Type string
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    Created float64
    int The date the key was created in Unix time milliseconds.
    Key string
    string The actual key value.
    Name string
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    Type string
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    created Double
    int The date the key was created in Unix time milliseconds.
    key String
    string The actual key value.
    name String
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type String
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    created number
    int The date the key was created in Unix time milliseconds.
    key string
    string The actual key value.
    name string
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type string
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    created float
    int The date the key was created in Unix time milliseconds.
    key str
    string The actual key value.
    name str
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type str
    string (Required) The type of key to be used. Can be one of either service or ingestion.
    created Number
    int The date the key was created in Unix time milliseconds.
    key String
    string The actual key value.
    name String
    string (Optional) A non-unique name for the key. If not supplied, a default one is generated.
    type String
    string (Required) The type of key to be used. Can be one of either service or ingestion.

    Package Details

    Repository
    logdna logdna/terraform-provider-logdna
    License
    Notes
    This Pulumi package is based on the logdna Terraform Provider.
    logdna logo
    logdna 1.16.0 published on Monday, Apr 14, 2025 by logdna