Scope constructor

Scope(
  1. String name, {
  2. ScopeArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

Scope(
  String name, {
  ScopeArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:networkflowmonitor/scope:Scope',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  region = registerOutput<String>('region');
  scopeArn = registerOutput<String>('scopeArn');
  scopeId = registerOutput<String>('scopeId');
  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>(); });
  targets = registerOutput<List<ScopeTarget>>('targets', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ScopeTarget>(guardedValue, (value) => ScopeTarget.fromMap((value as Map).cast<String, dynamic>())); });
  timeouts = registerOutput<ScopeTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ScopeTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}