# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities

import types

__config__ = pulumi.Config('buildkite')


class _ExportableConfig(types.ModuleType):
    @property
    def api_token(self) -> Optional[str]:
        """
        API token with GraphQL access and `write_pipelines, read_pipelines` scopes
        """
        return __config__.get('apiToken') or _utilities.get_env('BUILDKITE_API_TOKEN')

    @property
    def graphql_url(self) -> Optional[str]:
        """
        Base URL for the GraphQL API to use
        """
        return __config__.get('graphqlUrl')

    @property
    def organization(self) -> Optional[str]:
        """
        The Buildkite organization ID
        """
        return __config__.get('organization') or _utilities.get_env('BUILDKITE_ORGANIZATION')

    @property
    def rest_url(self) -> Optional[str]:
        """
        Base URL for the REST API to use
        """
        return __config__.get('restUrl')

