schemas

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AttributeFilterSchema = schema.NestedAttributeObject{
		Attributes: map[string]schema.Attribute{
			"operator": schema.StringAttribute{
				MarkdownDescription: "Pick the operator that will be applied to the attribute names' values. Defaults to `is`. Supported operators: `is`, `is_not`, `contains`, `does_not_contain`, `starts_with`",
				Optional:            true,
				Computed:            true,
			},
			"attribute_type": schema.StringAttribute{
				MarkdownDescription: "Pick the user context type, for example `user`, `group`, `okta_city`, `pagerduty_shift`, etc.",
				Required:            true,
			},
			"attribute_names": schema.SetAttribute{
				MarkdownDescription: "Insert the specific values you'd like to include or exclude from the Access Flow, for example the user email, group name, etc.",

				Optional:    true,
				ElementType: types.StringType,
			},
			"integration_id": schema.StringAttribute{
				MarkdownDescription: "Use the integration ID this attribute originates from. This can be any user context integration, for example PagerDuty, Okta, etc.",
				Optional:            true,
			},
		},
	}

	ConditionLogicalOperatorSchema = schema.StringAttribute{
		MarkdownDescription: "Logical operator to apply to the conditions. **Possible Values**: `AND`, `OR` (Default `OR`)",
		Optional:            true,
		Computed:            true,
		Default:             stringdefault.StaticString("AND"),
	}
)
View Source
var (
	DataSourceResourceOwnerMapping = schema.NestedAttributeObject{
		Attributes: map[string]schema.Attribute{
			"key_name": schema.StringAttribute{
				MarkdownDescription: "Insert the tag name (key) that represents owners in the cloud environment.",
				Required:            true,
			},
			"attribute": schema.StringAttribute{
				MarkdownDescription: "Insert the attribute type that the tag values will map into. For example: pagerduty_shift, okta_city, group, etc.",
				Required:            true,
			},
			"attribute_integration_id": schema.StringAttribute{
				MarkdownDescription: "Provide the User Context integration ID the attribute originates from, for example Okta, Pagerduty, etc. You can find the ID in the Apono API Reference.",
				Optional:            true,
			},
		},
	}

	DataSourceIntegrationOwner = schema.NestedAttributeObject{
		Attributes: map[string]schema.Attribute{
			"integration_id": schema.StringAttribute{
				MarkdownDescription: "Provide the User Context integration ID the attribute originates from, for example Okta, Pagerduty, etc. You can find the ID in the Apono API Reference.",
				Optional:            true,
			},
			"attribute": schema.StringAttribute{
				MarkdownDescription: "Insert the attribute type that the tag values will map into. For example: pagerduty_shift, okta_city, group, etc.",
				Required:            true,
			},
			"value": schema.ListAttribute{
				MarkdownDescription: "Provide the attribute value that will serve as the Integration Owner. For example, the user email, group name, etc.",
				ElementType:         types.StringType,
				Required:            true,
			},
		},
	}
)
View Source
var (
	ResourceOwnerMapping = schema.NestedAttributeObject{
		Attributes: map[string]schema.Attribute{
			"key_name": schema.StringAttribute{
				MarkdownDescription: "Insert the tag name (key) that represents owners in the cloud environment.",
				Required:            true,
			},
			"attribute": schema.StringAttribute{
				MarkdownDescription: "Insert the attribute type that the tag values will map into. For example: pagerduty_shift, okta_city, group, etc.",
				Required:            true,
			},
			"attribute_integration_id": schema.StringAttribute{
				MarkdownDescription: "Provide the User Context integration ID the attribute originates from, for example Okta, Pagerduty, etc. You can find the ID in the Apono API Reference.",
				Optional:            true,
			},
		},
	}

	IntegrationOwner = schema.NestedAttributeObject{
		Attributes: map[string]schema.Attribute{
			"integration_id": schema.StringAttribute{
				MarkdownDescription: "Provide the User Context integration ID the attribute originates from, for example Okta, Pagerduty, etc. You can find the ID in the Apono API Reference.",
				Optional:            true,
			},
			"attribute": schema.StringAttribute{
				MarkdownDescription: "Insert the attribute type that the tag values will map into. For example: pagerduty_shift, okta_city, group, etc.",
				Required:            true,
			},
			"value": schema.ListAttribute{
				MarkdownDescription: "Provide the attribute value that will serve as the Integration Owner. For example, the user email, group name, etc.",
				ElementType:         types.StringType,
				Required:            true,
			},
		},
	}
)

Functions

func GetBundleTargetSchema

func GetBundleTargetSchema(required bool) schema.SetNestedAttribute

func GetIntegrationTargetSchema

func GetIntegrationTargetSchema(required bool) schema.SetNestedAttribute

Types

This section is empty.

Jump to

Keyboard shortcuts

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