Represents a {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs cloudflare}.
import io.cdktn.providers.cloudflare.provider.CloudflareProvider;
CloudflareProvider.Builder.create(Construct scope, java.lang.String id)
// .alias(java.lang.String)
// .apiKey(java.lang.String)
// .apiToken(java.lang.String)
// .apiUserServiceKey(java.lang.String)
// .baseUrl(java.lang.String)
// .email(java.lang.String)
// .userAgentOperatorSuffix(java.lang.String)
.build();| Name | Type | Description |
|---|---|---|
scope |
software.constructs.Construct |
The scope in which to define this construct. |
id |
java.lang.String |
The scoped construct ID. |
alias |
java.lang.String |
Alias name. |
apiKey |
java.lang.String |
The API key for operations. |
apiToken |
java.lang.String |
The API Token for operations. |
apiUserServiceKey |
java.lang.String |
A special Cloudflare API key good for a restricted set of endpoints. |
baseUrl |
java.lang.String |
Value to override the default HTTP client base URL. Alternatively, can be configured using the base_url environment variable. |
email |
java.lang.String |
A registered Cloudflare email address. |
userAgentOperatorSuffix |
java.lang.String |
A value to append to the HTTP User Agent for all API calls. |
- Type: software.constructs.Construct
The scope in which to define this construct.
- Type: java.lang.String
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: java.lang.String
Alias name.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#alias CloudflareProvider#alias}
- Type: java.lang.String
The API key for operations.
Alternatively, can be configured using the CLOUDFLARE_API_KEY environment variable. API keys are now considered legacy by Cloudflare, API tokens should be used instead. Must provide only one of api_key, api_token, api_user_service_key.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#api_key CloudflareProvider#api_key}
- Type: java.lang.String
The API Token for operations.
Alternatively, can be configured using the CLOUDFLARE_API_TOKEN environment variable. Must provide only one of api_key, api_token, api_user_service_key.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#api_token CloudflareProvider#api_token}
- Type: java.lang.String
A special Cloudflare API key good for a restricted set of endpoints.
Alternatively, can be configured using the CLOUDFLARE_API_USER_SERVICE_KEY environment variable. Must provide only one of api_key, api_token, api_user_service_key.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#api_user_service_key CloudflareProvider#api_user_service_key}
- Type: java.lang.String
Value to override the default HTTP client base URL. Alternatively, can be configured using the base_url environment variable.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#base_url CloudflareProvider#base_url}
- Type: java.lang.String
A registered Cloudflare email address.
Alternatively, can be configured using the CLOUDFLARE_EMAIL environment variable. Required when using api_key. Conflicts with api_token.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#email CloudflareProvider#email}
- Type: java.lang.String
A value to append to the HTTP User Agent for all API calls.
This value is not something most users need to modify however, if you are using a non-standard provider or operator configuration, this is recommended to assist in uniquely identifying your traffic. Setting this value will remove the Terraform version from the HTTP User Agent string and may have unintended consequences. Alternatively, can be configured using the CLOUDFLARE_USER_AGENT_OPERATOR_SUFFIX environment variable.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#user_agent_operator_suffix CloudflareProvider#user_agent_operator_suffix}
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
with |
Applies one or more mixins to this construct. |
addOverride |
No description. |
overrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
resetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
toHclTerraform |
No description. |
toMetadata |
No description. |
toTerraform |
Adds this resource to the terraform JSON output. |
resetAlias |
No description. |
resetApiKey |
No description. |
resetApiToken |
No description. |
resetApiUserServiceKey |
No description. |
resetBaseUrl |
No description. |
resetEmail |
No description. |
resetUserAgentOperatorSuffix |
No description. |
public java.lang.String toString()Returns a string representation of this construct.
public IConstruct with(IMixin... mixins)Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
- Type: software.constructs.IMixin...
The mixins to apply.
public void addOverride(java.lang.String path, java.lang.Object value)- Type: java.lang.String
- Type: java.lang.Object
public void overrideLogicalId(java.lang.String newLogicalId)Overrides the auto-generated logical ID with a specific ID.
- Type: java.lang.String
The new logical ID to use for this stack element.
public void resetOverrideLogicalId()Resets a previously passed logical Id to use the auto-generated logical id again.
public java.lang.Object toHclTerraform()public java.lang.Object toMetadata()public java.lang.Object toTerraform()Adds this resource to the terraform JSON output.
public void resetAlias()public void resetApiKey()public void resetApiToken()public void resetApiUserServiceKey()public void resetBaseUrl()public void resetEmail()public void resetUserAgentOperatorSuffix()| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
isTerraformElement |
No description. |
isTerraformProvider |
No description. |
generateConfigForImport |
Generates CDKTN code for importing a CloudflareProvider resource upon running "cdktn plan ". |
import io.cdktn.providers.cloudflare.provider.CloudflareProvider;
CloudflareProvider.isConstruct(java.lang.Object x)Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
- Type: java.lang.Object
Any object.
import io.cdktn.providers.cloudflare.provider.CloudflareProvider;
CloudflareProvider.isTerraformElement(java.lang.Object x)- Type: java.lang.Object
import io.cdktn.providers.cloudflare.provider.CloudflareProvider;
CloudflareProvider.isTerraformProvider(java.lang.Object x)- Type: java.lang.Object
import io.cdktn.providers.cloudflare.provider.CloudflareProvider;
CloudflareProvider.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId),CloudflareProvider.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId, TerraformProvider provider)Generates CDKTN code for importing a CloudflareProvider resource upon running "cdktn plan ".
- Type: software.constructs.Construct
The scope in which to define this construct.
- Type: java.lang.String
The construct id used in the generated config for the CloudflareProvider to import.
- Type: java.lang.String
The id of the existing CloudflareProvider that should be imported.
Refer to the {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#import import section} in the documentation of this resource for the id to use
- Type: io.cdktn.cdktn.TerraformProvider
? Optional instance of the provider where the CloudflareProvider to import is found.
| Name | Type | Description |
|---|---|---|
node |
software.constructs.Node |
The tree node. |
cdktfStack |
io.cdktn.cdktn.TerraformStack |
No description. |
fqn |
java.lang.String |
No description. |
friendlyUniqueId |
java.lang.String |
No description. |
metaAttributes |
java.util.Map<java.lang.String, java.lang.Object> |
No description. |
terraformResourceType |
java.lang.String |
No description. |
terraformGeneratorMetadata |
io.cdktn.cdktn.TerraformProviderGeneratorMetadata |
No description. |
terraformProviderSource |
java.lang.String |
No description. |
alias |
java.lang.String |
No description. |
aliasInput |
java.lang.String |
No description. |
apiKeyInput |
java.lang.String |
No description. |
apiTokenInput |
java.lang.String |
No description. |
apiUserServiceKeyInput |
java.lang.String |
No description. |
baseUrlInput |
java.lang.String |
No description. |
emailInput |
java.lang.String |
No description. |
userAgentOperatorSuffixInput |
java.lang.String |
No description. |
apiKey |
java.lang.String |
No description. |
apiToken |
java.lang.String |
No description. |
apiUserServiceKey |
java.lang.String |
No description. |
baseUrl |
java.lang.String |
No description. |
email |
java.lang.String |
No description. |
userAgentOperatorSuffix |
java.lang.String |
No description. |
public Node getNode();- Type: software.constructs.Node
The tree node.
public TerraformStack getCdktfStack();- Type: io.cdktn.cdktn.TerraformStack
public java.lang.String getFqn();- Type: java.lang.String
public java.lang.String getFriendlyUniqueId();- Type: java.lang.String
public java.util.Map<java.lang.String, java.lang.Object> getMetaAttributes();- Type: java.util.Map<java.lang.String, java.lang.Object>
public java.lang.String getTerraformResourceType();- Type: java.lang.String
public TerraformProviderGeneratorMetadata getTerraformGeneratorMetadata();- Type: io.cdktn.cdktn.TerraformProviderGeneratorMetadata
public java.lang.String getTerraformProviderSource();- Type: java.lang.String
public java.lang.String getAlias();- Type: java.lang.String
public java.lang.String getAliasInput();- Type: java.lang.String
public java.lang.String getApiKeyInput();- Type: java.lang.String
public java.lang.String getApiTokenInput();- Type: java.lang.String
public java.lang.String getApiUserServiceKeyInput();- Type: java.lang.String
public java.lang.String getBaseUrlInput();- Type: java.lang.String
public java.lang.String getEmailInput();- Type: java.lang.String
public java.lang.String getUserAgentOperatorSuffixInput();- Type: java.lang.String
public java.lang.String getApiKey();- Type: java.lang.String
public java.lang.String getApiToken();- Type: java.lang.String
public java.lang.String getApiUserServiceKey();- Type: java.lang.String
public java.lang.String getBaseUrl();- Type: java.lang.String
public java.lang.String getEmail();- Type: java.lang.String
public java.lang.String getUserAgentOperatorSuffix();- Type: java.lang.String
| Name | Type | Description |
|---|---|---|
tfResourceType |
java.lang.String |
No description. |
public java.lang.String getTfResourceType();- Type: java.lang.String
import io.cdktn.providers.cloudflare.provider.CloudflareProviderConfig;
CloudflareProviderConfig.builder()
// .alias(java.lang.String)
// .apiKey(java.lang.String)
// .apiToken(java.lang.String)
// .apiUserServiceKey(java.lang.String)
// .baseUrl(java.lang.String)
// .email(java.lang.String)
// .userAgentOperatorSuffix(java.lang.String)
.build();| Name | Type | Description |
|---|---|---|
alias |
java.lang.String |
Alias name. |
apiKey |
java.lang.String |
The API key for operations. |
apiToken |
java.lang.String |
The API Token for operations. |
apiUserServiceKey |
java.lang.String |
A special Cloudflare API key good for a restricted set of endpoints. |
baseUrl |
java.lang.String |
Value to override the default HTTP client base URL. Alternatively, can be configured using the base_url environment variable. |
email |
java.lang.String |
A registered Cloudflare email address. |
userAgentOperatorSuffix |
java.lang.String |
A value to append to the HTTP User Agent for all API calls. |
public java.lang.String getAlias();- Type: java.lang.String
Alias name.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#alias CloudflareProvider#alias}
public java.lang.String getApiKey();- Type: java.lang.String
The API key for operations.
Alternatively, can be configured using the CLOUDFLARE_API_KEY environment variable. API keys are now considered legacy by Cloudflare, API tokens should be used instead. Must provide only one of api_key, api_token, api_user_service_key.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#api_key CloudflareProvider#api_key}
public java.lang.String getApiToken();- Type: java.lang.String
The API Token for operations.
Alternatively, can be configured using the CLOUDFLARE_API_TOKEN environment variable. Must provide only one of api_key, api_token, api_user_service_key.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#api_token CloudflareProvider#api_token}
public java.lang.String getApiUserServiceKey();- Type: java.lang.String
A special Cloudflare API key good for a restricted set of endpoints.
Alternatively, can be configured using the CLOUDFLARE_API_USER_SERVICE_KEY environment variable. Must provide only one of api_key, api_token, api_user_service_key.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#api_user_service_key CloudflareProvider#api_user_service_key}
public java.lang.String getBaseUrl();- Type: java.lang.String
Value to override the default HTTP client base URL. Alternatively, can be configured using the base_url environment variable.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#base_url CloudflareProvider#base_url}
public java.lang.String getEmail();- Type: java.lang.String
A registered Cloudflare email address.
Alternatively, can be configured using the CLOUDFLARE_EMAIL environment variable. Required when using api_key. Conflicts with api_token.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#email CloudflareProvider#email}
public java.lang.String getUserAgentOperatorSuffix();- Type: java.lang.String
A value to append to the HTTP User Agent for all API calls.
This value is not something most users need to modify however, if you are using a non-standard provider or operator configuration, this is recommended to assist in uniquely identifying your traffic. Setting this value will remove the Terraform version from the HTTP User Agent string and may have unintended consequences. Alternatively, can be configured using the CLOUDFLARE_USER_AGENT_OPERATOR_SUFFIX environment variable.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cloudflare/cloudflare/5.19.1/docs#user_agent_operator_suffix CloudflareProvider#user_agent_operator_suffix}