We recommend new projects start with resources from the AWS provider.
We recommend new projects start with resources from the AWS provider.
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 dictionaryThe following arguments are supported:
- Account
Id string - Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
- Account
Id string - Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
- account
Id String - Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
- account
Id 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).
- account
Id String - Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
getLogging Result
The following output properties are available:
- Default
Log Pulumi.Level Aws Native. Io T. Logging Default Log Level - The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
- Event
Configurations List<Pulumi.Aws Native. Io T. Outputs. Logging Event Configuration> - 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 string - The ARN of the role that allows IoT to write to Cloudwatch logs.
- Default
Log LoggingLevel Default Log Level - The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
- Event
Configurations []LoggingEvent Configuration - 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 string - The ARN of the role that allows IoT to write to Cloudwatch logs.
- default
Log LoggingLevel Default Log Level - The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
- event
Configurations List<LoggingEvent Configuration> - 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 String - The ARN of the role that allows IoT to write to Cloudwatch logs.
- default
Log LoggingLevel Default Log Level - The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
- event
Configurations LoggingEvent Configuration[] - 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 string - The ARN of the role that allows IoT to write to Cloudwatch logs.
- default_
log_ Logginglevel Default Log Level - The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
- event_
configurations Sequence[LoggingEvent Configuration] - 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.
- default
Log "ERROR" | "WARN" | "INFO" | "DEBUG" | "DISABLED"Level - The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
- event
Configurations 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
- role
Arn String - The ARN of the role that allows IoT to write to Cloudwatch logs.
Supporting Types
LoggingDefaultLogLevel
LoggingEventConfiguration
- Event
Type string - The type of event to log. These include event types like Connect, Publish, and Disconnect.
- Log
Destination 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.
- Log
Level Pulumi.Aws Native. Io T. Logging Event Configuration Log Level - The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
- Event
Type string - The type of event to log. These include event types like Connect, Publish, and Disconnect.
- Log
Destination 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.
- Log
Level LoggingEvent Configuration Log Level - The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
- event
Type String - The type of event to log. These include event types like Connect, Publish, and Disconnect.
- log
Destination 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.
- log
Level LoggingEvent Configuration Log Level - The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
- event
Type string - The type of event to log. These include event types like Connect, Publish, and Disconnect.
- log
Destination 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.
- log
Level LoggingEvent Configuration Log Level - 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 LoggingEvent Configuration Log Level - The logging level for the specified event type. Determines the verbosity of log messages generated for this event type.
- event
Type String - The type of event to log. These include event types like Connect, Publish, and Disconnect.
- log
Destination 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.
- log
Level "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
We recommend new projects start with resources from the AWS provider.
