1. Packages
  2. AWS Native
  3. API Docs
  4. logs
  5. getLogGroup

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.90.0 published on Monday, Dec 4, 2023 by Pulumi

aws-native.logs.getLogGroup

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.90.0 published on Monday, Dec 4, 2023 by Pulumi

    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.

    DataProtectionPolicy object

    The body of the policy document you want to use for this topic.

    You can only add one policy per topic.

    The policy must be in JSON string format.

    Length Constraints: Maximum length of 30720

    KmsKeyId string

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

    LogGroupClass Pulumi.AwsNative.Logs.LogGroupClass

    The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class

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

    DataProtectionPolicy interface{}

    The body of the policy document you want to use for this topic.

    You can only add one policy per topic.

    The policy must be in JSON string format.

    Length Constraints: Maximum length of 30720

    KmsKeyId string

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

    LogGroupClass LogGroupClass

    The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class

    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, 1096, 1827, and 3653.

    Tags []LogGroupTag

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

    arn String

    The CloudWatch log group ARN.

    dataProtectionPolicy Object

    The body of the policy document you want to use for this topic.

    You can only add one policy per topic.

    The policy must be in JSON string format.

    Length Constraints: Maximum length of 30720

    kmsKeyId String

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

    logGroupClass LogGroupClass

    The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class

    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, 1096, 1827, and 3653.

    tags List<LogGroupTag>

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

    arn string

    The CloudWatch log group ARN.

    dataProtectionPolicy any

    The body of the policy document you want to use for this topic.

    You can only add one policy per topic.

    The policy must be in JSON string format.

    Length Constraints: Maximum length of 30720

    kmsKeyId string

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

    logGroupClass LogGroupClass

    The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class

    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, 1096, 1827, and 3653.

    tags LogGroupTag[]

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

    arn str

    The CloudWatch log group ARN.

    data_protection_policy Any

    The body of the policy document you want to use for this topic.

    You can only add one policy per topic.

    The policy must be in JSON string format.

    Length Constraints: Maximum length of 30720

    kms_key_id str

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

    log_group_class LogGroupClass

    The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class

    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, 1096, 1827, and 3653.

    tags Sequence[LogGroupTag]

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

    arn String

    The CloudWatch log group ARN.

    dataProtectionPolicy Any

    The body of the policy document you want to use for this topic.

    You can only add one policy per topic.

    The policy must be in JSON string format.

    Length Constraints: Maximum length of 30720

    kmsKeyId String

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

    logGroupClass "STANDARD" | "INFREQUENT_ACCESS"

    The class of the log group. Possible values are: STANDARD and INFREQUENT_ACCESS, with STANDARD being the default class

    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, 1096, 1827, and 3653.

    tags List<Property Map>

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

    Supporting Types

    LogGroupClass

    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
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.90.0 published on Monday, Dec 4, 2023 by Pulumi