1. Packages
  2. AWS Native
  3. API Docs
  4. iot
  5. Logging

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

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.iot.Logging

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 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.

    Create Logging Resource

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

    Constructor syntax

    new Logging(name: string, args: LoggingArgs, opts?: CustomResourceOptions);
    @overload
    def Logging(resource_name: str,
                args: LoggingArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Logging(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_id: Optional[str] = None,
                default_log_level: Optional[LoggingDefaultLogLevel] = None,
                role_arn: Optional[str] = None)
    func NewLogging(ctx *Context, name string, args LoggingArgs, opts ...ResourceOption) (*Logging, error)
    public Logging(string name, LoggingArgs args, CustomResourceOptions? opts = null)
    public Logging(String name, LoggingArgs args)
    public Logging(String name, LoggingArgs args, CustomResourceOptions options)
    
    type: aws-native:iot:Logging
    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 LoggingArgs
    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 LoggingArgs
    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 LoggingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoggingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoggingArgs
    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.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const loggingResource = new aws_native.iot.Logging("loggingResource", {
        accountId: "string",
        defaultLogLevel: aws_native.iot.LoggingDefaultLogLevel.Error,
        roleArn: "string",
    });
    
    Coming soon!
    

    Logging 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 Logging resource accepts the following input properties:

    AccountId string
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    DefaultLogLevel Pulumi.AwsNative.IoT.LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    RoleArn string
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    AccountId string
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    DefaultLogLevel LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    RoleArn string
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    accountId String
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    defaultLogLevel LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    roleArn String
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    accountId string
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    defaultLogLevel LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    roleArn string
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    account_id str
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    default_log_level LoggingDefaultLogLevel
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    role_arn str
    The ARN of the role that allows IoT to write to Cloudwatch logs.
    accountId String
    Your 12-digit account ID (used as the primary identifier for the CloudFormation resource).
    defaultLogLevel "ERROR" | "WARN" | "INFO" | "DEBUG" | "DISABLED"
    The log level to use. Valid values are: ERROR, WARN, INFO, DEBUG, or DISABLED.
    roleArn String
    The ARN of the role that allows IoT to write to Cloudwatch logs.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Logging resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    LoggingDefaultLogLevel, LoggingDefaultLogLevelArgs

    Error
    ERROR
    Warn
    WARN
    Info
    INFO
    Debug
    DEBUG
    Disabled
    DISABLED
    LoggingDefaultLogLevelError
    ERROR
    LoggingDefaultLogLevelWarn
    WARN
    LoggingDefaultLogLevelInfo
    INFO
    LoggingDefaultLogLevelDebug
    DEBUG
    LoggingDefaultLogLevelDisabled
    DISABLED
    Error
    ERROR
    Warn
    WARN
    Info
    INFO
    Debug
    DEBUG
    Disabled
    DISABLED
    Error
    ERROR
    Warn
    WARN
    Info
    INFO
    Debug
    DEBUG
    Disabled
    DISABLED
    ERROR
    ERROR
    WARN
    WARN
    INFO
    INFO
    DEBUG
    DEBUG
    DISABLED
    DISABLED
    "ERROR"
    ERROR
    "WARN"
    WARN
    "INFO"
    INFO
    "DEBUG"
    DEBUG
    "DISABLED"
    DISABLED

    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.102.0 published on Tuesday, Apr 16, 2024 by Pulumi