Provider
The provider type for the cloudflare package. By default, resources use package-wide configuration
settings, however an explicit Provider
instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create a Provider Resource
new Provider(name: string, args?: ProviderArgs, opts?: CustomResourceOptions);
def Provider(resource_name: str, opts: Optional[ResourceOptions] = None, account_id: Optional[str] = None, api_client_logging: Optional[bool] = None, api_key: Optional[str] = None, api_token: Optional[str] = None, api_user_service_key: Optional[str] = None, email: Optional[str] = None, max_backoff: Optional[int] = None, min_backoff: Optional[int] = None, retries: Optional[int] = None, rps: Optional[int] = None)
func NewProvider(ctx *Context, name string, args *ProviderArgs, opts ...ResourceOption) (*Provider, error)
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Provider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Provider resource accepts the following input properties:
- Account
Id string Configure API client to always use that account.
- Api
Client boolLogging Whether to print logs from the API client (using the default log library logger) It can also be sourced from the following environment variable:
CLOUDFLARE_API_CLIENT_LOGGING
- Api
Key string The API key for operations.
- Api
Token string The API Token for operations.
- Api
User stringService Key A special Cloudflare API key good for a restricted set of endpoints.
- Email string
A registered Cloudflare email address.
- Max
Backoff int Maximum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MAX_BACKOFF
- Min
Backoff int Minimum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MIN_BACKOFF
- Retries int
Maximum number of retries to perform when an API request fails It can also be sourced from the following environment variable:
CLOUDFLARE_RETRIES
- Rps int
RPS limit to apply when making calls to the API It can also be sourced from the following environment variable:
CLOUDFLARE_RPS
- Account
Id string Configure API client to always use that account.
- Api
Client boolLogging Whether to print logs from the API client (using the default log library logger) It can also be sourced from the following environment variable:
CLOUDFLARE_API_CLIENT_LOGGING
- Api
Key string The API key for operations.
- Api
Token string The API Token for operations.
- Api
User stringService Key A special Cloudflare API key good for a restricted set of endpoints.
- Email string
A registered Cloudflare email address.
- Max
Backoff int Maximum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MAX_BACKOFF
- Min
Backoff int Minimum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MIN_BACKOFF
- Retries int
Maximum number of retries to perform when an API request fails It can also be sourced from the following environment variable:
CLOUDFLARE_RETRIES
- Rps int
RPS limit to apply when making calls to the API It can also be sourced from the following environment variable:
CLOUDFLARE_RPS
- account
Id string Configure API client to always use that account.
- api
Client booleanLogging Whether to print logs from the API client (using the default log library logger) It can also be sourced from the following environment variable:
CLOUDFLARE_API_CLIENT_LOGGING
- api
Key string The API key for operations.
- api
Token string The API Token for operations.
- api
User stringService Key A special Cloudflare API key good for a restricted set of endpoints.
- email string
A registered Cloudflare email address.
- max
Backoff number Maximum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MAX_BACKOFF
- min
Backoff number Minimum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MIN_BACKOFF
- retries number
Maximum number of retries to perform when an API request fails It can also be sourced from the following environment variable:
CLOUDFLARE_RETRIES
- rps number
RPS limit to apply when making calls to the API It can also be sourced from the following environment variable:
CLOUDFLARE_RPS
- account_
id str Configure API client to always use that account.
- api_
client_ boollogging Whether to print logs from the API client (using the default log library logger) It can also be sourced from the following environment variable:
CLOUDFLARE_API_CLIENT_LOGGING
- api_
key str The API key for operations.
- api_
token str The API Token for operations.
- api_
user_ strservice_ key A special Cloudflare API key good for a restricted set of endpoints.
- email str
A registered Cloudflare email address.
- max_
backoff int Maximum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MAX_BACKOFF
- min_
backoff int Minimum backoff period in seconds after failed API calls It can also be sourced from the following environment variable:
CLOUDFLARE_MIN_BACKOFF
- retries int
Maximum number of retries to perform when an API request fails It can also be sourced from the following environment variable:
CLOUDFLARE_RETRIES
- rps int
RPS limit to apply when making calls to the API It can also be sourced from the following environment variable:
CLOUDFLARE_RPS
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.