Skip to content

Latest commit

 

History

History
834 lines (523 loc) · 32.5 KB

provider.go.md

File metadata and controls

834 lines (523 loc) · 32.5 KB

provider Submodule

Constructs

DigitaloceanProvider

Represents a {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs digitalocean}.

Initializers

import "github.com/cdktf/cdktf-provider-digitalocean-go/digitalocean/v11/provider"

provider.NewDigitaloceanProvider(scope Construct, id *string, config DigitaloceanProviderConfig) DigitaloceanProvider
Name Type Description
scope github.com/aws/constructs-go/constructs/v10.Construct The scope in which to define this construct.
id *string The scoped construct ID.
config DigitaloceanProviderConfig No description.

scopeRequired
  • Type: github.com/aws/constructs-go/constructs/v10.Construct

The scope in which to define this construct.


idRequired
  • Type: *string

The scoped construct ID.

Must be unique amongst siblings in the same scope


configOptional

Methods

Name Description
ToString Returns a string representation of 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.
ResetApiEndpoint No description.
ResetHttpRetryMax No description.
ResetHttpRetryWaitMax No description.
ResetHttpRetryWaitMin No description.
ResetRequestsPerSecond No description.
ResetSpacesAccessId No description.
ResetSpacesEndpoint No description.
ResetSpacesSecretKey No description.
ResetToken No description.

ToString
func ToString() *string

Returns a string representation of this construct.

AddOverride
func AddOverride(path *string, value interface{})
pathRequired
  • Type: *string

valueRequired
  • Type: interface{}

OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired
  • Type: *string

The new logical ID to use for this stack element.


ResetOverrideLogicalId
func ResetOverrideLogicalId()

Resets a previously passed logical Id to use the auto-generated logical id again.

ToHclTerraform
func ToHclTerraform() interface{}
ToMetadata
func ToMetadata() interface{}
ToTerraform
func ToTerraform() interface{}

Adds this resource to the terraform JSON output.

ResetAlias
func ResetAlias()
ResetApiEndpoint
func ResetApiEndpoint()
ResetHttpRetryMax
func ResetHttpRetryMax()
ResetHttpRetryWaitMax
func ResetHttpRetryWaitMax()
ResetHttpRetryWaitMin
func ResetHttpRetryWaitMin()
ResetRequestsPerSecond
func ResetRequestsPerSecond()
ResetSpacesAccessId
func ResetSpacesAccessId()
ResetSpacesEndpoint
func ResetSpacesEndpoint()
ResetSpacesSecretKey
func ResetSpacesSecretKey()
ResetToken
func ResetToken()

Static Functions

Name Description
IsConstruct Checks if x is a construct.
IsTerraformElement No description.
IsTerraformProvider No description.
GenerateConfigForImport Generates CDKTF code for importing a DigitaloceanProvider resource upon running "cdktf plan ".

IsConstruct
import "github.com/cdktf/cdktf-provider-digitalocean-go/digitalocean/v11/provider"

provider.DigitaloceanProvider_IsConstruct(x interface{}) *bool

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.

xRequired
  • Type: interface{}

Any object.


IsTerraformElement
import "github.com/cdktf/cdktf-provider-digitalocean-go/digitalocean/v11/provider"

provider.DigitaloceanProvider_IsTerraformElement(x interface{}) *bool
xRequired
  • Type: interface{}

IsTerraformProvider
import "github.com/cdktf/cdktf-provider-digitalocean-go/digitalocean/v11/provider"

provider.DigitaloceanProvider_IsTerraformProvider(x interface{}) *bool
xRequired
  • Type: interface{}

GenerateConfigForImport
import "github.com/cdktf/cdktf-provider-digitalocean-go/digitalocean/v11/provider"

provider.DigitaloceanProvider_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource

Generates CDKTF code for importing a DigitaloceanProvider resource upon running "cdktf plan ".

scopeRequired
  • Type: github.com/aws/constructs-go/constructs/v10.Construct

The scope in which to define this construct.


importToIdRequired
  • Type: *string

The construct id used in the generated config for the DigitaloceanProvider to import.


importFromIdRequired
  • Type: *string

The id of the existing DigitaloceanProvider that should be imported.

Refer to the {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#import import section} in the documentation of this resource for the id to use


providerOptional
  • Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider

? Optional instance of the provider where the DigitaloceanProvider to import is found.


Properties

Name Type Description
Node github.com/aws/constructs-go/constructs/v10.Node The tree node.
CdktfStack github.com/hashicorp/terraform-cdk-go/cdktf.TerraformStack No description.
Fqn *string No description.
FriendlyUniqueId *string No description.
MetaAttributes *map[string]interface{} No description.
TerraformResourceType *string No description.
TerraformGeneratorMetadata github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProviderGeneratorMetadata No description.
TerraformProviderSource *string No description.
Alias *string No description.
AliasInput *string No description.
ApiEndpointInput *string No description.
HttpRetryMaxInput *f64 No description.
HttpRetryWaitMaxInput *f64 No description.
HttpRetryWaitMinInput *f64 No description.
RequestsPerSecondInput *f64 No description.
SpacesAccessIdInput *string No description.
SpacesEndpointInput *string No description.
SpacesSecretKeyInput *string No description.
TokenInput *string No description.
ApiEndpoint *string No description.
HttpRetryMax *f64 No description.
HttpRetryWaitMax *f64 No description.
HttpRetryWaitMin *f64 No description.
RequestsPerSecond *f64 No description.
SpacesAccessId *string No description.
SpacesEndpoint *string No description.
SpacesSecretKey *string No description.
Token *string No description.

NodeRequired
func Node() Node
  • Type: github.com/aws/constructs-go/constructs/v10.Node

The tree node.


CdktfStackRequired
func CdktfStack() TerraformStack
  • Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformStack

FqnRequired
func Fqn() *string
  • Type: *string

FriendlyUniqueIdRequired
func FriendlyUniqueId() *string
  • Type: *string

MetaAttributesRequired
func MetaAttributes() *map[string]interface{}
  • Type: *map[string]interface{}

TerraformResourceTypeRequired
func TerraformResourceType() *string
  • Type: *string

TerraformGeneratorMetadataOptional
func TerraformGeneratorMetadata() TerraformProviderGeneratorMetadata
  • Type: github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProviderGeneratorMetadata

TerraformProviderSourceOptional
func TerraformProviderSource() *string
  • Type: *string

AliasOptional
func Alias() *string
  • Type: *string

AliasInputOptional
func AliasInput() *string
  • Type: *string

ApiEndpointInputOptional
func ApiEndpointInput() *string
  • Type: *string

HttpRetryMaxInputOptional
func HttpRetryMaxInput() *f64
  • Type: *f64

HttpRetryWaitMaxInputOptional
func HttpRetryWaitMaxInput() *f64
  • Type: *f64

HttpRetryWaitMinInputOptional
func HttpRetryWaitMinInput() *f64
  • Type: *f64

RequestsPerSecondInputOptional
func RequestsPerSecondInput() *f64
  • Type: *f64

SpacesAccessIdInputOptional
func SpacesAccessIdInput() *string
  • Type: *string

SpacesEndpointInputOptional
func SpacesEndpointInput() *string
  • Type: *string

SpacesSecretKeyInputOptional
func SpacesSecretKeyInput() *string
  • Type: *string

TokenInputOptional
func TokenInput() *string
  • Type: *string

ApiEndpointOptional
func ApiEndpoint() *string
  • Type: *string

HttpRetryMaxOptional
func HttpRetryMax() *f64
  • Type: *f64

HttpRetryWaitMaxOptional
func HttpRetryWaitMax() *f64
  • Type: *f64

HttpRetryWaitMinOptional
func HttpRetryWaitMin() *f64
  • Type: *f64

RequestsPerSecondOptional
func RequestsPerSecond() *f64
  • Type: *f64

SpacesAccessIdOptional
func SpacesAccessId() *string
  • Type: *string

SpacesEndpointOptional
func SpacesEndpoint() *string
  • Type: *string

SpacesSecretKeyOptional
func SpacesSecretKey() *string
  • Type: *string

TokenOptional
func Token() *string
  • Type: *string

Constants

Name Type Description
TfResourceType *string No description.

TfResourceTypeRequired
func TfResourceType() *string
  • Type: *string

Structs

DigitaloceanProviderConfig

Initializer

import "github.com/cdktf/cdktf-provider-digitalocean-go/digitalocean/v11/provider"

&provider.DigitaloceanProviderConfig {
	Alias: *string,
	ApiEndpoint: *string,
	HttpRetryMax: *f64,
	HttpRetryWaitMax: *f64,
	HttpRetryWaitMin: *f64,
	RequestsPerSecond: *f64,
	SpacesAccessId: *string,
	SpacesEndpoint: *string,
	SpacesSecretKey: *string,
	Token: *string,
}

Properties

Name Type Description
Alias *string Alias name.
ApiEndpoint *string The URL to use for the DigitalOcean API.
HttpRetryMax *f64 The maximum number of retries on a failed API request.
HttpRetryWaitMax *f64 The maximum wait time (in seconds) between failed API requests.
HttpRetryWaitMin *f64 The minimum wait time (in seconds) between failed API requests.
RequestsPerSecond *f64 The rate of requests per second to limit the HTTP client.
SpacesAccessId *string The access key ID for Spaces API operations.
SpacesEndpoint *string The URL to use for the DigitalOcean Spaces API.
SpacesSecretKey *string The secret access key for Spaces API operations.
Token *string The token key for API operations.

AliasOptional
Alias *string
  • Type: *string

Alias name.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#alias DigitaloceanProvider#alias}


ApiEndpointOptional
ApiEndpoint *string
  • Type: *string

The URL to use for the DigitalOcean API.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#api_endpoint DigitaloceanProvider#api_endpoint}


HttpRetryMaxOptional
HttpRetryMax *f64
  • Type: *f64

The maximum number of retries on a failed API request.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#http_retry_max DigitaloceanProvider#http_retry_max}


HttpRetryWaitMaxOptional
HttpRetryWaitMax *f64
  • Type: *f64

The maximum wait time (in seconds) between failed API requests.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#http_retry_wait_max DigitaloceanProvider#http_retry_wait_max}


HttpRetryWaitMinOptional
HttpRetryWaitMin *f64
  • Type: *f64

The minimum wait time (in seconds) between failed API requests.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#http_retry_wait_min DigitaloceanProvider#http_retry_wait_min}


RequestsPerSecondOptional
RequestsPerSecond *f64
  • Type: *f64

The rate of requests per second to limit the HTTP client.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#requests_per_second DigitaloceanProvider#requests_per_second}


SpacesAccessIdOptional
SpacesAccessId *string
  • Type: *string

The access key ID for Spaces API operations.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#spaces_access_id DigitaloceanProvider#spaces_access_id}


SpacesEndpointOptional
SpacesEndpoint *string
  • Type: *string

The URL to use for the DigitalOcean Spaces API.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#spaces_endpoint DigitaloceanProvider#spaces_endpoint}


SpacesSecretKeyOptional
SpacesSecretKey *string
  • Type: *string

The secret access key for Spaces API operations.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#spaces_secret_key DigitaloceanProvider#spaces_secret_key}


TokenOptional
Token *string
  • Type: *string

The token key for API operations.

Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.46.1/docs#token DigitaloceanProvider#token}