# coding=utf-8
# *** WARNING: this file was generated by pulumi-language-python. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import builtins as _builtins
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from .. import _utilities

import types

__config__ = pulumi.Config('gandi')


class _ExportableConfig(types.ModuleType):
    @_builtins.property
    def dry_run(self) -> Optional[bool]:
        """
        Prevent the Domain provider from taking certain actions
        """
        return __config__.get_bool('dryRun')

    @_builtins.property
    def key(self) -> Optional[str]:
        """
        (DEPRECATED) A Gandi API key
        """
        return __config__.get('key') or _utilities.get_env('GANDI_KEY')

    @_builtins.property
    def personal_access_token(self) -> Optional[str]:
        """
        A Gandi API Personal Access Token
        """
        return __config__.get('personalAccessToken')

    @_builtins.property
    def sharing_id(self) -> Optional[str]:
        """
        (DEPRECATED) A Gandi Sharing ID
        """
        return __config__.get('sharingId')

    @_builtins.property
    def url(self) -> Optional[str]:
        """
        The Gandi API URL
        """
        return __config__.get('url')

