Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SparkResourceSchema = resource_schema.Schema{ Description: "Apache Spark credential resource", Attributes: map[string]resource_schema.Attribute{ "id": resource_schema.StringAttribute{ Description: "The ID of this resource. Contains the project ID and the credential ID.", Computed: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, }, "project_id": resource_schema.Int64Attribute{ Description: "Project ID to create the Apache Spark credential in", Required: true, PlanModifiers: []planmodifier.Int64{ int64planmodifier.RequiresReplace(), }, }, "credential_id": resource_schema.Int64Attribute{ Description: "The system Apache Spark credential ID", Computed: true, PlanModifiers: []planmodifier.Int64{ int64planmodifier.UseStateForUnknown(), }, }, "target_name": resource_schema.StringAttribute{ Description: "Target name", Optional: true, Computed: true, Default: stringdefault.StaticString("default"), DeprecationMessage: "This field is deprecated at the environment level (it was never possible to set it in the UI) and will be removed in a future release. Please remove it and set the target name at the job level or leverage environment variables.", }, "token": resource_schema.StringAttribute{ Description: "Token for Apache Spark user. Consider using `token_wo` instead, which is not stored in state.", Optional: true, Sensitive: true, Validators: []validator.String{ stringvalidator.ConflictsWith(path.MatchRoot("token_wo")), stringvalidator.PreferWriteOnlyAttribute(path.MatchRoot("token_wo")), }, }, "token_wo": resource_schema.StringAttribute{ Description: "Write-only alternative to `token`. The value is not stored in state. Requires `token_wo_version` to trigger updates.", Optional: true, WriteOnly: true, Validators: []validator.String{ stringvalidator.ConflictsWith(path.MatchRoot("token")), }, }, "token_wo_version": resource_schema.Int64Attribute{ Description: "Version number for `token_wo`. Increment this value to trigger an update of the token when using `token_wo`.", Optional: true, }, "schema": resource_schema.StringAttribute{ Description: "The schema where to create models", Required: true, }, }, }
Functions ¶
func SparkCredentialDataSource ¶
func SparkCredentialDataSource() datasource.DataSource
func SparkCredentialResource ¶
Types ¶
type SparkCredentialResourceModel ¶
type SparkCredentialResourceModel struct {
ID types.String `tfsdk:"id"`
CredentialID types.Int64 `tfsdk:"credential_id"`
ProjectID types.Int64 `tfsdk:"project_id"`
TargetName types.String `tfsdk:"target_name"`
Token types.String `tfsdk:"token"`
TokenWo types.String `tfsdk:"token_wo"`
TokenWoVersion types.Int64 `tfsdk:"token_wo_version"`
Schema types.String `tfsdk:"schema"`
}
Click to show internal directories.
Click to hide internal directories.