scaleway.IotDevice
Explore with Pulumi AI
Import
IoT devices can be imported using the {region}/{id}
, e.g. bash
$ pulumi import scaleway:index/iotDevice:IotDevice device01 fr-par/11111111-1111-1111-1111-111111111111
Create IotDevice Resource
new IotDevice(name: string, args: IotDeviceArgs, opts?: CustomResourceOptions);
@overload
def IotDevice(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_insecure: Optional[bool] = None,
allow_multiple_connections: Optional[bool] = None,
certificate: Optional[IotDeviceCertificateArgs] = None,
description: Optional[str] = None,
hub_id: Optional[str] = None,
message_filters: Optional[IotDeviceMessageFiltersArgs] = None,
name: Optional[str] = None,
region: Optional[str] = None)
@overload
def IotDevice(resource_name: str,
args: IotDeviceArgs,
opts: Optional[ResourceOptions] = None)
func NewIotDevice(ctx *Context, name string, args IotDeviceArgs, opts ...ResourceOption) (*IotDevice, error)
public IotDevice(string name, IotDeviceArgs args, CustomResourceOptions? opts = null)
public IotDevice(String name, IotDeviceArgs args)
public IotDevice(String name, IotDeviceArgs args, CustomResourceOptions options)
type: scaleway:IotDevice
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IotDeviceArgs
- 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 IotDeviceArgs
- 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 IotDeviceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IotDeviceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IotDeviceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IotDevice 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 IotDevice resource accepts the following input properties:
- Hub
Id string The ID of the hub on which this device will be created.
- Allow
Insecure bool Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- Allow
Multiple boolConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- Certificate
Lbrlabs.
Pulumi Package. Scaleway. Inputs. Iot Device Certificate The certificate bundle of the device.
- Description string
The description of the IoT device (e.g.
living room
).- Message
Filters Lbrlabs.Pulumi Package. Scaleway. Inputs. Iot Device Message Filters Rules that define which messages are authorized or denied based on their topic.
- Name string
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- Region string
The region you want to attach the resource to
- Hub
Id string The ID of the hub on which this device will be created.
- Allow
Insecure bool Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- Allow
Multiple boolConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- Certificate
Iot
Device Certificate Args The certificate bundle of the device.
- Description string
The description of the IoT device (e.g.
living room
).- Message
Filters IotDevice Message Filters Args Rules that define which messages are authorized or denied based on their topic.
- Name string
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- Region string
The region you want to attach the resource to
- hub
Id String The ID of the hub on which this device will be created.
- allow
Insecure Boolean Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow
Multiple BooleanConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate
Iot
Device Certificate The certificate bundle of the device.
- description String
The description of the IoT device (e.g.
living room
).- message
Filters IotDevice Message Filters Rules that define which messages are authorized or denied based on their topic.
- name String
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region String
The region you want to attach the resource to
- hub
Id string The ID of the hub on which this device will be created.
- allow
Insecure boolean Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow
Multiple booleanConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate
Iot
Device Certificate The certificate bundle of the device.
- description string
The description of the IoT device (e.g.
living room
).- message
Filters IotDevice Message Filters Rules that define which messages are authorized or denied based on their topic.
- name string
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region string
The region you want to attach the resource to
- hub_
id str The ID of the hub on which this device will be created.
- allow_
insecure bool Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow_
multiple_ boolconnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate
Iot
Device Certificate Args The certificate bundle of the device.
- description str
The description of the IoT device (e.g.
living room
).- message_
filters IotDevice Message Filters Args Rules that define which messages are authorized or denied based on their topic.
- name str
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region str
The region you want to attach the resource to
- hub
Id String The ID of the hub on which this device will be created.
- allow
Insecure Boolean Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow
Multiple BooleanConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate Property Map
The certificate bundle of the device.
- description String
The description of the IoT device (e.g.
living room
).- message
Filters Property Map Rules that define which messages are authorized or denied based on their topic.
- name String
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region String
The region you want to attach the resource to
Outputs
All input properties are implicitly available as output properties. Additionally, the IotDevice resource produces the following output properties:
- Created
At string The date and time the device was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Connected bool The current connection status of the device.
- Last
Activity stringAt The last MQTT activity of the device.
- Status string
The current status of the device.
- Updated
At string The date and time the device resource was updated.
- Created
At string The date and time the device was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Connected bool The current connection status of the device.
- Last
Activity stringAt The last MQTT activity of the device.
- Status string
The current status of the device.
- Updated
At string The date and time the device resource was updated.
- created
At String The date and time the device was created.
- id String
The provider-assigned unique ID for this managed resource.
- is
Connected Boolean The current connection status of the device.
- last
Activity StringAt The last MQTT activity of the device.
- status String
The current status of the device.
- updated
At String The date and time the device resource was updated.
- created
At string The date and time the device was created.
- id string
The provider-assigned unique ID for this managed resource.
- is
Connected boolean The current connection status of the device.
- last
Activity stringAt The last MQTT activity of the device.
- status string
The current status of the device.
- updated
At string The date and time the device resource was updated.
- created_
at str The date and time the device was created.
- id str
The provider-assigned unique ID for this managed resource.
- is_
connected bool The current connection status of the device.
- last_
activity_ strat The last MQTT activity of the device.
- status str
The current status of the device.
- updated_
at str The date and time the device resource was updated.
- created
At String The date and time the device was created.
- id String
The provider-assigned unique ID for this managed resource.
- is
Connected Boolean The current connection status of the device.
- last
Activity StringAt The last MQTT activity of the device.
- status String
The current status of the device.
- updated
At String The date and time the device resource was updated.
Look up Existing IotDevice Resource
Get an existing IotDevice resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IotDeviceState, opts?: CustomResourceOptions): IotDevice
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_insecure: Optional[bool] = None,
allow_multiple_connections: Optional[bool] = None,
certificate: Optional[IotDeviceCertificateArgs] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
hub_id: Optional[str] = None,
is_connected: Optional[bool] = None,
last_activity_at: Optional[str] = None,
message_filters: Optional[IotDeviceMessageFiltersArgs] = None,
name: Optional[str] = None,
region: Optional[str] = None,
status: Optional[str] = None,
updated_at: Optional[str] = None) -> IotDevice
func GetIotDevice(ctx *Context, name string, id IDInput, state *IotDeviceState, opts ...ResourceOption) (*IotDevice, error)
public static IotDevice Get(string name, Input<string> id, IotDeviceState? state, CustomResourceOptions? opts = null)
public static IotDevice get(String name, Output<String> id, IotDeviceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allow
Insecure bool Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- Allow
Multiple boolConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- Certificate
Lbrlabs.
Pulumi Package. Scaleway. Inputs. Iot Device Certificate The certificate bundle of the device.
- Created
At string The date and time the device was created.
- Description string
The description of the IoT device (e.g.
living room
).- Hub
Id string The ID of the hub on which this device will be created.
- Is
Connected bool The current connection status of the device.
- Last
Activity stringAt The last MQTT activity of the device.
- Message
Filters Lbrlabs.Pulumi Package. Scaleway. Inputs. Iot Device Message Filters Rules that define which messages are authorized or denied based on their topic.
- Name string
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- Region string
The region you want to attach the resource to
- Status string
The current status of the device.
- Updated
At string The date and time the device resource was updated.
- Allow
Insecure bool Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- Allow
Multiple boolConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- Certificate
Iot
Device Certificate Args The certificate bundle of the device.
- Created
At string The date and time the device was created.
- Description string
The description of the IoT device (e.g.
living room
).- Hub
Id string The ID of the hub on which this device will be created.
- Is
Connected bool The current connection status of the device.
- Last
Activity stringAt The last MQTT activity of the device.
- Message
Filters IotDevice Message Filters Args Rules that define which messages are authorized or denied based on their topic.
- Name string
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- Region string
The region you want to attach the resource to
- Status string
The current status of the device.
- Updated
At string The date and time the device resource was updated.
- allow
Insecure Boolean Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow
Multiple BooleanConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate
Iot
Device Certificate The certificate bundle of the device.
- created
At String The date and time the device was created.
- description String
The description of the IoT device (e.g.
living room
).- hub
Id String The ID of the hub on which this device will be created.
- is
Connected Boolean The current connection status of the device.
- last
Activity StringAt The last MQTT activity of the device.
- message
Filters IotDevice Message Filters Rules that define which messages are authorized or denied based on their topic.
- name String
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region String
The region you want to attach the resource to
- status String
The current status of the device.
- updated
At String The date and time the device resource was updated.
- allow
Insecure boolean Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow
Multiple booleanConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate
Iot
Device Certificate The certificate bundle of the device.
- created
At string The date and time the device was created.
- description string
The description of the IoT device (e.g.
living room
).- hub
Id string The ID of the hub on which this device will be created.
- is
Connected boolean The current connection status of the device.
- last
Activity stringAt The last MQTT activity of the device.
- message
Filters IotDevice Message Filters Rules that define which messages are authorized or denied based on their topic.
- name string
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region string
The region you want to attach the resource to
- status string
The current status of the device.
- updated
At string The date and time the device resource was updated.
- allow_
insecure bool Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow_
multiple_ boolconnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate
Iot
Device Certificate Args The certificate bundle of the device.
- created_
at str The date and time the device was created.
- description str
The description of the IoT device (e.g.
living room
).- hub_
id str The ID of the hub on which this device will be created.
- is_
connected bool The current connection status of the device.
- last_
activity_ strat The last MQTT activity of the device.
- message_
filters IotDevice Message Filters Args Rules that define which messages are authorized or denied based on their topic.
- name str
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region str
The region you want to attach the resource to
- status str
The current status of the device.
- updated_
at str The date and time the device resource was updated.
- allow
Insecure Boolean Allow plain and server-authenticated TLS connections in addition to mutually-authenticated ones.
Important: Updates to
allow_insecure
can disconnect eventually connected devices.- allow
Multiple BooleanConnections Allow more than one simultaneous connection using the same device credentials.
Important: Updates to
allow_multiple_connections
can disconnect eventually connected devices.- certificate Property Map
The certificate bundle of the device.
- created
At String The date and time the device was created.
- description String
The description of the IoT device (e.g.
living room
).- hub
Id String The ID of the hub on which this device will be created.
- is
Connected Boolean The current connection status of the device.
- last
Activity StringAt The last MQTT activity of the device.
- message
Filters Property Map Rules that define which messages are authorized or denied based on their topic.
- name String
The name of the IoT device you want to create (e.g.
my-device
).Important: Updates to
name
will destroy and recreate a new resource.- region String
The region you want to attach the resource to
- status String
The current status of the device.
- updated
At String The date and time the device resource was updated.
Supporting Types
IotDeviceCertificate, IotDeviceCertificateArgs
IotDeviceMessageFilters, IotDeviceMessageFiltersArgs
- Publish
Lbrlabs.
Pulumi Package. Scaleway. Inputs. Iot Device Message Filters Publish Rules used to restrict topics the device can publish to.
- Subscribe
Lbrlabs.
Pulumi Package. Scaleway. Inputs. Iot Device Message Filters Subscribe Rules used to restrict topics the device can subscribe to.
- Publish
Iot
Device Message Filters Publish Rules used to restrict topics the device can publish to.
- Subscribe
Iot
Device Message Filters Subscribe Rules used to restrict topics the device can subscribe to.
- publish
Iot
Device Message Filters Publish Rules used to restrict topics the device can publish to.
- subscribe
Iot
Device Message Filters Subscribe Rules used to restrict topics the device can subscribe to.
- publish
Iot
Device Message Filters Publish Rules used to restrict topics the device can publish to.
- subscribe
Iot
Device Message Filters Subscribe Rules used to restrict topics the device can subscribe to.
- publish
Iot
Device Message Filters Publish Rules used to restrict topics the device can publish to.
- subscribe
Iot
Device Message Filters Subscribe Rules used to restrict topics the device can subscribe to.
- publish Property Map
Rules used to restrict topics the device can publish to.
- subscribe Property Map
Rules used to restrict topics the device can subscribe to.
IotDeviceMessageFiltersPublish, IotDeviceMessageFiltersPublishArgs
- Policy string
Same as publish rules.
- Topics List<string>
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- Policy string
Same as publish rules.
- Topics []string
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy String
Same as publish rules.
- topics List<String>
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy string
Same as publish rules.
- topics string[]
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy str
Same as publish rules.
- topics Sequence[str]
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy String
Same as publish rules.
- topics List<String>
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
IotDeviceMessageFiltersSubscribe, IotDeviceMessageFiltersSubscribeArgs
- Policy string
Same as publish rules.
- Topics List<string>
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- Policy string
Same as publish rules.
- Topics []string
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy String
Same as publish rules.
- topics List<String>
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy string
Same as publish rules.
- topics string[]
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy str
Same as publish rules.
- topics Sequence[str]
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
- policy String
Same as publish rules.
- topics List<String>
Same as publish rules.
certificate.crt
- (Optional) The certificate of the device, either generated by Scaleway or provided.
Important: Updates to
certificate.crt
will disconnect connected devices and the previous certificate will be deleted and won't be recoverable.
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.