1. Packages
  2. Yandex
  3. API Docs
  4. LoggingGroup
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.LoggingGroup

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    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
    	})
    }
    

    Coming soon!

    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,
    });
    

    Coming soon!

    Create LoggingGroup Resource

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

    Constructor syntax

    new LoggingGroup(name: string, args?: LoggingGroupArgs, opts?: CustomResourceOptions);
    @overload
    def LoggingGroup(resource_name: str,
                     args: Optional[LoggingGroupArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @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)
    func NewLoggingGroup(ctx *Context, name string, args *LoggingGroupArgs, opts ...ResourceOption) (*LoggingGroup, error)
    public LoggingGroup(string name, LoggingGroupArgs? args = null, CustomResourceOptions? opts = null)
    public LoggingGroup(String name, LoggingGroupArgs args)
    public LoggingGroup(String name, LoggingGroupArgs args, CustomResourceOptions options)
    
    type: yandex:LoggingGroup
    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 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.
    name String
    The unique name of the resource.
    args LoggingGroupArgs
    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 loggingGroupResource = new Yandex.LoggingGroup("loggingGroupResource", new()
    {
        Description = "string",
        FolderId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
        RetentionPeriod = "string",
    });
    
    example, err := yandex.NewLoggingGroup(ctx, "loggingGroupResource", &yandex.LoggingGroupArgs{
    	Description: pulumi.String("string"),
    	FolderId:    pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name:            pulumi.String("string"),
    	RetentionPeriod: pulumi.String("string"),
    })
    
    var loggingGroupResource = new LoggingGroup("loggingGroupResource", LoggingGroupArgs.builder()        
        .description("string")
        .folderId("string")
        .labels(Map.of("string", "string"))
        .name("string")
        .retentionPeriod("string")
        .build());
    
    logging_group_resource = yandex.LoggingGroup("loggingGroupResource",
        description="string",
        folder_id="string",
        labels={
            "string": "string",
        },
        name="string",
        retention_period="string")
    
    const loggingGroupResource = new yandex.LoggingGroup("loggingGroupResource", {
        description: "string",
        folderId: "string",
        labels: {
            string: "string",
        },
        name: "string",
        retentionPeriod: "string",
    });
    
    type: yandex:LoggingGroup
    properties:
        description: string
        folderId: string
        labels:
            string: string
        name: string
        retentionPeriod: string
    

    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 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.
    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>
    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.

    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.
    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.
    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.

    Look up 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)
    public static LoggingGroup get(String name, Output<String> id, LoggingGroupState 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:
    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 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.
    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>
    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.

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi