ReplicationControllerCoreV1 constructor

ReplicationControllerCoreV1(
  1. String name, {
  2. ReplicationControllerArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

ReplicationControllerCoreV1(
  String name, {
  ReplicationControllerArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'kubernetes:core/v1:ReplicationController',
        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<ReplicationControllerSpec>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ReplicationControllerSpec.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  status = registerOutput<ReplicationControllerStatus?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ReplicationControllerStatus.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}