Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Schema = schema.Schema{ Description: fmt.Sprintf("%s\n%s", descriptions["main"], descriptions["deprecation_message"]), MarkdownDescription: fmt.Sprintf("%s\n\n!> %s\n\n%s", descriptions["main"], descriptions["deprecation_message"], exampleMoveToObservability), DeprecationMessage: descriptions["deprecation_message"], Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`,`username`\".", Computed: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, }, "project_id": schema.StringAttribute{ Description: "STACKIT project ID to which the credential is associated.", Required: true, Validators: []validator.String{ validate.UUID(), }, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), }, }, "instance_id": schema.StringAttribute{ Description: "The Argus Instance ID the credential belongs to.", Required: true, Validators: []validator.String{ validate.UUID(), }, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), }, }, "username": schema.StringAttribute{ Description: "Credential username", Computed: true, Validators: []validator.String{ stringvalidator.LengthAtLeast(1), }, }, "password": schema.StringAttribute{ Description: "Credential password", Computed: true, Sensitive: true, Validators: []validator.String{ stringvalidator.LengthAtLeast(1), }, PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, }, }, } )
Functions ¶
func NewCredentialResource ¶
NewCredentialResource is a helper function to simplify the provider implementation.
Types ¶
Click to show internal directories.
Click to hide internal directories.