azurerm_media_services_account

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// PublicNetworkAccessEnabled: bool, optional
	PublicNetworkAccessEnabled terra.BoolValue `hcl:"public_network_access_enabled,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// StorageAuthenticationType: string, optional
	StorageAuthenticationType terra.StringValue `hcl:"storage_authentication_type,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Encryption: optional
	Encryption *Encryption `hcl:"encryption,block"`
	// Identity: optional
	Identity *Identity `hcl:"identity,block"`
	// KeyDeliveryAccessControl: optional
	KeyDeliveryAccessControl *KeyDeliveryAccessControl `hcl:"key_delivery_access_control,block"`
	// StorageAccount: min=1
	StorageAccount []StorageAccount `hcl:"storage_account,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_media_services_account.

type Encryption

type Encryption struct {
	// KeyVaultKeyIdentifier: string, optional
	KeyVaultKeyIdentifier terra.StringValue `hcl:"key_vault_key_identifier,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// EncryptionManagedIdentity: optional
	ManagedIdentity *EncryptionManagedIdentity `hcl:"managed_identity,block"`
}

type EncryptionAttributes

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

func (EncryptionAttributes) CurrentKeyIdentifier

func (e EncryptionAttributes) CurrentKeyIdentifier() terra.StringValue

func (EncryptionAttributes) InternalRef

func (e EncryptionAttributes) InternalRef() (terra.Reference, error)

func (EncryptionAttributes) InternalTokens

func (e EncryptionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionAttributes) InternalWithRef

func (EncryptionAttributes) KeyVaultKeyIdentifier

func (e EncryptionAttributes) KeyVaultKeyIdentifier() terra.StringValue

func (EncryptionAttributes) ManagedIdentity

func (EncryptionAttributes) Type

type EncryptionManagedIdentity

type EncryptionManagedIdentity struct {
	// UseSystemAssignedIdentity: bool, optional
	UseSystemAssignedIdentity terra.BoolValue `hcl:"use_system_assigned_identity,attr"`
	// UserAssignedIdentityId: string, optional
	UserAssignedIdentityId terra.StringValue `hcl:"user_assigned_identity_id,attr"`
}

type EncryptionManagedIdentityAttributes

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

func (EncryptionManagedIdentityAttributes) InternalRef

func (EncryptionManagedIdentityAttributes) InternalTokens

func (EncryptionManagedIdentityAttributes) InternalWithRef

func (EncryptionManagedIdentityAttributes) UseSystemAssignedIdentity

func (mi EncryptionManagedIdentityAttributes) UseSystemAssignedIdentity() terra.BoolValue

func (EncryptionManagedIdentityAttributes) UserAssignedIdentityId

func (mi EncryptionManagedIdentityAttributes) UserAssignedIdentityId() terra.StringValue

type EncryptionManagedIdentityState

type EncryptionManagedIdentityState struct {
	UseSystemAssignedIdentity bool   `json:"use_system_assigned_identity"`
	UserAssignedIdentityId    string `json:"user_assigned_identity_id"`
}

type EncryptionState

type EncryptionState struct {
	CurrentKeyIdentifier  string                           `json:"current_key_identifier"`
	KeyVaultKeyIdentifier string                           `json:"key_vault_key_identifier"`
	Type                  string                           `json:"type"`
	ManagedIdentity       []EncryptionManagedIdentityState `json:"managed_identity"`
}

type Identity

type Identity struct {
	// IdentityIds: set of string, optional
	IdentityIds terra.SetValue[terra.StringValue] `hcl:"identity_ids,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type IdentityAttributes

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

func (IdentityAttributes) IdentityIds

func (IdentityAttributes) InternalRef

func (i IdentityAttributes) InternalRef() (terra.Reference, error)

func (IdentityAttributes) InternalTokens

func (i IdentityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IdentityAttributes) InternalWithRef

func (i IdentityAttributes) InternalWithRef(ref terra.Reference) IdentityAttributes

func (IdentityAttributes) PrincipalId

func (i IdentityAttributes) PrincipalId() terra.StringValue

func (IdentityAttributes) TenantId

func (i IdentityAttributes) TenantId() terra.StringValue

func (IdentityAttributes) Type

type IdentityState

type IdentityState struct {
	IdentityIds []string `json:"identity_ids"`
	PrincipalId string   `json:"principal_id"`
	TenantId    string   `json:"tenant_id"`
	Type        string   `json:"type"`
}

type KeyDeliveryAccessControl

type KeyDeliveryAccessControl struct {
	// DefaultAction: string, optional
	DefaultAction terra.StringValue `hcl:"default_action,attr"`
	// IpAllowList: set of string, optional
	IpAllowList terra.SetValue[terra.StringValue] `hcl:"ip_allow_list,attr"`
}

type KeyDeliveryAccessControlAttributes

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

func (KeyDeliveryAccessControlAttributes) DefaultAction

func (KeyDeliveryAccessControlAttributes) InternalRef

func (KeyDeliveryAccessControlAttributes) InternalTokens

func (kdac KeyDeliveryAccessControlAttributes) InternalTokens() (hclwrite.Tokens, error)

func (KeyDeliveryAccessControlAttributes) InternalWithRef

func (KeyDeliveryAccessControlAttributes) IpAllowList

type KeyDeliveryAccessControlState

type KeyDeliveryAccessControlState struct {
	DefaultAction string   `json:"default_action"`
	IpAllowList   []string `json:"ip_allow_list"`
}

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 azurerm_media_services_account.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (amsa *Resource) Attributes() azurermMediaServicesAccountAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amsa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amsa *Resource) State() (*azurermMediaServicesAccountState, bool)

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

func (*Resource) StateMust

func (amsa *Resource) StateMust() *azurermMediaServicesAccountState

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

func (*Resource) Type

func (amsa *Resource) Type() string

Type returns the Terraform object type for Resource.

type StorageAccount

type StorageAccount struct {
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// IsPrimary: bool, optional
	IsPrimary terra.BoolValue `hcl:"is_primary,attr"`
	// StorageAccountManagedIdentity: optional
	ManagedIdentity *StorageAccountManagedIdentity `hcl:"managed_identity,block"`
}

type StorageAccountAttributes

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

func (StorageAccountAttributes) Id

func (StorageAccountAttributes) InternalRef

func (sa StorageAccountAttributes) InternalRef() (terra.Reference, error)

func (StorageAccountAttributes) InternalTokens

func (sa StorageAccountAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StorageAccountAttributes) InternalWithRef

func (StorageAccountAttributes) IsPrimary

func (sa StorageAccountAttributes) IsPrimary() terra.BoolValue

func (StorageAccountAttributes) ManagedIdentity

type StorageAccountManagedIdentity

type StorageAccountManagedIdentity struct {
	// UseSystemAssignedIdentity: bool, optional
	UseSystemAssignedIdentity terra.BoolValue `hcl:"use_system_assigned_identity,attr"`
	// UserAssignedIdentityId: string, optional
	UserAssignedIdentityId terra.StringValue `hcl:"user_assigned_identity_id,attr"`
}

type StorageAccountManagedIdentityAttributes

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

func (StorageAccountManagedIdentityAttributes) InternalRef

func (StorageAccountManagedIdentityAttributes) InternalTokens

func (StorageAccountManagedIdentityAttributes) InternalWithRef

func (StorageAccountManagedIdentityAttributes) UseSystemAssignedIdentity

func (mi StorageAccountManagedIdentityAttributes) UseSystemAssignedIdentity() terra.BoolValue

func (StorageAccountManagedIdentityAttributes) UserAssignedIdentityId

func (mi StorageAccountManagedIdentityAttributes) UserAssignedIdentityId() terra.StringValue

type StorageAccountManagedIdentityState

type StorageAccountManagedIdentityState struct {
	UseSystemAssignedIdentity bool   `json:"use_system_assigned_identity"`
	UserAssignedIdentityId    string `json:"user_assigned_identity_id"`
}

type StorageAccountState

type StorageAccountState struct {
	Id              string                               `json:"id"`
	IsPrimary       bool                                 `json:"is_primary"`
	ManagedIdentity []StorageAccountManagedIdentityState `json:"managed_identity"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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