Inventory constructor
Inventory(
- String name, {
- InventoryArgs? args,
- CustomResourceOptions? options,
Creates a new Inventory.
name The Pulumi resource name.
args Arguments used to configure this Inventory. The set of arguments for Inventory.
options Resource options controlling this resource's behavior.
Implementation
Inventory(
String name, {
InventoryArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:s3/inventory:Inventory',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
bucket = registerOutput<String>('bucket');
destination = registerOutput<InventoryDestination>('destination', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return InventoryDestination.fromMap((guardedValue as Map).cast<String, dynamic>()); });
enabled = registerOutput<bool?>('enabled');
filter = registerOutput<InventoryFilter?>('filter', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return InventoryFilter.fromMap((guardedValue as Map).cast<String, dynamic>()); });
includedObjectVersions = registerOutput<String>('includedObjectVersions');
this.name = registerOutput<String>('name');
optionalFields = registerOutput<List<String>?>('optionalFields', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
region = registerOutput<String>('region');
schedule = registerOutput<InventorySchedule>('schedule', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return InventorySchedule.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}