BillingGroup constructor

BillingGroup(
  1. String name, {
  2. BillingGroupArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new BillingGroup. name The Pulumi resource name. args Arguments used to configure this BillingGroup. The set of arguments for BillingGroup. options Resource options controlling this resource's behavior.

Implementation

BillingGroup(
  String name, {
  BillingGroupArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:iot/billingGroup:BillingGroup',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  metadatas = registerOutput<List<BillingGroupMetadata>>('metadatas', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BillingGroupMetadata>(guardedValue, (value) => BillingGroupMetadata.fromMap((value as Map).cast<String, dynamic>())); });
  this.name = registerOutput<String>('name');
  properties = registerOutput<BillingGroupProperties?>('properties', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BillingGroupProperties.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  region = registerOutput<String>('region');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  version = registerOutput<int>('version');
}