Documentation ¶
Index ¶
- func FirestoreDatabase_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func FirestoreDatabase_IsConstruct(x interface{}) *bool
- func FirestoreDatabase_IsTerraformElement(x interface{}) *bool
- func FirestoreDatabase_IsTerraformResource(x interface{}) *bool
- func FirestoreDatabase_TfResourceType() *string
- func NewFirestoreDatabaseCmekConfigOutputReference_Override(f FirestoreDatabaseCmekConfigOutputReference, ...)
- func NewFirestoreDatabaseTimeoutsOutputReference_Override(f FirestoreDatabaseTimeoutsOutputReference, ...)
- func NewFirestoreDatabase_Override(f FirestoreDatabase, scope constructs.Construct, id *string, ...)
- type FirestoreDatabase
- type FirestoreDatabaseCmekConfig
- type FirestoreDatabaseCmekConfigOutputReference
- type FirestoreDatabaseConfig
- type FirestoreDatabaseTimeouts
- type FirestoreDatabaseTimeoutsOutputReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirestoreDatabase_GenerateConfigForImport ¶
func FirestoreDatabase_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a FirestoreDatabase resource upon running "cdktf plan <stack-name>".
func FirestoreDatabase_IsConstruct ¶
func FirestoreDatabase_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.
Returns: true if `x` is an object created from a class which extends `Construct`.
func FirestoreDatabase_IsTerraformElement ¶
func FirestoreDatabase_IsTerraformElement(x interface{}) *bool
Experimental.
func FirestoreDatabase_IsTerraformResource ¶
func FirestoreDatabase_IsTerraformResource(x interface{}) *bool
Experimental.
func FirestoreDatabase_TfResourceType ¶
func FirestoreDatabase_TfResourceType() *string
func NewFirestoreDatabaseCmekConfigOutputReference_Override ¶
func NewFirestoreDatabaseCmekConfigOutputReference_Override(f FirestoreDatabaseCmekConfigOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewFirestoreDatabaseTimeoutsOutputReference_Override ¶
func NewFirestoreDatabaseTimeoutsOutputReference_Override(f FirestoreDatabaseTimeoutsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewFirestoreDatabase_Override ¶
func NewFirestoreDatabase_Override(f FirestoreDatabase, scope constructs.Construct, id *string, config *FirestoreDatabaseConfig)
Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database google_firestore_database} Resource.
Types ¶
type FirestoreDatabase ¶
type FirestoreDatabase interface { cdktf.TerraformResource AppEngineIntegrationMode() *string SetAppEngineIntegrationMode(val *string) AppEngineIntegrationModeInput() *string // Experimental. CdktfStack() cdktf.TerraformStack CmekConfig() FirestoreDatabaseCmekConfigOutputReference CmekConfigInput() *FirestoreDatabaseCmekConfig ConcurrencyMode() *string SetConcurrencyMode(val *string) ConcurrencyModeInput() *string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) CreateTime() *string DeleteProtectionState() *string SetDeleteProtectionState(val *string) DeleteProtectionStateInput() *string DeletionPolicy() *string SetDeletionPolicy(val *string) DeletionPolicyInput() *string // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) EarliestVersionTime() *string Etag() *string // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string KeyPrefix() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) LocationId() *string SetLocationId(val *string) LocationIdInput() *string Name() *string SetName(val *string) NameInput() *string // The tree node. Node() constructs.Node PointInTimeRecoveryEnablement() *string SetPointInTimeRecoveryEnablement(val *string) PointInTimeRecoveryEnablementInput() *string Project() *string SetProject(val *string) ProjectInput() *string // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Timeouts() FirestoreDatabaseTimeoutsOutputReference TimeoutsInput() interface{} Type() *string SetType(val *string) TypeInput() *string Uid() *string UpdateTime() *string VersionRetentionPeriod() *string // Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. // Experimental. AddMoveTarget(moveTarget *string) // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. HasResourceMove() interface{} // Experimental. ImportFrom(id *string, provider cdktf.TerraformProvider) // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Move the resource corresponding to "id" to this resource. // // Note that the resource being moved from must be marked as moved using it's instance function. // Experimental. MoveFromId(id *string) // Moves this resource to the target resource given by moveTarget. // Experimental. MoveTo(moveTarget *string, index interface{}) // Moves this resource to the resource corresponding to "id". // Experimental. MoveToId(id *string) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutCmekConfig(value *FirestoreDatabaseCmekConfig) PutTimeouts(value *FirestoreDatabaseTimeouts) ResetAppEngineIntegrationMode() ResetCmekConfig() ResetConcurrencyMode() ResetDeleteProtectionState() ResetDeletionPolicy() ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPointInTimeRecoveryEnablement() ResetProject() ResetTimeouts() SynthesizeAttributes() *map[string]interface{} SynthesizeHclAttributes() *map[string]interface{} // Experimental. ToHclTerraform() interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database google_firestore_database}.
func NewFirestoreDatabase ¶
func NewFirestoreDatabase(scope constructs.Construct, id *string, config *FirestoreDatabaseConfig) FirestoreDatabase
Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database google_firestore_database} Resource.
type FirestoreDatabaseCmekConfig ¶
type FirestoreDatabaseCmekConfig struct { // The resource ID of a Cloud KMS key. // // If set, the database created will // be a Customer-managed Encryption Key (CMEK) database encrypted with // this key. This feature is allowlist only in initial launch. // // Only keys in the same location as this database are allowed to be used // for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS // multi-region us. For Firestore's eur3 multi-region, this corresponds to // Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/locations. // // This value should be the KMS key resource ID in the format of // 'projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}'. // How to retrive this resource ID is listed at // https://cloud.google.com/kms/docs/getting-resource-ids#getting_the_id_for_a_key_and_version. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#kms_key_name FirestoreDatabase#kms_key_name} KmsKeyName *string `field:"required" json:"kmsKeyName" yaml:"kmsKeyName"` }
type FirestoreDatabaseCmekConfigOutputReference ¶
type FirestoreDatabaseCmekConfigOutputReference interface { cdktf.ComplexObject ActiveKeyVersion() *[]*string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() *FirestoreDatabaseCmekConfig SetInternalValue(val *FirestoreDatabaseCmekConfig) KmsKeyName() *string SetKmsKeyName(val *string) KmsKeyNameInput() *string // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewFirestoreDatabaseCmekConfigOutputReference ¶
func NewFirestoreDatabaseCmekConfigOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) FirestoreDatabaseCmekConfigOutputReference
type FirestoreDatabaseConfig ¶
type FirestoreDatabaseConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // The location of the database. Available locations are listed at https://cloud.google.com/firestore/docs/locations. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#location_id FirestoreDatabase#location_id} LocationId *string `field:"required" json:"locationId" yaml:"locationId"` // The ID to use for the database, which will become the final component of the database's resource name. // // This value should be 4-63 // characters. Valid characters are /[a-z][0-9]-/ with first character // a letter and the last a letter or a number. Must not be // UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. // "(default)" database id is also valid. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#name FirestoreDatabase#name} Name *string `field:"required" json:"name" yaml:"name"` // The type of the database. See https://cloud.google.com/datastore/docs/firestore-or-datastore for information about how to choose. Possible values: ["FIRESTORE_NATIVE", "DATASTORE_MODE"]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#type FirestoreDatabase#type} Type *string `field:"required" json:"type" yaml:"type"` // The App Engine integration mode to use for this database. Possible values: ["ENABLED", "DISABLED"]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#app_engine_integration_mode FirestoreDatabase#app_engine_integration_mode} AppEngineIntegrationMode *string `field:"optional" json:"appEngineIntegrationMode" yaml:"appEngineIntegrationMode"` // cmek_config block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#cmek_config FirestoreDatabase#cmek_config} CmekConfig *FirestoreDatabaseCmekConfig `field:"optional" json:"cmekConfig" yaml:"cmekConfig"` // The concurrency control mode to use for this database. Possible values: ["OPTIMISTIC", "PESSIMISTIC", "OPTIMISTIC_WITH_ENTITY_GROUPS"]. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#concurrency_mode FirestoreDatabase#concurrency_mode} ConcurrencyMode *string `field:"optional" json:"concurrencyMode" yaml:"concurrencyMode"` // State of delete protection for the database. // // When delete protection is enabled, this database cannot be deleted. // The default value is 'DELETE_PROTECTION_STATE_UNSPECIFIED', which is currently equivalent to 'DELETE_PROTECTION_DISABLED'. // **Note:** Additionally, to delete this database using 'terraform destroy', 'deletion_policy' must be set to 'DELETE'. Possible values: ["DELETE_PROTECTION_STATE_UNSPECIFIED", "DELETE_PROTECTION_ENABLED", "DELETE_PROTECTION_DISABLED"] // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#delete_protection_state FirestoreDatabase#delete_protection_state} DeleteProtectionState *string `field:"optional" json:"deleteProtectionState" yaml:"deleteProtectionState"` // Deletion behavior for this database. // // If the deletion policy is 'ABANDON', the database will be removed from Terraform state but not deleted from Google Cloud upon destruction. // If the deletion policy is 'DELETE', the database will both be removed from Terraform state and deleted from Google Cloud upon destruction. // The default value is 'ABANDON'. // See also 'delete_protection'. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#deletion_policy FirestoreDatabase#deletion_policy} DeletionPolicy *string `field:"optional" json:"deletionPolicy" yaml:"deletionPolicy"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#id FirestoreDatabase#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Whether to enable the PITR feature on this database. // // If 'POINT_IN_TIME_RECOVERY_ENABLED' is selected, reads are supported on selected versions of the data from within the past 7 days. // versionRetentionPeriod and earliestVersionTime can be used to determine the supported versions. These include reads against any timestamp within the past hour // and reads against 1-minute snapshots beyond 1 hour and within 7 days. // If 'POINT_IN_TIME_RECOVERY_DISABLED' is selected, reads are supported on any version of the data from within the past 1 hour. Default value: "POINT_IN_TIME_RECOVERY_DISABLED" Possible values: ["POINT_IN_TIME_RECOVERY_ENABLED", "POINT_IN_TIME_RECOVERY_DISABLED"] // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#point_in_time_recovery_enablement FirestoreDatabase#point_in_time_recovery_enablement} PointInTimeRecoveryEnablement *string `field:"optional" json:"pointInTimeRecoveryEnablement" yaml:"pointInTimeRecoveryEnablement"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#project FirestoreDatabase#project}. Project *string `field:"optional" json:"project" yaml:"project"` // timeouts block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#timeouts FirestoreDatabase#timeouts} Timeouts *FirestoreDatabaseTimeouts `field:"optional" json:"timeouts" yaml:"timeouts"` }
type FirestoreDatabaseTimeouts ¶
type FirestoreDatabaseTimeouts struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#create FirestoreDatabase#create}. Create *string `field:"optional" json:"create" yaml:"create"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#delete FirestoreDatabase#delete}. Delete *string `field:"optional" json:"delete" yaml:"delete"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/6.14.1/docs/resources/firestore_database#update FirestoreDatabase#update}. Update *string `field:"optional" json:"update" yaml:"update"` }
type FirestoreDatabaseTimeoutsOutputReference ¶
type FirestoreDatabaseTimeoutsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) Create() *string SetCreate(val *string) CreateInput() *string // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Delete() *string SetDelete(val *string) DeleteInput() *string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Update() *string SetUpdate(val *string) UpdateInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable ResetCreate() ResetDelete() ResetUpdate() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewFirestoreDatabaseTimeoutsOutputReference ¶
func NewFirestoreDatabaseTimeoutsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) FirestoreDatabaseTimeoutsOutputReference
Source Files ¶
- FirestoreDatabase.go
- FirestoreDatabaseCmekConfig.go
- FirestoreDatabaseCmekConfigOutputReference.go
- FirestoreDatabaseCmekConfigOutputReference__checks.go
- FirestoreDatabaseConfig.go
- FirestoreDatabaseTimeouts.go
- FirestoreDatabaseTimeoutsOutputReference.go
- FirestoreDatabaseTimeoutsOutputReference__checks.go
- FirestoreDatabase__checks.go
- main.go