Documentation ¶
Index ¶
- Variables
- func ConvertGcpTags(ctx context.Context, tagsIn types.Map) []*environmentsmodels.GcpTagRequest
- func ConvertTags(ctx context.Context, tagsIn types.Map) []*environmentsmodels.TagRequest
- func NewAWSCredentialPrerequisitesDataSource() datasource.DataSource
- func NewAwsCredentialResource() resource.Resource
- func NewAwsEnvironmentResource() resource.Resource
- func NewAzureCredentialResource() resource.Resource
- func NewAzureEnvironmentResource() resource.Resource
- func NewGcpCredentialResource() resource.Resource
- func NewGcpEnvironmentResource() resource.Resource
- func NewIDBrokerMappingsResource() resource.Resource
- func ToAwsEnvironmentRequest(ctx context.Context, model *awsEnvironmentResourceModel) *environmentsmodels.CreateAWSEnvironmentRequest
- func ToAzureEnvironmentRequest(ctx context.Context, model *azureEnvironmentResourceModel) *environmentsmodels.CreateAzureEnvironmentRequest
- type AWSFreeIpaDetails
- type AWSLogStorage
- type AppBased
- type Authentication
- type ExistingNetworkParams
- type GcpFreeIpa
- type GcpLogStorage
- type GcpSecurityAccess
- type SecurityAccess
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{ "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": schema.SingleNestedAttribute{ Optional: true, Default: nil, Attributes: map[string]schema.Attribute{ "catalog": schema.StringAttribute{ Optional: true, }, "image_id": schema.StringAttribute{ Optional: true, }, "instance_count_by_group": schema.Int64Attribute{ Optional: true, }, "instance_type": schema.StringAttribute{ Optional: true, }, "multi_az": schema.BoolAttribute{ Optional: true, }, "recipes": schema.SetAttribute{ Optional: true, ElementType: types.StringType, }, }, }, "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{ "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, }, "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, }, }, }, "freeipa": schema.SingleNestedAttribute{ Optional: 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(), }, }, "instance_count_by_group": schema.Int64Attribute{ Optional: true, PlanModifiers: []planmodifier.Int64{ int64planmodifier.UseStateForUnknown(), }, }, "instance_type": schema.StringAttribute{ Optional: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, }, "recipes": schema.SetAttribute{ Optional: true, ElementType: types.StringType, }, }, }, "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(), }, }, "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(), }, }, }, }
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 NewAWSCredentialPrerequisitesDataSource ¶
func NewAWSCredentialPrerequisitesDataSource() datasource.DataSource
func ToAwsEnvironmentRequest ¶
func ToAwsEnvironmentRequest(ctx context.Context, model *awsEnvironmentResourceModel) *environmentsmodels.CreateAWSEnvironmentRequest
func ToAzureEnvironmentRequest ¶
func ToAzureEnvironmentRequest(ctx context.Context, model *azureEnvironmentResourceModel) *environmentsmodels.CreateAzureEnvironmentRequest
Types ¶
type AWSFreeIpaDetails ¶
type AWSFreeIpaDetails struct { Catalog types.String `tfsdk:"catalog"` ImageID types.String `tfsdk:"image_id"` InstanceCountByGroup types.Int64 `tfsdk:"instance_count_by_group"` InstanceType types.String `tfsdk:"instance_type"` MultiAz types.Bool `tfsdk:"multi_az"` Recipes types.Set `tfsdk:"recipes"` }
type AWSLogStorage ¶
type Authentication ¶
type ExistingNetworkParams ¶
type GcpFreeIpa ¶
type GcpLogStorage ¶
type GcpSecurityAccess ¶
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"` }
Source Files ¶
- converter.go
- data_source_aws_credential_prerequisites.go
- environment_action_util.go
- model_aws_environment.go
- model_azure_environment.go
- model_gcp_credential.go
- model_gcp_environment.go
- polling.go
- resource_aws_credential.go
- resource_aws_environment.go
- resource_azure_credential.go
- resource_azure_environment.go
- resource_gcp_credential.go
- resource_gcp_environment.go
- resource_id_broker_mappings.go
- schema_aws_environment.go
- schema_azure_environment.go
- schema_gcp_credential.go
- schema_gcp_environment.go
- utils.go
Click to show internal directories.
Click to hide internal directories.