Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

LoggingGroup

Yandex Cloud Logging group resource. For more information, see the official documentation.

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var group1 = new Yandex.LoggingGroup("group1", new Yandex.LoggingGroupArgs
        {
            FolderId = data.Yandex_resourcemanager_folder.Test_folder.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := yandex.NewLoggingGroup(ctx, "group1", &yandex.LoggingGroupArgs{
			FolderId: pulumi.Any(data.Yandex_resourcemanager_folder.Test_folder.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_yandex as yandex

group1 = yandex.LoggingGroup("group1", folder_id=data["yandex_resourcemanager_folder"]["test_folder"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const group1 = new yandex.LoggingGroup("group1", {
    folderId: yandex_resourcemanager_folder_test_folder.id,
});

Create a LoggingGroup Resource

new LoggingGroup(name: string, args?: LoggingGroupArgs, opts?: CustomResourceOptions);
@overload
def LoggingGroup(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 folder_id: Optional[str] = None,
                 labels: Optional[Mapping[str, str]] = None,
                 name: Optional[str] = None,
                 retention_period: Optional[str] = None)
@overload
def LoggingGroup(resource_name: str,
                 args: Optional[LoggingGroupArgs] = None,
                 opts: Optional[ResourceOptions] = None)
func NewLoggingGroup(ctx *Context, name string, args *LoggingGroupArgs, opts ...ResourceOption) (*LoggingGroup, error)
public LoggingGroup(string name, LoggingGroupArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LoggingGroupArgs
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 LoggingGroupArgs
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 LoggingGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LoggingGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

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

Description string
A description for the Yandex Cloud Logging group.
FolderId string
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
Name string
Name for the Yandex Cloud Logging group.
RetentionPeriod string
Log entries retention period for the Yandex Cloud Logging group.
Description string
A description for the Yandex Cloud Logging group.
FolderId string
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
Labels map[string]string
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
Name string
Name for the Yandex Cloud Logging group.
RetentionPeriod string
Log entries retention period for the Yandex Cloud Logging group.
description string
A description for the Yandex Cloud Logging group.
folderId string
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
name string
Name for the Yandex Cloud Logging group.
retentionPeriod string
Log entries retention period for the Yandex Cloud Logging group.
description str
A description for the Yandex Cloud Logging group.
folder_id str
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
name str
Name for the Yandex Cloud Logging group.
retention_period str
Log entries retention period for the Yandex Cloud Logging group.

Outputs

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

CloudId string
ID of the cloud that the Yandex Cloud Logging group belong to.
CreatedAt string
The Yandex Cloud Logging group creation timestamp.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The Yandex Cloud Logging group status.
CloudId string
ID of the cloud that the Yandex Cloud Logging group belong to.
CreatedAt string
The Yandex Cloud Logging group creation timestamp.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The Yandex Cloud Logging group status.
cloudId string
ID of the cloud that the Yandex Cloud Logging group belong to.
createdAt string
The Yandex Cloud Logging group creation timestamp.
id string
The provider-assigned unique ID for this managed resource.
status string
The Yandex Cloud Logging group status.
cloud_id str
ID of the cloud that the Yandex Cloud Logging group belong to.
created_at str
The Yandex Cloud Logging group creation timestamp.
id str
The provider-assigned unique ID for this managed resource.
status str
The Yandex Cloud Logging group status.

Look up an Existing LoggingGroup Resource

Get an existing LoggingGroup 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?: LoggingGroupState, opts?: CustomResourceOptions): LoggingGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_id: Optional[str] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        folder_id: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        retention_period: Optional[str] = None,
        status: Optional[str] = None) -> LoggingGroup
func GetLoggingGroup(ctx *Context, name string, id IDInput, state *LoggingGroupState, opts ...ResourceOption) (*LoggingGroup, error)
public static LoggingGroup Get(string name, Input<string> id, LoggingGroupState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

CloudId string
ID of the cloud that the Yandex Cloud Logging group belong to.
CreatedAt string
The Yandex Cloud Logging group creation timestamp.
Description string
A description for the Yandex Cloud Logging group.
FolderId string
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
Name string
Name for the Yandex Cloud Logging group.
RetentionPeriod string
Log entries retention period for the Yandex Cloud Logging group.
Status string
The Yandex Cloud Logging group status.
CloudId string
ID of the cloud that the Yandex Cloud Logging group belong to.
CreatedAt string
The Yandex Cloud Logging group creation timestamp.
Description string
A description for the Yandex Cloud Logging group.
FolderId string
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
Labels map[string]string
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
Name string
Name for the Yandex Cloud Logging group.
RetentionPeriod string
Log entries retention period for the Yandex Cloud Logging group.
Status string
The Yandex Cloud Logging group status.
cloudId string
ID of the cloud that the Yandex Cloud Logging group belong to.
createdAt string
The Yandex Cloud Logging group creation timestamp.
description string
A description for the Yandex Cloud Logging group.
folderId string
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
name string
Name for the Yandex Cloud Logging group.
retentionPeriod string
Log entries retention period for the Yandex Cloud Logging group.
status string
The Yandex Cloud Logging group status.
cloud_id str
ID of the cloud that the Yandex Cloud Logging group belong to.
created_at str
The Yandex Cloud Logging group creation timestamp.
description str
A description for the Yandex Cloud Logging group.
folder_id str
ID of the folder that the Yandex Cloud Logging group belongs to. It will be deduced from provider configuration if not set explicitly.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Yandex Cloud Logging group.
name str
Name for the Yandex Cloud Logging group.
retention_period str
Log entries retention period for the Yandex Cloud Logging group.
status str
The Yandex Cloud Logging group status.

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.