AWS Native

Pulumi Official
Package maintained by Pulumi
v0.19.0 published on Wednesday, Jun 8, 2022 by Pulumi

getLogGroup

Resource schema for AWS::Logs::LogGroup

Using getLogGroup

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getLogGroup(args: GetLogGroupArgs, opts?: InvokeOptions): Promise<GetLogGroupResult>
function getLogGroupOutput(args: GetLogGroupOutputArgs, opts?: InvokeOptions): Output<GetLogGroupResult>
def get_log_group(log_group_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetLogGroupResult
def get_log_group_output(log_group_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetLogGroupResult]
func LookupLogGroup(ctx *Context, args *LookupLogGroupArgs, opts ...InvokeOption) (*LookupLogGroupResult, error)
func LookupLogGroupOutput(ctx *Context, args *LookupLogGroupOutputArgs, opts ...InvokeOption) LookupLogGroupResultOutput

> Note: This function is named LookupLogGroup in the Go SDK.

public static class GetLogGroup 
{
    public static Task<GetLogGroupResult> InvokeAsync(GetLogGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetLogGroupResult> Invoke(GetLogGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLogGroupResult> getLogGroup(GetLogGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws-native:logs:getLogGroup
  Arguments:
    # Arguments dictionary

The following arguments are supported:

LogGroupName string

The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.

LogGroupName string

The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.

logGroupName String

The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.

logGroupName string

The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.

log_group_name str

The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.

logGroupName String

The name of the log group. If you don't specify a name, AWS CloudFormation generates a unique ID for the log group.

getLogGroup Result

The following output properties are available:

Arn string

The CloudWatch log group ARN.

KmsKeyId string

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

RetentionInDays int

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

Tags List<Pulumi.AwsNative.Logs.Outputs.LogGroupTag>

An array of key-value pairs to apply to this resource.

Arn string

The CloudWatch log group ARN.

KmsKeyId string

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

RetentionInDays int

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

Tags []LogGroupTag

An array of key-value pairs to apply to this resource.

arn String

The CloudWatch log group ARN.

kmsKeyId String

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

retentionInDays Integer

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

tags List<LogGroupTag>

An array of key-value pairs to apply to this resource.

arn string

The CloudWatch log group ARN.

kmsKeyId string

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

retentionInDays number

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

tags LogGroupTag[]

An array of key-value pairs to apply to this resource.

arn str

The CloudWatch log group ARN.

kms_key_id str

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

retention_in_days int

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

tags Sequence[LogGroupTag]

An array of key-value pairs to apply to this resource.

arn String

The CloudWatch log group ARN.

kmsKeyId String

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

retentionInDays Number

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.

tags List<Property Map>

An array of key-value pairs to apply to this resource.

Supporting Types

LogGroupTag

Key string

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

Value string

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

Key string

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

Value string

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

key String

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

value String

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

key string

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

value string

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

key str

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

value str

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

key String

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

value String

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., :, /, =, +, - and @.

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0