// SPDX-License-Identifier: Apache-2.0
import { ResourceName } from '../resource-name.js';
import { ResourceType } from '../resource-type.js';
/**
 * Represents a Kubernetes pod name. A Kubernetes pod name must be a valid RFC-1123 DNS label.
 *
 * @include DNS_1123_LABEL
 */
export class PodName extends ResourceName {
    constructor(name) {
        super(ResourceType.POD, name);
    }
    /**
     * Creates a pod. A Kubernetes pod name must be a valid RFC-1123 DNS label.
     *
     * @include DNS_1123_LABEL
     *
     * @param name The name of the pod.
     * @returns An instance of PodName.
     * @throws InvalidResourceNameError if the pod name is invalid.
     */
    static of(name) {
        return new PodName(name);
    }
}
//# sourceMappingURL=pod-name.js.map