types

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	S3SpecModelAttrTypes = map[string]attr.Type{
		"role_name":      types.StringType,
		"bucket_name":    types.StringType,
		"region":         types.StringType,
		"kms_arn":        types.StringType,
		"aws_account_id": types.StringType,
	}

	GcsSpecModelAttrTypes = map[string]attr.Type{
		"service_account_id":    types.StringType,
		"bucket_name":           types.StringType,
		"gcp_project_id":        types.StringType,
		"region":                types.StringType,
		"service_account_email": types.StringType,
	}

	KinesisSpecModelAttrTypes = map[string]attr.Type{
		"role_name":       types.StringType,
		"destination_uri": types.StringType,
		"region":          types.StringType,
	}

	PubSubSpecModelAttrTypes = map[string]attr.Type{
		"service_account_id":    types.StringType,
		"topic_name":            types.StringType,
		"gcp_project_id":        types.StringType,
		"service_account_email": types.StringType,
	}
)

Functions

func ListDiff added in v1.1.0

func ListDiff[T comparable](old, planned []T) (added, removed []T)

func MapDiff added in v1.0.0

func MapDiff[K comparable, V comparable](old, planned map[K]V) (added, removed, modified map[K]V)

Types

type CaseInsensitiveStringType

type CaseInsensitiveStringType struct {
	basetypes.StringType
}

func (CaseInsensitiveStringType) Equal

func (CaseInsensitiveStringType) String

func (t CaseInsensitiveStringType) String() string

func (CaseInsensitiveStringType) ValueFromString

func (CaseInsensitiveStringType) ValueFromTerraform

func (t CaseInsensitiveStringType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (CaseInsensitiveStringType) ValueType

type CaseInsensitiveStringValue

type CaseInsensitiveStringValue struct {
	basetypes.StringValue
}

func CaseInsensitiveString

func CaseInsensitiveString(val string) CaseInsensitiveStringValue

func (CaseInsensitiveStringValue) Equal

func (CaseInsensitiveStringValue) StringSemanticEquals

func (v CaseInsensitiveStringValue) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)

func (CaseInsensitiveStringValue) Type

type EncodedCAType added in v0.0.10

type EncodedCAType struct {
	basetypes.StringType
}

func (EncodedCAType) Equal added in v0.0.10

func (t EncodedCAType) Equal(o attr.Type) bool

func (EncodedCAType) ValueFromString added in v0.0.10

func (EncodedCAType) ValueFromTerraform added in v0.0.10

func (t EncodedCAType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

type EncodedCAValue added in v0.0.10

type EncodedCAValue struct {
	basetypes.StringValue
}

func EncodedCA added in v0.0.10

func EncodedCA(val string) EncodedCAValue

func (EncodedCAValue) Equal added in v0.0.10

func (v EncodedCAValue) Equal(o attr.Value) bool

func (EncodedCAValue) StringSemanticEquals added in v0.0.10

func (v EncodedCAValue) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)

func (EncodedCAValue) Type added in v0.0.10

func (v EncodedCAValue) Type(ctx context.Context) attr.Type

type GCSSpecModel added in v0.7.0

type GCSSpecModel struct {
	// The customer service account ID that Temporal Cloud impersonates for writing records to the customer's GCS bucket
	SaId types.String `tfsdk:"service_account_id"`

	// The name of the destination GCS bucket where Temporal will send data
	BucketName types.String `tfsdk:"bucket_name"`

	// The GCP project ID associated with the GCS bucket and service account
	GcpProjectId types.String `tfsdk:"gcp_project_id"`

	// The region of the gcs bucket
	Region types.String `tfsdk:"region"`

	// The service account email associated with the GCS bucket and service account
	ServiceAccountEmail types.String `tfsdk:"service_account_email"`
}

type KinesisSpecModel added in v1.1.2

type KinesisSpecModel struct {
	// The IAM role that Temporal Cloud assumes for writing records to the customer's Kinesis stream
	RoleName types.String `tfsdk:"role_name"`

	// The destination URI of the Kinesis stream where Temporal will send data
	DestinationUri types.String `tfsdk:"destination_uri"`

	// The region of the Kinesis stream
	Region types.String `tfsdk:"region"`
}

type PubSubSpecModel added in v1.1.2

type PubSubSpecModel struct {
	// The customer service account ID that Temporal Cloud impersonates for writing records to the customer's PubSub topic
	ServiceAccountId types.String `tfsdk:"service_account_id"`

	// The destination PubSub topic name for Temporal
	TopicName types.String `tfsdk:"topic_name"`

	// The GCP project ID of the PubSub topic and service account
	GcpProjectId types.String `tfsdk:"gcp_project_id"`

	// The service account email associated with the PubSub topic and service account
	ServiceAccountEmail types.String `tfsdk:"service_account_email"`
}

type S3SpecModel added in v0.7.0

type S3SpecModel struct {
	// The IAM role that Temporal Cloud assumes for writing records to the customer's S3 bucket
	RoleName types.String `tfsdk:"role_name"`

	// The name of the destination S3 bucket where Temporal will send data
	BucketName types.String `tfsdk:"bucket_name"`

	// The region where the S3 bucket is located
	Region types.String `tfsdk:"region"`

	// The AWS Key Management Service (KMS) ARN used for encryption
	KmsArn types.String `tfsdk:"kms_arn"`

	// The AWS account ID associated with the S3 bucket and the assumed role
	AwsAccountId types.String `tfsdk:"aws_account_id"`
}

type UnorderedStringListType added in v0.5.0

type UnorderedStringListType struct {
	basetypes.ListType
}

func (UnorderedStringListType) Equal added in v0.5.0

func (UnorderedStringListType) String added in v0.5.0

func (t UnorderedStringListType) String() string

func (UnorderedStringListType) ValueFromList added in v0.5.0

func (UnorderedStringListType) ValueFromTerraform added in v0.5.0

func (t UnorderedStringListType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (UnorderedStringListType) ValueType added in v0.5.0

func (UnorderedStringListType) WithElementType added in v0.5.0

func (t UnorderedStringListType) WithElementType(typ attr.Type) attr.TypeWithElementType

type UnorderedStringListValue added in v0.5.0

type UnorderedStringListValue struct {
	basetypes.ListValue
}

func (UnorderedStringListValue) Equal added in v0.5.0

func (UnorderedStringListValue) ListSemanticEquals added in v0.5.0

func (v UnorderedStringListValue) ListSemanticEquals(ctx context.Context, newValuable basetypes.ListValuable) (bool, diag.Diagnostics)

func (UnorderedStringListValue) Type added in v0.5.0

type ZeroObjectType added in v1.0.0

type ZeroObjectType struct {
	basetypes.ObjectType
}

func (ZeroObjectType) Equal added in v1.0.0

func (t ZeroObjectType) Equal(o attr.Type) bool

func (ZeroObjectType) String added in v1.0.0

func (t ZeroObjectType) String() string

func (ZeroObjectType) ValueFromObject added in v1.0.0

func (ZeroObjectType) ValueFromTerraform added in v1.0.0

func (t ZeroObjectType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ZeroObjectType) ValueType added in v1.0.0

func (t ZeroObjectType) ValueType(ctx context.Context) attr.Value

func (ZeroObjectType) WithAttributeTypes added in v1.0.0

func (t ZeroObjectType) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes

type ZeroObjectValue added in v1.0.0

type ZeroObjectValue struct {
	basetypes.ObjectValue
}

func (ZeroObjectValue) Equal added in v1.0.0

func (v ZeroObjectValue) Equal(o attr.Value) bool

func (ZeroObjectValue) IsZero added in v1.0.0

func (v ZeroObjectValue) IsZero(ctx context.Context) bool

func (ZeroObjectValue) ObjectSemanticEquals added in v1.0.0

func (v ZeroObjectValue) ObjectSemanticEquals(ctx context.Context, newValuable basetypes.ObjectValuable) (bool, diag.Diagnostics)

func (ZeroObjectValue) Type added in v1.0.0

func (v ZeroObjectValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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