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