StatefulSetAppsV1 constructor

StatefulSetAppsV1(
  1. String name, {
  2. StatefulSetArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

StatefulSetAppsV1(
  String name, {
  StatefulSetArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'kubernetes:apps/v1:StatefulSet',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        options ?? pulumi.CustomResourceOptions(),
      ) {
  apiVersion = registerOutput<String>('apiVersion');
  kind = registerOutput<String>('kind');
  metadata = registerOutput<ObjectMeta>('metadata', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ObjectMeta.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  spec = registerOutput<StatefulSetSpec>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return StatefulSetSpec.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  status = registerOutput<StatefulSetStatus?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return StatefulSetStatus.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}