1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. iot
  5. getLogging

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.50.0 published on Monday, Jan 26, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.50.0 published on Monday, Jan 26, 2026 by Pulumi

    Logging Options enable you to configure your IoT V2 logging role and default logging level so that you can monitor progress events logs as it passes from your devices through Iot core service.

    Using getLogging

    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 getLogging(args: GetLoggingArgs, opts?: InvokeOptions): Promise<GetLoggingResult>
    function getLoggingOutput(args: GetLoggingOutputArgs, opts?: InvokeOptions): Output<GetLoggingResult>
    def get_logging(account_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetLoggingResult
    def get_logging_output(account_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetLoggingResult]
    func LookupLogging(ctx *Context, args *LookupLoggingArgs, opts ...InvokeOption) (*LookupLoggingResult, error)
    func LookupLoggingOutput(ctx *Context, args *LookupLoggingOutputArgs, opts ...InvokeOption) LookupLoggingResultOutput

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

    public static class GetLogging 
    {
        public static Task<GetLoggingResult> InvokeAsync(GetLoggingArgs args, InvokeOptions? opts = null)
        public static Output<GetLoggingResult> Invoke(GetLoggingInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoggingResult> getLogging(GetLoggingArgs args, InvokeOptions options)
    public static Output<GetLoggingResult> getLogging(GetLoggingArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:iot:getLogging
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    AccountId string
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    accountId String
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    accountId string
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    account_id str
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    accountId String
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).

    getLogging Result

    The following output properties are available:

    DefaultLogLevel Pulumi.AwsNative.IoT.LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    EventConfigurations List<Pulumi.AwsNative.IoT.Outputs.LoggingEventConfiguration>
    Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event
    RoleArn string
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    DefaultLogLevel LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    EventConfigurations []LoggingEventConfiguration
    Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event
    RoleArn string
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    defaultLogLevel LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    eventConfigurations List<LoggingEventConfiguration>
    Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event
    roleArn String
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    defaultLogLevel LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    eventConfigurations LoggingEventConfiguration[]
    Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event
    roleArn string
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    default_log_level LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    event_configurations Sequence[LoggingEventConfiguration]
    Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event
    role_arn str
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    defaultLogLevel "ERROR" | "WARN" | "INFO" | "DEBUG" | "DISABLED"
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    eventConfigurations List<Property Map>
    Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event
    roleArn String
    The ARN of the role that allows IoT to write to Cloudwatch logs.

    Supporting Types

    LoggingDefaultLogLevel

    LoggingEventConfiguration

    EventType string
    The type of event to log. These include event types like Connect, Publish, and Disconnect.
    LogDestination string
    CloudWatch Log Group for event-based logging. Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.
    LogLevel Pulumi.AwsNative.IoT.LoggingEventConfigurationLogLevel
    The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
    EventType string
    The type of event to log. These include event types like Connect, Publish, and Disconnect.
    LogDestination string
    CloudWatch Log Group for event-based logging. Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.
    LogLevel LoggingEventConfigurationLogLevel
    The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
    eventType String
    The type of event to log. These include event types like Connect, Publish, and Disconnect.
    logDestination String
    CloudWatch Log Group for event-based logging. Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.
    logLevel LoggingEventConfigurationLogLevel
    The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
    eventType string
    The type of event to log. These include event types like Connect, Publish, and Disconnect.
    logDestination string
    CloudWatch Log Group for event-based logging. Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.
    logLevel LoggingEventConfigurationLogLevel
    The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
    event_type str
    The type of event to log. These include event types like Connect, Publish, and Disconnect.
    log_destination str
    CloudWatch Log Group for event-based logging. Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.
    log_level LoggingEventConfigurationLogLevel
    The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
    eventType String
    The type of event to log. These include event types like Connect, Publish, and Disconnect.
    logDestination String
    CloudWatch Log Group for event-based logging. Specifies where log events should be sent. The log destination for event-based logging overrides default Log Group for the specified event type and applies to all resources associated with that event.
    logLevel "ERROR" | "WARN" | "INFO" | "DEBUG" | "DISABLED"
    The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.

    LoggingEventConfigurationLogLevel

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.50.0 published on Monday, Jan 26, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate