ServiceCoreV1 constructor
ServiceCoreV1(
- String name, {
- ServiceArgs? args,
- CustomResourceOptions? options,
Creates a new ServiceCoreV1.
name The Pulumi resource name.
args Arguments used to configure this ServiceCoreV1. The set of arguments for Service.
options Resource options controlling this resource's behavior.
Implementation
ServiceCoreV1(
String name, {
ServiceArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'kubernetes:core/v1:Service',
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<ServiceSpec>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceSpec.fromMap((guardedValue as Map).cast<String, dynamic>()); });
status = registerOutput<ServiceStatus?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceStatus.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}