vault_azure_secret_backend_role

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// ApplicationObjectId: string, optional
	ApplicationObjectId terra.StringValue `hcl:"application_object_id,attr"`
	// Backend: string, optional
	Backend terra.StringValue `hcl:"backend,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxTtl: string, optional
	MaxTtl terra.StringValue `hcl:"max_ttl,attr"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// PermanentlyDelete: bool, optional
	PermanentlyDelete terra.BoolValue `hcl:"permanently_delete,attr"`
	// Role: string, required
	Role terra.StringValue `hcl:"role,attr" validate:"required"`
	// SignInAudience: string, optional
	SignInAudience terra.StringValue `hcl:"sign_in_audience,attr"`
	// Tags: list of string, optional
	Tags terra.ListValue[terra.StringValue] `hcl:"tags,attr"`
	// Ttl: string, optional
	Ttl terra.StringValue `hcl:"ttl,attr"`
	// AzureGroups: min=0
	AzureGroups []AzureGroups `hcl:"azure_groups,block" validate:"min=0"`
	// AzureRoles: min=0
	AzureRoles []AzureRoles `hcl:"azure_roles,block" validate:"min=0"`
}

Args contains the configurations for vault_azure_secret_backend_role.

type AzureGroups

type AzureGroups struct {
	// GroupName: string, required
	GroupName terra.StringValue `hcl:"group_name,attr" validate:"required"`
}

type AzureGroupsAttributes

type AzureGroupsAttributes struct {
	// contains filtered or unexported fields
}

func (AzureGroupsAttributes) GroupName

func (ag AzureGroupsAttributes) GroupName() terra.StringValue

func (AzureGroupsAttributes) InternalRef

func (ag AzureGroupsAttributes) InternalRef() (terra.Reference, error)

func (AzureGroupsAttributes) InternalTokens

func (ag AzureGroupsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AzureGroupsAttributes) InternalWithRef

func (AzureGroupsAttributes) ObjectId

func (ag AzureGroupsAttributes) ObjectId() terra.StringValue

type AzureGroupsState

type AzureGroupsState struct {
	GroupName string `json:"group_name"`
	ObjectId  string `json:"object_id"`
}

type AzureRoles

type AzureRoles struct {
	// RoleId: string, optional
	RoleId terra.StringValue `hcl:"role_id,attr"`
	// RoleName: string, optional
	RoleName terra.StringValue `hcl:"role_name,attr"`
	// Scope: string, required
	Scope terra.StringValue `hcl:"scope,attr" validate:"required"`
}

type AzureRolesAttributes

type AzureRolesAttributes struct {
	// contains filtered or unexported fields
}

func (AzureRolesAttributes) InternalRef

func (ar AzureRolesAttributes) InternalRef() (terra.Reference, error)

func (AzureRolesAttributes) InternalTokens

func (ar AzureRolesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AzureRolesAttributes) InternalWithRef

func (ar AzureRolesAttributes) InternalWithRef(ref terra.Reference) AzureRolesAttributes

func (AzureRolesAttributes) RoleId

func (AzureRolesAttributes) RoleName

func (ar AzureRolesAttributes) RoleName() terra.StringValue

func (AzureRolesAttributes) Scope

type AzureRolesState

type AzureRolesState struct {
	RoleId   string `json:"role_id"`
	RoleName string `json:"role_name"`
	Scope    string `json:"scope"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource vault_azure_secret_backend_role.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (vasbr *Resource) Attributes() vaultAzureSecretBackendRoleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (vasbr *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (vasbr *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (vasbr *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (vasbr *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (vasbr *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (vasbr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (vasbr *Resource) State() (*vaultAzureSecretBackendRoleState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (vasbr *Resource) StateMust() *vaultAzureSecretBackendRoleState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (vasbr *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL