environments

package
v0.5.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsEnvironmentSchema = schema.Schema{
	MarkdownDescription: "The environment is a logical entity that represents the association of your user account with multiple compute resources using which you can provision and manage workloads.",
	Attributes: map[string]schema.Attribute{
		"id": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"crn": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"polling_options": schema.SingleNestedAttribute{
			MarkdownDescription: "Polling related configuration options that could specify various values that will be used during CDP resource creation.",
			Optional:            true,
			Attributes: map[string]schema.Attribute{
				"async": schema.BoolAttribute{
					MarkdownDescription: "Boolean value that specifies if Terraform should wait for resource creation/deletion.",
					Optional:            true,
					Computed:            true,
					Default:             booldefault.StaticBool(false),
					PlanModifiers: []planmodifier.Bool{
						boolplanmodifier.UseStateForUnknown(),
					},
				},
				"polling_timeout": schema.Int64Attribute{
					MarkdownDescription: "Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.",
					Default:             int64default.StaticInt64(60),
					Computed:            true,
					Optional:            true,
				},
			},
		},
		"authentication": schema.SingleNestedAttribute{
			Required: true,
			Attributes: map[string]schema.Attribute{
				"public_key": schema.StringAttribute{
					Optional: true,
				},
				"public_key_id": schema.StringAttribute{
					Optional: true,
				},
			},
		},
		"create_private_subnets": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			Default:  booldefault.StaticBool(false),
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"create_service_endpoints": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			Default:  booldefault.StaticBool(false),
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"s3_guard_table_name": schema.StringAttribute{
			Optional: true,
			Computed: true,
			Default:  stringdefault.StaticString(""),
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"credential_name": schema.StringAttribute{
			Required: true,
		},
		"description": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"enable_tunnel": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"encryption_key_arn": schema.StringAttribute{
			Optional: true,
			Computed: true,
			Default:  stringdefault.StaticString(""),
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"endpoint_access_gateway_scheme": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"endpoint_access_gateway_subnet_ids": schema.SetAttribute{
			Optional:    true,
			ElementType: types.StringType,
		},
		"environment_name": schema.StringAttribute{
			Required: true,
		},
		"freeipa": FreeIpaSchema,
		"log_storage": schema.SingleNestedAttribute{
			Required: true,
			Attributes: map[string]schema.Attribute{
				"instance_profile": schema.StringAttribute{
					Required: true,
				},
				"storage_location_base": schema.StringAttribute{
					Required: true,
				},
				"backup_storage_location_base": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
			},
		},
		"region": schema.StringAttribute{
			Required: true,
		},
		"report_deployment_logs": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"network_cidr": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"proxy_config_name": schema.StringAttribute{
			Optional: true,
			Computed: true,
			Default:  stringdefault.StaticString(""),
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"security_access": schema.SingleNestedAttribute{
			Required: true,
			Attributes: map[string]schema.Attribute{
				"cidr": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"default_security_group_id": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"default_security_group_ids": schema.SetAttribute{
					Optional:    true,
					ElementType: types.StringType,
				},
				"security_group_id_for_knox": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"security_group_ids_for_knox": schema.SetAttribute{
					Optional:    true,
					ElementType: types.StringType,
				},
			},
		},
		"status": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"status_reason": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"subnet_ids": schema.SetAttribute{
			Optional:    true,
			Computed:    true,
			ElementType: types.StringType,
		},
		"tags": schema.MapAttribute{
			Optional:    true,
			Computed:    true,
			ElementType: types.StringType,
			PlanModifiers: []planmodifier.Map{
				mapplanmodifier.UseStateForUnknown(),
			},
		},
		"tunnel_type": schema.StringAttribute{

			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"workload_analytics": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"vpc_id": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
	},
}
View Source
var AzureEnvironmentSchema = schema.Schema{
	MarkdownDescription: "The environment is a logical entity that represents the association of your user account with multiple compute resources using which you can provision and manage workloads.",
	Attributes: map[string]schema.Attribute{
		"id": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"crn": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"polling_options": schema.SingleNestedAttribute{
			MarkdownDescription: "Polling related configuration options that could specify various values that will be used during CDP resource creation.",
			Optional:            true,
			Attributes: map[string]schema.Attribute{
				"async": schema.BoolAttribute{
					MarkdownDescription: "Boolean value that specifies if Terraform should wait for resource creation/deletion.",
					Optional:            true,
					Computed:            true,
					Default:             booldefault.StaticBool(false),
					PlanModifiers: []planmodifier.Bool{
						boolplanmodifier.UseStateForUnknown(),
					},
				},
				"polling_timeout": schema.Int64Attribute{
					MarkdownDescription: "Timeout value in minutes that specifies for how long should the polling go for resource creation/deletion.",
					Default:             int64default.StaticInt64(60),
					Computed:            true,
					Optional:            true,
				},
			},
		},
		"create_private_endpoints": schema.BoolAttribute{
			Optional: true,
		},
		"credential_name": schema.StringAttribute{
			Required: true,
		},
		"description": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"enable_outbound_load_balancer": schema.BoolAttribute{
			Optional: true,
		},
		"enable_tunnel": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"endpoint_access_gateway_scheme": schema.StringAttribute{
			Description:         "The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over the Internet. Defaults to PRIVATE which restricts the traffic to be internal to the VPC.",
			MarkdownDescription: "The scheme for the endpoint gateway. PUBLIC creates an external endpoint that can be accessed over the Internet. Defaults to PRIVATE which restricts the traffic to be internal to the VPC.",
			Optional:            true,
		},
		"endpoint_access_gateway_subnet_ids": schema.SetAttribute{
			Optional:    true,
			ElementType: types.StringType,
			Description: "The subnets to use for endpoint access gateway.",
		},
		"encryption_key_resource_group_name": schema.StringAttribute{
			Optional: true,
		},
		"encryption_key_url": schema.StringAttribute{
			Optional: true,
		},
		"encryption_at_host": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			Default:  booldefault.StaticBool(false),
		},
		"environment_name": schema.StringAttribute{
			Required: true,
		},
		"existing_network_params": schema.SingleNestedAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Object{
				objectplanmodifier.UseStateForUnknown(),
			},
			Attributes: map[string]schema.Attribute{
				"aks_private_dns_zone_id": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"database_private_dns_zone_id": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"network_id": schema.StringAttribute{
					Required: true,
				},
				"resource_group_name": schema.StringAttribute{
					Required: true,
				},
				"subnet_ids": schema.SetAttribute{
					Required:    true,
					ElementType: types.StringType,
				},
				"flexible_server_subnet_ids": schema.SetAttribute{
					Optional:    true,
					Computed:    true,
					ElementType: types.StringType,
				},
			},
		},
		"freeipa": FreeIpaSchema,
		"log_storage": schema.SingleNestedAttribute{
			Required: true,
			Attributes: map[string]schema.Attribute{
				"managed_identity": schema.StringAttribute{
					Required: true,
				},
				"storage_location_base": schema.StringAttribute{
					Required: true,
				},
				"backup_storage_location_base": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
			},
		},
		"new_network_params": schema.SingleNestedAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Object{
				objectplanmodifier.UseStateForUnknown(),
			},
			Attributes: map[string]schema.Attribute{
				"network_cidr": schema.StringAttribute{
					Required: true,
				},
			},
		},
		"proxy_config_name": schema.StringAttribute{
			Optional: true,
		},
		"public_key": schema.StringAttribute{
			Required: true,
		},
		"region": schema.StringAttribute{
			Required: true,
		},
		"report_deployment_logs": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"resource_group_name": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"security_access": schema.SingleNestedAttribute{
			Required: true,
			Attributes: map[string]schema.Attribute{
				"cidr": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"default_security_group_id": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"default_security_group_ids": schema.SetAttribute{
					Optional:    true,
					ElementType: types.StringType,
				},
				"security_group_id_for_knox": schema.StringAttribute{
					Optional: true,
					Computed: true,
					PlanModifiers: []planmodifier.String{
						stringplanmodifier.UseStateForUnknown(),
					},
				},
				"security_group_ids_for_knox": schema.SetAttribute{
					Optional:    true,
					ElementType: types.StringType,
				},
			},
		},
		"status": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"status_reason": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"encryption_user_managed_identity": schema.StringAttribute{
			Optional: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"tags": schema.MapAttribute{
			Optional:    true,
			Computed:    true,
			ElementType: types.StringType,
			PlanModifiers: []planmodifier.Map{
				mapplanmodifier.UseStateForUnknown(),
			},
		},
		"use_public_ip": schema.BoolAttribute{
			Required: true,
		},
		"workload_analytics": schema.BoolAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
	},
}
View Source
var AzureImageTermsPolicySchema = schema.Schema{
	MarkdownDescription: "Updates account level Azure Marketplace image policy. CDP is capable to automatically accept Azure Marketplace image terms during cluster deployment. You can use this setting in your account to opt in or opt out this behaviour.",
	Attributes: map[string]schema.Attribute{
		"id": schema.StringAttribute{
			Computed: true,
		},
		"accepted": schema.BoolAttribute{
			Required:    true,
			Description: "Flag to enable or disable automatic acceptance of Azure Marketplace image terms.",
		},
	},
}
View Source
var FreeIpaDetailsObject = tftypes.Object{
	AttributeTypes: map[string]tftypes.Type{
		"catalog":                 tftypes.String,
		"image_id":                tftypes.String,
		"os":                      tftypes.String,
		"instance_count_by_group": tftypes.Number,
		"instance_type":           tftypes.String,
		"instances": tftypes.Set{
			ElementType: FreeIpaInstanceObject,
		},
		"multi_az": tftypes.Bool,
		"recipes": tftypes.Set{
			ElementType: tftypes.String,
		},
	},
}
View Source
var FreeIpaDetailsType = types.ObjectType{
	AttrTypes: map[string]attr.Type{
		"catalog":                 types.StringType,
		"image_id":                types.StringType,
		"os":                      types.StringType,
		"instance_count_by_group": types.Int64Type,
		"instance_type":           types.StringType,
		"instances": types.SetType{
			ElemType: FreeIpaInstanceType,
		},
		"multi_az": types.BoolType,
		"recipes": types.SetType{
			ElemType: types.StringType,
		},
	},
}
View Source
var FreeIpaInstanceObject = tftypes.Object{
	AttributeTypes: map[string]tftypes.Type{
		"availability_zone":      tftypes.String,
		"discovery_fqdn":         tftypes.String,
		"instance_group":         tftypes.String,
		"instance_id":            tftypes.String,
		"instance_status":        tftypes.String,
		"instance_status_reason": tftypes.String,
		"instance_type":          tftypes.String,
		"instance_vm_type":       tftypes.String,
		"life_cycle":             tftypes.String,
		"private_ip":             tftypes.String,
		"public_ip":              tftypes.String,
		"ssh_port":               tftypes.Number,
		"subnet_id":              tftypes.String,
	},
}
View Source
var FreeIpaInstanceType = types.ObjectType{
	AttrTypes: map[string]attr.Type{
		"availability_zone":      types.StringType,
		"discovery_fqdn":         types.StringType,
		"instance_group":         types.StringType,
		"instance_id":            types.StringType,
		"instance_status":        types.StringType,
		"instance_status_reason": types.StringType,
		"instance_type":          types.StringType,
		"instance_vm_type":       types.StringType,
		"life_cycle":             types.StringType,
		"private_ip":             types.StringType,
		"public_ip":              types.StringType,
		"ssh_port":               types.Int64Type,
		"subnet_id":              types.StringType,
	},
}
View Source
var FreeIpaSchema = schema.SingleNestedAttribute{
	Optional: true,
	Computed: true,
	PlanModifiers: []planmodifier.Object{
		objectplanmodifier.UseStateForUnknown(),
	},
	Attributes: map[string]schema.Attribute{
		"catalog": schema.StringAttribute{
			Optional: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"image_id": schema.StringAttribute{
			Optional: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"os": schema.StringAttribute{
			Optional: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"instance_count_by_group": schema.Int64Attribute{
			Optional: true,
			PlanModifiers: []planmodifier.Int64{
				int64planmodifier.UseStateForUnknown(),
			},
		},
		"instance_type": schema.StringAttribute{
			Optional: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"instances": schema.SetNestedAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.Set{
				setplanmodifier.UseStateForUnknown(),
			},
			NestedObject: schema.NestedAttributeObject{
				Attributes: map[string]schema.Attribute{
					"availability_zone": schema.StringAttribute{
						Computed: true,
					},
					"discovery_fqdn": schema.StringAttribute{
						Computed: true,
					},
					"instance_group": schema.StringAttribute{
						Computed: true,
					},
					"instance_id": schema.StringAttribute{
						Computed: true,
					},
					"instance_status": schema.StringAttribute{
						Computed: true,
					},
					"instance_status_reason": schema.StringAttribute{
						Computed: true,
					},
					"instance_type": schema.StringAttribute{
						Computed: true,
					},
					"instance_vm_type": schema.StringAttribute{
						Computed: true,
					},
					"life_cycle": schema.StringAttribute{
						Computed: true,
					},
					"private_ip": schema.StringAttribute{
						Computed: true,
					},
					"public_ip": schema.StringAttribute{
						Computed: true,
					},
					"ssh_port": schema.Int64Attribute{
						Computed: true,
					},
					"subnet_id": schema.StringAttribute{
						Computed: true,
					},
				},
			},
		},
		"multi_az": schema.BoolAttribute{
			Optional: true,
			PlanModifiers: []planmodifier.Bool{
				boolplanmodifier.UseStateForUnknown(),
			},
		},
		"recipes": schema.SetAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.Set{
				setplanmodifier.UseStateForUnknown(),
			},
			ElementType: types.StringType,
		},
	},
}
View Source
var IDBrokerMappingSchema = schema.Schema{
	MarkdownDescription: "To enable your CDP user to utilize the central authentication features CDP provides and to exchange credentials for AWS or Azure access tokens, you have to map this CDP user to the correct IAM role or Azure Managed Service Identity (MSI).",
	Attributes: map[string]schema.Attribute{
		"id": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"data_access_role": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"environment_name": schema.StringAttribute{
			Required: true,
		},
		"environment_crn": schema.StringAttribute{
			Required: true,
		},
		"mappings": schema.SetNestedAttribute{
			Optional: true,
			NestedObject: schema.NestedAttributeObject{
				Attributes: map[string]schema.Attribute{
					"accessor_crn": schema.StringAttribute{
						Required: true,
					},
					"role": schema.StringAttribute{
						Required: true,
					},
				},
			},
		},
		"ranger_audit_role": schema.StringAttribute{
			Required: true,
		},
		"ranger_cloud_access_authorizer_role": schema.StringAttribute{
			Optional: true,
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"set_empty_mappings": schema.BoolAttribute{
			Optional: true,
		},
		"mappings_version": schema.Int64Attribute{
			Computed: true,
			PlanModifiers: []planmodifier.Int64{
				int64planmodifier.UseStateForUnknown(),
			},
		},
	},
}
View Source
var KeytabSchema = schema.Schema{
	Attributes: map[string]schema.Attribute{
		"environment": schema.StringAttribute{
			Required:            true,
			MarkdownDescription: "The name or CRN of the environment.",
		},
		"actor_crn": schema.StringAttribute{
			Optional:            true,
			MarkdownDescription: "The CRN of the user or machine user to retrieve the keytab for. If it is not included, it defaults to the user making the request.",
		},
		"keytab": schema.StringAttribute{
			Computed:            true,
			MarkdownDescription: "The contents of the keytab encoded as a base64 string.",
		},
	},
}
View Source
var ProxyConfigurationSchema = schema.Schema{
	MarkdownDescription: "",
	Attributes: map[string]schema.Attribute{
		"id": schema.StringAttribute{
			Computed: true,
			PlanModifiers: []planmodifier.String{
				stringplanmodifier.UseStateForUnknown(),
			},
		},
		"name": schema.StringAttribute{
			Required: true,
		},
		"description": schema.StringAttribute{
			Optional: true,
		},
		"protocol": schema.StringAttribute{
			Required: true,
		},
		"host": schema.StringAttribute{
			Required: true,
		},
		"port": schema.Int64Attribute{
			Required: true,
		},
		"no_proxy_hosts": schema.SetAttribute{
			ElementType: types.StringType,
			Optional:    true,
		},
		"user": schema.StringAttribute{
			Optional: true,
		},
		"password": schema.StringAttribute{
			Optional: true,
		},
	},
}

Functions

func ConvertGcpTags

func ConvertGcpTags(ctx context.Context, tagsIn types.Map) []*environmentsmodels.GcpTagRequest

func ConvertTags

func ConvertTags(ctx context.Context, tagsIn types.Map) []*environmentsmodels.TagRequest

func FindCredentialByName added in v0.4.0

func FindCredentialByName(ctx context.Context, cdpClient *cdp.Client, credentialName string) (*environmentsmodels.Credential, error)

FindCredentialByName reads and returns the credential from CDP if any.

func FindProxyConfigurationByName added in v0.4.0

func FindProxyConfigurationByName(name string, ctx context.Context, client *client.Environments, diags *diag.Diagnostics) (*models.ProxyConfig, error)

func FreeIpaResponseToModel added in v0.5.0

func FreeIpaResponseToModel(ipaResp *environmentsmodels.FreeipaDetails, model *types.Object, ctx context.Context) *diag.Diagnostics

func NewAWSCredentialPrerequisitesDataSource

func NewAWSCredentialPrerequisitesDataSource() datasource.DataSource

func NewAwsCredentialResource

func NewAwsCredentialResource() resource.Resource

func NewAwsEnvironmentResource

func NewAwsEnvironmentResource() resource.Resource

func NewAzureCredentialResource

func NewAzureCredentialResource() resource.Resource

func NewAzureEnvironmentResource

func NewAzureEnvironmentResource() resource.Resource

func NewAzureImageTermsResource added in v0.4.2

func NewAzureImageTermsResource() resource.Resource

func NewGcpCredentialResource

func NewGcpCredentialResource() resource.Resource

func NewGcpEnvironmentResource

func NewGcpEnvironmentResource() resource.Resource

func NewIDBrokerMappingsResource

func NewIDBrokerMappingsResource() resource.Resource

func NewKeytabDataSource added in v0.5.9

func NewKeytabDataSource() datasource.DataSource

func NewProxyConfigurationResource added in v0.4.0

func NewProxyConfigurationResource() resource.Resource

func ToAwsEnvironmentRequest

func ToAwsEnvironmentRequest(ctx context.Context, model *awsEnvironmentResourceModel) *environmentsmodels.CreateAWSEnvironmentRequest

func ToAzureEnvironmentRequest

func ToAzureEnvironmentRequest(ctx context.Context, model *azureEnvironmentResourceModel) *environmentsmodels.CreateAzureEnvironmentRequest

Types

type AWSLogStorage

type AWSLogStorage struct {
	InstanceProfile types.String `tfsdk:"instance_profile"`

	StorageLocationBase types.String `tfsdk:"storage_location_base"`

	BackupStorageLocationBase types.String `tfsdk:"backup_storage_location_base"`
}

type AppBased

type AppBased struct {
	ApplicationID types.String `tfsdk:"application_id"`
	SecretKey     types.String `tfsdk:"secret_key"`
}

type Authentication

type Authentication struct {
	PublicKey types.String `tfsdk:"public_key"`

	PublicKeyID types.String `tfsdk:"public_key_id"`
}

type ExistingNetworkParams

type ExistingNetworkParams struct {
	NetworkName     types.String `tfsdk:"network_name"`
	SubnetNames     types.List   `tfsdk:"subnet_names"`
	SharedProjectId types.String `tfsdk:"shared_project_id"`
}

type FreeIpaDetails added in v0.5.0

type FreeIpaDetails struct {
	Catalog types.String `tfsdk:"catalog"`

	ImageID types.String `tfsdk:"image_id"`

	Os types.String `tfsdk:"os"`

	InstanceCountByGroup types.Int64 `tfsdk:"instance_count_by_group"`

	InstanceType types.String `tfsdk:"instance_type"`

	Instances types.Set `tfsdk:"instances"`

	MultiAz types.Bool `tfsdk:"multi_az"`

	Recipes types.Set `tfsdk:"recipes"`
}

type FreeIpaInstance added in v0.5.0

type FreeIpaInstance struct {
	AvailabilityZone types.String `tfsdk:"availability_zone"`

	DiscoveryFQDN types.String `tfsdk:"discovery_fqdn"`

	InstanceGroup types.String `tfsdk:"instance_group"`

	InstanceID types.String `tfsdk:"instance_id"`

	InstanceStatus types.String `tfsdk:"instance_status"`

	InstanceStatusReason types.String `tfsdk:"instance_status_reason"`

	InstanceType types.String `tfsdk:"instance_type"`

	InstanceVMType types.String `tfsdk:"instance_vm_type"`

	LifeCycle types.String `tfsdk:"life_cycle"`

	PrivateIP types.String `tfsdk:"private_ip"`

	PublicIP types.String `tfsdk:"public_ip"`

	SSHPort types.Int64 `tfsdk:"ssh_port"`

	SubnetID types.String `tfsdk:"subnet_id"`
}

type FreeIpaTransitional added in v0.5.0

type FreeIpaTransitional struct {
	InstanceCountByGroup int32

	InstanceType string

	MultiAz bool

	Recipes []string
}

func FreeIpaModelToRequest added in v0.5.0

type GcpLogStorage

type GcpLogStorage struct {
	StorageLocationBase       types.String `tfsdk:"storage_location_base"`
	ServiceAccountEmail       types.String `tfsdk:"service_account_email"`
	BackupStorageLocationBase types.String `tfsdk:"backup_storage_location_base"`
}

type GcpSecurityAccess

type GcpSecurityAccess struct {
	SecurityGroupIdForKnox types.String `tfsdk:"security_group_id_for_knox"`
	DefaultSecurityGroupId types.String `tfsdk:"default_security_group_id"`
}

type KeytabModel added in v0.5.9

type KeytabModel struct {
	Environment types.String `tfsdk:"environment"`
	ActorCrn    types.String `tfsdk:"actor_crn"`
	Keytab      types.String `tfsdk:"keytab"`
}

type SchemaTestCaseStructure added in v0.5.4

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

type SecurityAccess

type SecurityAccess struct {
	Cidr types.String `tfsdk:"cidr"`

	DefaultSecurityGroupID types.String `tfsdk:"default_security_group_id"`

	DefaultSecurityGroupIDs types.Set `tfsdk:"default_security_group_ids"`

	SecurityGroupIDForKnox types.String `tfsdk:"security_group_id_for_knox"`

	SecurityGroupIDsForKnox types.Set `tfsdk:"security_group_ids_for_knox"`
}

Jump to

Keyboard shortcuts

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