ReplicaSetResource constructor

ReplicaSetResource(
  1. String name, {
  2. ReplicaSetAppsV1beta2Args? args,
  3. CustomResourceOptions? options,
})

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

Implementation

ReplicaSetResource(
  String name, {
  ReplicaSetAppsV1beta2Args? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'kubernetes:apps/v1beta2:ReplicaSet',
        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<ReplicaSetSpecAppsV1beta2>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ReplicaSetSpecAppsV1beta2.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  status = registerOutput<ReplicaSetStatusAppsV1beta2?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ReplicaSetStatusAppsV1beta2.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}