zpr

package
v2.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	pulumi.CustomResourceState

	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy into which ZPR resources will be bootstrapped.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.StringMapOutput `pulumi:"definedTags"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.StringMapOutput `pulumi:"freeformTags"`
	// A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"`
	// The current state of ZPR in the tenancy.
	State pulumi.StringOutput `pulumi:"state"`
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.StringMapOutput `pulumi:"systemTags"`
	// The date and time that ZPR was onboarded to the tenancy, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// The date and time that ZPR was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
	// The enabled or disabled status of ZPR in the tenancy.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	ZprStatus pulumi.StringOutput `pulumi:"zprStatus"`
}

This resource provides the Configuration resource in Oracle Cloud Infrastructure Zpr service.

Initiates the process to onboard ZPR in a root compartment (the root compartment is the tenancy). It creates an object of ZPR configuration as part of onboarding.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Zpr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Zpr.NewConfiguration(ctx, "test_configuration", &Zpr.ConfigurationArgs{
			CompartmentId: pulumi.Any(tenancyOcid),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			ZprStatus: pulumi.Any(configurationZprStatus),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Configuration can be imported using the 'compartment_id' and `id`, e.g.

```sh $ pulumi import oci:Zpr/configuration:Configuration test_configuration "{compartment_id}/{id}" ```

func GetConfiguration

func GetConfiguration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConfigurationState, opts ...pulumi.ResourceOption) (*Configuration, error)

GetConfiguration gets an existing Configuration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConfiguration

func NewConfiguration(ctx *pulumi.Context,
	name string, args *ConfigurationArgs, opts ...pulumi.ResourceOption) (*Configuration, error)

NewConfiguration registers a new resource with the given unique name, arguments, and options.

func (*Configuration) ElementType

func (*Configuration) ElementType() reflect.Type

func (*Configuration) ToConfigurationOutput

func (i *Configuration) ToConfigurationOutput() ConfigurationOutput

func (*Configuration) ToConfigurationOutputWithContext

func (i *Configuration) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput

type ConfigurationArgs

type ConfigurationArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy into which ZPR resources will be bootstrapped.
	CompartmentId pulumi.StringInput
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.StringMapInput
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.StringMapInput
	// The enabled or disabled status of ZPR in the tenancy.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	ZprStatus pulumi.StringPtrInput
}

The set of arguments for constructing a Configuration resource.

func (ConfigurationArgs) ElementType

func (ConfigurationArgs) ElementType() reflect.Type

type ConfigurationArray

type ConfigurationArray []ConfigurationInput

func (ConfigurationArray) ElementType

func (ConfigurationArray) ElementType() reflect.Type

func (ConfigurationArray) ToConfigurationArrayOutput

func (i ConfigurationArray) ToConfigurationArrayOutput() ConfigurationArrayOutput

func (ConfigurationArray) ToConfigurationArrayOutputWithContext

func (i ConfigurationArray) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput

type ConfigurationArrayInput

type ConfigurationArrayInput interface {
	pulumi.Input

	ToConfigurationArrayOutput() ConfigurationArrayOutput
	ToConfigurationArrayOutputWithContext(context.Context) ConfigurationArrayOutput
}

ConfigurationArrayInput is an input type that accepts ConfigurationArray and ConfigurationArrayOutput values. You can construct a concrete instance of `ConfigurationArrayInput` via:

ConfigurationArray{ ConfigurationArgs{...} }

type ConfigurationArrayOutput

type ConfigurationArrayOutput struct{ *pulumi.OutputState }

func (ConfigurationArrayOutput) ElementType

func (ConfigurationArrayOutput) ElementType() reflect.Type

func (ConfigurationArrayOutput) Index

func (ConfigurationArrayOutput) ToConfigurationArrayOutput

func (o ConfigurationArrayOutput) ToConfigurationArrayOutput() ConfigurationArrayOutput

func (ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext

func (o ConfigurationArrayOutput) ToConfigurationArrayOutputWithContext(ctx context.Context) ConfigurationArrayOutput

type ConfigurationInput

type ConfigurationInput interface {
	pulumi.Input

	ToConfigurationOutput() ConfigurationOutput
	ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput
}

type ConfigurationMap

type ConfigurationMap map[string]ConfigurationInput

func (ConfigurationMap) ElementType

func (ConfigurationMap) ElementType() reflect.Type

func (ConfigurationMap) ToConfigurationMapOutput

func (i ConfigurationMap) ToConfigurationMapOutput() ConfigurationMapOutput

func (ConfigurationMap) ToConfigurationMapOutputWithContext

func (i ConfigurationMap) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput

type ConfigurationMapInput

type ConfigurationMapInput interface {
	pulumi.Input

	ToConfigurationMapOutput() ConfigurationMapOutput
	ToConfigurationMapOutputWithContext(context.Context) ConfigurationMapOutput
}

ConfigurationMapInput is an input type that accepts ConfigurationMap and ConfigurationMapOutput values. You can construct a concrete instance of `ConfigurationMapInput` via:

ConfigurationMap{ "key": ConfigurationArgs{...} }

type ConfigurationMapOutput

type ConfigurationMapOutput struct{ *pulumi.OutputState }

func (ConfigurationMapOutput) ElementType

func (ConfigurationMapOutput) ElementType() reflect.Type

func (ConfigurationMapOutput) MapIndex

func (ConfigurationMapOutput) ToConfigurationMapOutput

func (o ConfigurationMapOutput) ToConfigurationMapOutput() ConfigurationMapOutput

func (ConfigurationMapOutput) ToConfigurationMapOutputWithContext

func (o ConfigurationMapOutput) ToConfigurationMapOutputWithContext(ctx context.Context) ConfigurationMapOutput

type ConfigurationOutput

type ConfigurationOutput struct{ *pulumi.OutputState }

func (ConfigurationOutput) CompartmentId

func (o ConfigurationOutput) CompartmentId() pulumi.StringOutput

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy into which ZPR resources will be bootstrapped.

func (ConfigurationOutput) DefinedTags

func (o ConfigurationOutput) DefinedTags() pulumi.StringMapOutput

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (ConfigurationOutput) ElementType

func (ConfigurationOutput) ElementType() reflect.Type

func (ConfigurationOutput) FreeformTags

func (o ConfigurationOutput) FreeformTags() pulumi.StringMapOutput

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (ConfigurationOutput) LifecycleDetails

func (o ConfigurationOutput) LifecycleDetails() pulumi.StringOutput

A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.

func (ConfigurationOutput) State

The current state of ZPR in the tenancy.

func (ConfigurationOutput) SystemTags

System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (ConfigurationOutput) TimeCreated

func (o ConfigurationOutput) TimeCreated() pulumi.StringOutput

The date and time that ZPR was onboarded to the tenancy, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (ConfigurationOutput) TimeUpdated

func (o ConfigurationOutput) TimeUpdated() pulumi.StringOutput

The date and time that ZPR was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (ConfigurationOutput) ToConfigurationOutput

func (o ConfigurationOutput) ToConfigurationOutput() ConfigurationOutput

func (ConfigurationOutput) ToConfigurationOutputWithContext

func (o ConfigurationOutput) ToConfigurationOutputWithContext(ctx context.Context) ConfigurationOutput

func (ConfigurationOutput) ZprStatus

func (o ConfigurationOutput) ZprStatus() pulumi.StringOutput

The enabled or disabled status of ZPR in the tenancy.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

type ConfigurationState

type ConfigurationState struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy into which ZPR resources will be bootstrapped.
	CompartmentId pulumi.StringPtrInput
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.StringMapInput
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.StringMapInput
	// A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails pulumi.StringPtrInput
	// The current state of ZPR in the tenancy.
	State pulumi.StringPtrInput
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.StringMapInput
	// The date and time that ZPR was onboarded to the tenancy, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated pulumi.StringPtrInput
	// The date and time that ZPR was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated pulumi.StringPtrInput
	// The enabled or disabled status of ZPR in the tenancy.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	ZprStatus pulumi.StringPtrInput
}

func (ConfigurationState) ElementType

func (ConfigurationState) ElementType() reflect.Type

type GetZprPoliciesArgs

type GetZprPoliciesArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
	CompartmentId *string                `pulumi:"compartmentId"`
	Filters       []GetZprPoliciesFilter `pulumi:"filters"`
	// A filter to return only resources that match the entire display name given.
	Name *string `pulumi:"name"`
	// A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getZprPolicies.

type GetZprPoliciesFilter

type GetZprPoliciesFilter struct {
	// A filter to return only resources that match the entire display name given.
	Name   string   `pulumi:"name"`
	Regex  *bool    `pulumi:"regex"`
	Values []string `pulumi:"values"`
}

type GetZprPoliciesFilterArgs

type GetZprPoliciesFilterArgs struct {
	// A filter to return only resources that match the entire display name given.
	Name   pulumi.StringInput      `pulumi:"name"`
	Regex  pulumi.BoolPtrInput     `pulumi:"regex"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetZprPoliciesFilterArgs) ElementType

func (GetZprPoliciesFilterArgs) ElementType() reflect.Type

func (GetZprPoliciesFilterArgs) ToGetZprPoliciesFilterOutput

func (i GetZprPoliciesFilterArgs) ToGetZprPoliciesFilterOutput() GetZprPoliciesFilterOutput

func (GetZprPoliciesFilterArgs) ToGetZprPoliciesFilterOutputWithContext

func (i GetZprPoliciesFilterArgs) ToGetZprPoliciesFilterOutputWithContext(ctx context.Context) GetZprPoliciesFilterOutput

type GetZprPoliciesFilterArray

type GetZprPoliciesFilterArray []GetZprPoliciesFilterInput

func (GetZprPoliciesFilterArray) ElementType

func (GetZprPoliciesFilterArray) ElementType() reflect.Type

func (GetZprPoliciesFilterArray) ToGetZprPoliciesFilterArrayOutput

func (i GetZprPoliciesFilterArray) ToGetZprPoliciesFilterArrayOutput() GetZprPoliciesFilterArrayOutput

func (GetZprPoliciesFilterArray) ToGetZprPoliciesFilterArrayOutputWithContext

func (i GetZprPoliciesFilterArray) ToGetZprPoliciesFilterArrayOutputWithContext(ctx context.Context) GetZprPoliciesFilterArrayOutput

type GetZprPoliciesFilterArrayInput

type GetZprPoliciesFilterArrayInput interface {
	pulumi.Input

	ToGetZprPoliciesFilterArrayOutput() GetZprPoliciesFilterArrayOutput
	ToGetZprPoliciesFilterArrayOutputWithContext(context.Context) GetZprPoliciesFilterArrayOutput
}

GetZprPoliciesFilterArrayInput is an input type that accepts GetZprPoliciesFilterArray and GetZprPoliciesFilterArrayOutput values. You can construct a concrete instance of `GetZprPoliciesFilterArrayInput` via:

GetZprPoliciesFilterArray{ GetZprPoliciesFilterArgs{...} }

type GetZprPoliciesFilterArrayOutput

type GetZprPoliciesFilterArrayOutput struct{ *pulumi.OutputState }

func (GetZprPoliciesFilterArrayOutput) ElementType

func (GetZprPoliciesFilterArrayOutput) Index

func (GetZprPoliciesFilterArrayOutput) ToGetZprPoliciesFilterArrayOutput

func (o GetZprPoliciesFilterArrayOutput) ToGetZprPoliciesFilterArrayOutput() GetZprPoliciesFilterArrayOutput

func (GetZprPoliciesFilterArrayOutput) ToGetZprPoliciesFilterArrayOutputWithContext

func (o GetZprPoliciesFilterArrayOutput) ToGetZprPoliciesFilterArrayOutputWithContext(ctx context.Context) GetZprPoliciesFilterArrayOutput

type GetZprPoliciesFilterInput

type GetZprPoliciesFilterInput interface {
	pulumi.Input

	ToGetZprPoliciesFilterOutput() GetZprPoliciesFilterOutput
	ToGetZprPoliciesFilterOutputWithContext(context.Context) GetZprPoliciesFilterOutput
}

GetZprPoliciesFilterInput is an input type that accepts GetZprPoliciesFilterArgs and GetZprPoliciesFilterOutput values. You can construct a concrete instance of `GetZprPoliciesFilterInput` via:

GetZprPoliciesFilterArgs{...}

type GetZprPoliciesFilterOutput

type GetZprPoliciesFilterOutput struct{ *pulumi.OutputState }

func (GetZprPoliciesFilterOutput) ElementType

func (GetZprPoliciesFilterOutput) ElementType() reflect.Type

func (GetZprPoliciesFilterOutput) Name

A filter to return only resources that match the entire display name given.

func (GetZprPoliciesFilterOutput) Regex

func (GetZprPoliciesFilterOutput) ToGetZprPoliciesFilterOutput

func (o GetZprPoliciesFilterOutput) ToGetZprPoliciesFilterOutput() GetZprPoliciesFilterOutput

func (GetZprPoliciesFilterOutput) ToGetZprPoliciesFilterOutputWithContext

func (o GetZprPoliciesFilterOutput) ToGetZprPoliciesFilterOutputWithContext(ctx context.Context) GetZprPoliciesFilterOutput

func (GetZprPoliciesFilterOutput) Values

type GetZprPoliciesOutputArgs

type GetZprPoliciesOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
	CompartmentId pulumi.StringPtrInput          `pulumi:"compartmentId"`
	Filters       GetZprPoliciesFilterArrayInput `pulumi:"filters"`
	// A filter to return only resources that match the entire display name given.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getZprPolicies.

func (GetZprPoliciesOutputArgs) ElementType

func (GetZprPoliciesOutputArgs) ElementType() reflect.Type

type GetZprPoliciesResult

type GetZprPoliciesResult struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId *string                `pulumi:"compartmentId"`
	Filters       []GetZprPoliciesFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
	Name *string `pulumi:"name"`
	// The current state of the ZprPolicy.
	State *string `pulumi:"state"`
	// The list of zpr_policies.
	ZprPolicies []GetZprPoliciesZprPolicy `pulumi:"zprPolicies"`
}

A collection of values returned by getZprPolicies.

func GetZprPolicies

func GetZprPolicies(ctx *pulumi.Context, args *GetZprPoliciesArgs, opts ...pulumi.InvokeOption) (*GetZprPoliciesResult, error)

This data source provides the list of Zpr Policies in Oracle Cloud Infrastructure Zpr service.

Gets a list of ZprPolicies.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Zpr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Zpr.GetZprPolicies(ctx, &zpr.GetZprPoliciesArgs{
			CompartmentId: pulumi.StringRef(tenancyOcid),
			Name:          pulumi.StringRef(zprPolicyName),
			State:         pulumi.StringRef(zprPolicyState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetZprPoliciesResultOutput

type GetZprPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZprPolicies.

func (GetZprPoliciesResultOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.

func (GetZprPoliciesResultOutput) ElementType

func (GetZprPoliciesResultOutput) ElementType() reflect.Type

func (GetZprPoliciesResultOutput) Filters

func (GetZprPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetZprPoliciesResultOutput) Name

The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.

func (GetZprPoliciesResultOutput) State

The current state of the ZprPolicy.

func (GetZprPoliciesResultOutput) ToGetZprPoliciesResultOutput

func (o GetZprPoliciesResultOutput) ToGetZprPoliciesResultOutput() GetZprPoliciesResultOutput

func (GetZprPoliciesResultOutput) ToGetZprPoliciesResultOutputWithContext

func (o GetZprPoliciesResultOutput) ToGetZprPoliciesResultOutputWithContext(ctx context.Context) GetZprPoliciesResultOutput

func (GetZprPoliciesResultOutput) ZprPolicies

The list of zpr_policies.

type GetZprPoliciesZprPolicy

type GetZprPoliciesZprPolicy struct {
	Items []GetZprPoliciesZprPolicyItem `pulumi:"items"`
}

type GetZprPoliciesZprPolicyArgs

type GetZprPoliciesZprPolicyArgs struct {
	Items GetZprPoliciesZprPolicyItemArrayInput `pulumi:"items"`
}

func (GetZprPoliciesZprPolicyArgs) ElementType

func (GetZprPoliciesZprPolicyArgs) ToGetZprPoliciesZprPolicyOutput

func (i GetZprPoliciesZprPolicyArgs) ToGetZprPoliciesZprPolicyOutput() GetZprPoliciesZprPolicyOutput

func (GetZprPoliciesZprPolicyArgs) ToGetZprPoliciesZprPolicyOutputWithContext

func (i GetZprPoliciesZprPolicyArgs) ToGetZprPoliciesZprPolicyOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyOutput

type GetZprPoliciesZprPolicyArray

type GetZprPoliciesZprPolicyArray []GetZprPoliciesZprPolicyInput

func (GetZprPoliciesZprPolicyArray) ElementType

func (GetZprPoliciesZprPolicyArray) ToGetZprPoliciesZprPolicyArrayOutput

func (i GetZprPoliciesZprPolicyArray) ToGetZprPoliciesZprPolicyArrayOutput() GetZprPoliciesZprPolicyArrayOutput

func (GetZprPoliciesZprPolicyArray) ToGetZprPoliciesZprPolicyArrayOutputWithContext

func (i GetZprPoliciesZprPolicyArray) ToGetZprPoliciesZprPolicyArrayOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyArrayOutput

type GetZprPoliciesZprPolicyArrayInput

type GetZprPoliciesZprPolicyArrayInput interface {
	pulumi.Input

	ToGetZprPoliciesZprPolicyArrayOutput() GetZprPoliciesZprPolicyArrayOutput
	ToGetZprPoliciesZprPolicyArrayOutputWithContext(context.Context) GetZprPoliciesZprPolicyArrayOutput
}

GetZprPoliciesZprPolicyArrayInput is an input type that accepts GetZprPoliciesZprPolicyArray and GetZprPoliciesZprPolicyArrayOutput values. You can construct a concrete instance of `GetZprPoliciesZprPolicyArrayInput` via:

GetZprPoliciesZprPolicyArray{ GetZprPoliciesZprPolicyArgs{...} }

type GetZprPoliciesZprPolicyArrayOutput

type GetZprPoliciesZprPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetZprPoliciesZprPolicyArrayOutput) ElementType

func (GetZprPoliciesZprPolicyArrayOutput) Index

func (GetZprPoliciesZprPolicyArrayOutput) ToGetZprPoliciesZprPolicyArrayOutput

func (o GetZprPoliciesZprPolicyArrayOutput) ToGetZprPoliciesZprPolicyArrayOutput() GetZprPoliciesZprPolicyArrayOutput

func (GetZprPoliciesZprPolicyArrayOutput) ToGetZprPoliciesZprPolicyArrayOutputWithContext

func (o GetZprPoliciesZprPolicyArrayOutput) ToGetZprPoliciesZprPolicyArrayOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyArrayOutput

type GetZprPoliciesZprPolicyInput

type GetZprPoliciesZprPolicyInput interface {
	pulumi.Input

	ToGetZprPoliciesZprPolicyOutput() GetZprPoliciesZprPolicyOutput
	ToGetZprPoliciesZprPolicyOutputWithContext(context.Context) GetZprPoliciesZprPolicyOutput
}

GetZprPoliciesZprPolicyInput is an input type that accepts GetZprPoliciesZprPolicyArgs and GetZprPoliciesZprPolicyOutput values. You can construct a concrete instance of `GetZprPoliciesZprPolicyInput` via:

GetZprPoliciesZprPolicyArgs{...}

type GetZprPoliciesZprPolicyItem

type GetZprPoliciesZprPolicyItem struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]string `pulumi:"definedTags"`
	// The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
	Description string `pulumi:"description"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]string `pulumi:"freeformTags"`
	Id           string            `pulumi:"id"`
	// A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails string `pulumi:"lifecycleDetails"`
	// A filter to return only resources that match the entire display name given.
	Name string `pulumi:"name"`
	// A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
	State string `pulumi:"state"`
	// An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
	Statements []string `pulumi:"statements"`
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags map[string]string `pulumi:"systemTags"`
	// The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated string `pulumi:"timeCreated"`
	// The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated string `pulumi:"timeUpdated"`
}

type GetZprPoliciesZprPolicyItemArgs

type GetZprPoliciesZprPolicyItemArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.StringMapInput `pulumi:"definedTags"`
	// The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
	Description pulumi.StringInput `pulumi:"description"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.StringMapInput `pulumi:"freeformTags"`
	Id           pulumi.StringInput    `pulumi:"id"`
	// A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails pulumi.StringInput `pulumi:"lifecycleDetails"`
	// A filter to return only resources that match the entire display name given.
	Name pulumi.StringInput `pulumi:"name"`
	// A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
	State pulumi.StringInput `pulumi:"state"`
	// An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
	Statements pulumi.StringArrayInput `pulumi:"statements"`
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.StringMapInput `pulumi:"systemTags"`
	// The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated pulumi.StringInput `pulumi:"timeCreated"`
	// The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated pulumi.StringInput `pulumi:"timeUpdated"`
}

func (GetZprPoliciesZprPolicyItemArgs) ElementType

func (GetZprPoliciesZprPolicyItemArgs) ToGetZprPoliciesZprPolicyItemOutput

func (i GetZprPoliciesZprPolicyItemArgs) ToGetZprPoliciesZprPolicyItemOutput() GetZprPoliciesZprPolicyItemOutput

func (GetZprPoliciesZprPolicyItemArgs) ToGetZprPoliciesZprPolicyItemOutputWithContext

func (i GetZprPoliciesZprPolicyItemArgs) ToGetZprPoliciesZprPolicyItemOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyItemOutput

type GetZprPoliciesZprPolicyItemArray

type GetZprPoliciesZprPolicyItemArray []GetZprPoliciesZprPolicyItemInput

func (GetZprPoliciesZprPolicyItemArray) ElementType

func (GetZprPoliciesZprPolicyItemArray) ToGetZprPoliciesZprPolicyItemArrayOutput

func (i GetZprPoliciesZprPolicyItemArray) ToGetZprPoliciesZprPolicyItemArrayOutput() GetZprPoliciesZprPolicyItemArrayOutput

func (GetZprPoliciesZprPolicyItemArray) ToGetZprPoliciesZprPolicyItemArrayOutputWithContext

func (i GetZprPoliciesZprPolicyItemArray) ToGetZprPoliciesZprPolicyItemArrayOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyItemArrayOutput

type GetZprPoliciesZprPolicyItemArrayInput

type GetZprPoliciesZprPolicyItemArrayInput interface {
	pulumi.Input

	ToGetZprPoliciesZprPolicyItemArrayOutput() GetZprPoliciesZprPolicyItemArrayOutput
	ToGetZprPoliciesZprPolicyItemArrayOutputWithContext(context.Context) GetZprPoliciesZprPolicyItemArrayOutput
}

GetZprPoliciesZprPolicyItemArrayInput is an input type that accepts GetZprPoliciesZprPolicyItemArray and GetZprPoliciesZprPolicyItemArrayOutput values. You can construct a concrete instance of `GetZprPoliciesZprPolicyItemArrayInput` via:

GetZprPoliciesZprPolicyItemArray{ GetZprPoliciesZprPolicyItemArgs{...} }

type GetZprPoliciesZprPolicyItemArrayOutput

type GetZprPoliciesZprPolicyItemArrayOutput struct{ *pulumi.OutputState }

func (GetZprPoliciesZprPolicyItemArrayOutput) ElementType

func (GetZprPoliciesZprPolicyItemArrayOutput) Index

func (GetZprPoliciesZprPolicyItemArrayOutput) ToGetZprPoliciesZprPolicyItemArrayOutput

func (o GetZprPoliciesZprPolicyItemArrayOutput) ToGetZprPoliciesZprPolicyItemArrayOutput() GetZprPoliciesZprPolicyItemArrayOutput

func (GetZprPoliciesZprPolicyItemArrayOutput) ToGetZprPoliciesZprPolicyItemArrayOutputWithContext

func (o GetZprPoliciesZprPolicyItemArrayOutput) ToGetZprPoliciesZprPolicyItemArrayOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyItemArrayOutput

type GetZprPoliciesZprPolicyItemInput

type GetZprPoliciesZprPolicyItemInput interface {
	pulumi.Input

	ToGetZprPoliciesZprPolicyItemOutput() GetZprPoliciesZprPolicyItemOutput
	ToGetZprPoliciesZprPolicyItemOutputWithContext(context.Context) GetZprPoliciesZprPolicyItemOutput
}

GetZprPoliciesZprPolicyItemInput is an input type that accepts GetZprPoliciesZprPolicyItemArgs and GetZprPoliciesZprPolicyItemOutput values. You can construct a concrete instance of `GetZprPoliciesZprPolicyItemInput` via:

GetZprPoliciesZprPolicyItemArgs{...}

type GetZprPoliciesZprPolicyItemOutput

type GetZprPoliciesZprPolicyItemOutput struct{ *pulumi.OutputState }

func (GetZprPoliciesZprPolicyItemOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.

func (GetZprPoliciesZprPolicyItemOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (GetZprPoliciesZprPolicyItemOutput) Description

The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.

func (GetZprPoliciesZprPolicyItemOutput) ElementType

func (GetZprPoliciesZprPolicyItemOutput) FreeformTags

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (GetZprPoliciesZprPolicyItemOutput) Id

func (GetZprPoliciesZprPolicyItemOutput) LifecycleDetails

A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.

func (GetZprPoliciesZprPolicyItemOutput) Name

A filter to return only resources that match the entire display name given.

func (GetZprPoliciesZprPolicyItemOutput) State

A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.

func (GetZprPoliciesZprPolicyItemOutput) Statements

An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.

func (GetZprPoliciesZprPolicyItemOutput) SystemTags

System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (GetZprPoliciesZprPolicyItemOutput) TimeCreated

The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (GetZprPoliciesZprPolicyItemOutput) TimeUpdated

The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (GetZprPoliciesZprPolicyItemOutput) ToGetZprPoliciesZprPolicyItemOutput

func (o GetZprPoliciesZprPolicyItemOutput) ToGetZprPoliciesZprPolicyItemOutput() GetZprPoliciesZprPolicyItemOutput

func (GetZprPoliciesZprPolicyItemOutput) ToGetZprPoliciesZprPolicyItemOutputWithContext

func (o GetZprPoliciesZprPolicyItemOutput) ToGetZprPoliciesZprPolicyItemOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyItemOutput

type GetZprPoliciesZprPolicyOutput

type GetZprPoliciesZprPolicyOutput struct{ *pulumi.OutputState }

func (GetZprPoliciesZprPolicyOutput) ElementType

func (GetZprPoliciesZprPolicyOutput) Items

func (GetZprPoliciesZprPolicyOutput) ToGetZprPoliciesZprPolicyOutput

func (o GetZprPoliciesZprPolicyOutput) ToGetZprPoliciesZprPolicyOutput() GetZprPoliciesZprPolicyOutput

func (GetZprPoliciesZprPolicyOutput) ToGetZprPoliciesZprPolicyOutputWithContext

func (o GetZprPoliciesZprPolicyOutput) ToGetZprPoliciesZprPolicyOutputWithContext(ctx context.Context) GetZprPoliciesZprPolicyOutput

type LookupConfigurationArgs

type LookupConfigurationArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
	CompartmentId string `pulumi:"compartmentId"`
}

A collection of arguments for invoking getConfiguration.

type LookupConfigurationOutputArgs

type LookupConfigurationOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
	CompartmentId pulumi.StringInput `pulumi:"compartmentId"`
}

A collection of arguments for invoking getConfiguration.

func (LookupConfigurationOutputArgs) ElementType

type LookupConfigurationResult

type LookupConfigurationResult struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy into which ZPR will be onboarded.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]string `pulumi:"definedTags"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]string `pulumi:"freeformTags"`
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprConfiguration.
	Id string `pulumi:"id"`
	// A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails string `pulumi:"lifecycleDetails"`
	// The current state of ZPR in the tenancy.
	State string `pulumi:"state"`
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags map[string]string `pulumi:"systemTags"`
	// The date and time that ZPR was onboarded to the tenancy, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated string `pulumi:"timeCreated"`
	// The date and time that ZPR was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated string `pulumi:"timeUpdated"`
	// The enabled or disabled status of ZPR in tenancy.
	ZprStatus string `pulumi:"zprStatus"`
}

A collection of values returned by getConfiguration.

func LookupConfiguration

func LookupConfiguration(ctx *pulumi.Context, args *LookupConfigurationArgs, opts ...pulumi.InvokeOption) (*LookupConfigurationResult, error)

This data source provides details about a specific Configuration resource in Oracle Cloud Infrastructure Zpr service.

Retrieves the ZPR configuration details for the root compartment (the root compartment is the tenancy). Returns ZPR configuration for root compartment (the root compartment is the tenancy).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Zpr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Zpr.GetConfiguration(ctx, &zpr.GetConfigurationArgs{
			CompartmentId: tenancyOcid,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupConfigurationResultOutput

type LookupConfigurationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getConfiguration.

func (LookupConfigurationResultOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy into which ZPR will be onboarded.

func (LookupConfigurationResultOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (LookupConfigurationResultOutput) ElementType

func (LookupConfigurationResultOutput) FreeformTags

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (LookupConfigurationResultOutput) Id

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprConfiguration.

func (LookupConfigurationResultOutput) LifecycleDetails

A message that describes the current state of ZPR in more detail. For example, can be used to provide actionable information for a resource in the Failed state.

func (LookupConfigurationResultOutput) State

The current state of ZPR in the tenancy.

func (LookupConfigurationResultOutput) SystemTags

System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (LookupConfigurationResultOutput) TimeCreated

The date and time that ZPR was onboarded to the tenancy, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (LookupConfigurationResultOutput) TimeUpdated

The date and time that ZPR was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (LookupConfigurationResultOutput) ToLookupConfigurationResultOutput

func (o LookupConfigurationResultOutput) ToLookupConfigurationResultOutput() LookupConfigurationResultOutput

func (LookupConfigurationResultOutput) ToLookupConfigurationResultOutputWithContext

func (o LookupConfigurationResultOutput) ToLookupConfigurationResultOutputWithContext(ctx context.Context) LookupConfigurationResultOutput

func (LookupConfigurationResultOutput) ZprStatus

The enabled or disabled status of ZPR in tenancy.

type LookupZprPolicyArgs

type LookupZprPolicyArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprPolicy.
	ZprPolicyId string `pulumi:"zprPolicyId"`
}

A collection of arguments for invoking getZprPolicy.

type LookupZprPolicyOutputArgs

type LookupZprPolicyOutputArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ZprPolicy.
	ZprPolicyId pulumi.StringInput `pulumi:"zprPolicyId"`
}

A collection of arguments for invoking getZprPolicy.

func (LookupZprPolicyOutputArgs) ElementType

func (LookupZprPolicyOutputArgs) ElementType() reflect.Type

type LookupZprPolicyResult

type LookupZprPolicyResult struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
	CompartmentId string `pulumi:"compartmentId"`
	// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags map[string]string `pulumi:"definedTags"`
	// The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
	Description string `pulumi:"description"`
	// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags map[string]string `pulumi:"freeformTags"`
	Id           string            `pulumi:"id"`
	// A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails string `pulumi:"lifecycleDetails"`
	// The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
	Name string `pulumi:"name"`
	// The current state of the ZprPolicy.
	State string `pulumi:"state"`
	// An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
	Statements []string `pulumi:"statements"`
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags map[string]string `pulumi:"systemTags"`
	// The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated string `pulumi:"timeCreated"`
	// The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated string `pulumi:"timeUpdated"`
	ZprPolicyId string `pulumi:"zprPolicyId"`
}

A collection of values returned by getZprPolicy.

func LookupZprPolicy

func LookupZprPolicy(ctx *pulumi.Context, args *LookupZprPolicyArgs, opts ...pulumi.InvokeOption) (*LookupZprPolicyResult, error)

This data source provides details about a specific Zpr Policy resource in Oracle Cloud Infrastructure Zpr service.

Gets information about a ZprPolicy.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Zpr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Zpr.GetZprPolicy(ctx, &zpr.GetZprPolicyArgs{
			ZprPolicyId: testZprPolicyOciZprZprPolicy.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupZprPolicyResultOutput

type LookupZprPolicyResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZprPolicy.

func (LookupZprPolicyResultOutput) CompartmentId

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.

func (LookupZprPolicyResultOutput) DefinedTags

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (LookupZprPolicyResultOutput) Description

The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.

func (LookupZprPolicyResultOutput) ElementType

func (LookupZprPolicyResultOutput) FreeformTags

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (LookupZprPolicyResultOutput) Id

func (LookupZprPolicyResultOutput) LifecycleDetails

func (o LookupZprPolicyResultOutput) LifecycleDetails() pulumi.StringOutput

A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.

func (LookupZprPolicyResultOutput) Name

The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.

func (LookupZprPolicyResultOutput) State

The current state of the ZprPolicy.

func (LookupZprPolicyResultOutput) Statements

An array of ZprPolicy statements (up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.

func (LookupZprPolicyResultOutput) SystemTags

System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (LookupZprPolicyResultOutput) TimeCreated

The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (LookupZprPolicyResultOutput) TimeUpdated

The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (LookupZprPolicyResultOutput) ToLookupZprPolicyResultOutput

func (o LookupZprPolicyResultOutput) ToLookupZprPolicyResultOutput() LookupZprPolicyResultOutput

func (LookupZprPolicyResultOutput) ToLookupZprPolicyResultOutputWithContext

func (o LookupZprPolicyResultOutput) ToLookupZprPolicyResultOutputWithContext(ctx context.Context) LookupZprPolicyResultOutput

func (LookupZprPolicyResultOutput) ZprPolicyId

type ZprPolicy

type ZprPolicy struct {
	pulumi.CustomResourceState

	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the ZprPolicy in.
	CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.StringMapOutput `pulumi:"definedTags"`
	// (Updatable) The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
	Description pulumi.StringOutput `pulumi:"description"`
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.StringMapOutput `pulumi:"freeformTags"`
	// A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"`
	// The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
	Name pulumi.StringOutput `pulumi:"name"`
	// The current state of the ZprPolicy.
	State pulumi.StringOutput `pulumi:"state"`
	// (Updatable) An array of ZprPolicy statements(up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Statements pulumi.StringArrayOutput `pulumi:"statements"`
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.StringMapOutput `pulumi:"systemTags"`
	// The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
}

This resource provides the Zpr Policy resource in Oracle Cloud Infrastructure Zpr service.

Creates a ZprPolicy.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Zpr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Zpr.NewZprPolicy(ctx, "test_zpr_policy", &Zpr.ZprPolicyArgs{
			CompartmentId: pulumi.Any(tenancyOcid),
			Description:   pulumi.Any(zprPolicyDescription),
			Name:          pulumi.Any(zprPolicyName),
			Statements:    pulumi.Any(zprPolicyStatements),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ZprPolicies can be imported using the `id`, e.g.

```sh $ pulumi import oci:Zpr/zprPolicy:ZprPolicy test_zpr_policy "id" ```

func GetZprPolicy

func GetZprPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ZprPolicyState, opts ...pulumi.ResourceOption) (*ZprPolicy, error)

GetZprPolicy gets an existing ZprPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewZprPolicy

func NewZprPolicy(ctx *pulumi.Context,
	name string, args *ZprPolicyArgs, opts ...pulumi.ResourceOption) (*ZprPolicy, error)

NewZprPolicy registers a new resource with the given unique name, arguments, and options.

func (*ZprPolicy) ElementType

func (*ZprPolicy) ElementType() reflect.Type

func (*ZprPolicy) ToZprPolicyOutput

func (i *ZprPolicy) ToZprPolicyOutput() ZprPolicyOutput

func (*ZprPolicy) ToZprPolicyOutputWithContext

func (i *ZprPolicy) ToZprPolicyOutputWithContext(ctx context.Context) ZprPolicyOutput

type ZprPolicyArgs

type ZprPolicyArgs struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the ZprPolicy in.
	CompartmentId pulumi.StringInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.StringMapInput
	// (Updatable) The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
	Description pulumi.StringInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.StringMapInput
	// The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
	Name pulumi.StringPtrInput
	// (Updatable) An array of ZprPolicy statements(up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Statements pulumi.StringArrayInput
}

The set of arguments for constructing a ZprPolicy resource.

func (ZprPolicyArgs) ElementType

func (ZprPolicyArgs) ElementType() reflect.Type

type ZprPolicyArray

type ZprPolicyArray []ZprPolicyInput

func (ZprPolicyArray) ElementType

func (ZprPolicyArray) ElementType() reflect.Type

func (ZprPolicyArray) ToZprPolicyArrayOutput

func (i ZprPolicyArray) ToZprPolicyArrayOutput() ZprPolicyArrayOutput

func (ZprPolicyArray) ToZprPolicyArrayOutputWithContext

func (i ZprPolicyArray) ToZprPolicyArrayOutputWithContext(ctx context.Context) ZprPolicyArrayOutput

type ZprPolicyArrayInput

type ZprPolicyArrayInput interface {
	pulumi.Input

	ToZprPolicyArrayOutput() ZprPolicyArrayOutput
	ToZprPolicyArrayOutputWithContext(context.Context) ZprPolicyArrayOutput
}

ZprPolicyArrayInput is an input type that accepts ZprPolicyArray and ZprPolicyArrayOutput values. You can construct a concrete instance of `ZprPolicyArrayInput` via:

ZprPolicyArray{ ZprPolicyArgs{...} }

type ZprPolicyArrayOutput

type ZprPolicyArrayOutput struct{ *pulumi.OutputState }

func (ZprPolicyArrayOutput) ElementType

func (ZprPolicyArrayOutput) ElementType() reflect.Type

func (ZprPolicyArrayOutput) Index

func (ZprPolicyArrayOutput) ToZprPolicyArrayOutput

func (o ZprPolicyArrayOutput) ToZprPolicyArrayOutput() ZprPolicyArrayOutput

func (ZprPolicyArrayOutput) ToZprPolicyArrayOutputWithContext

func (o ZprPolicyArrayOutput) ToZprPolicyArrayOutputWithContext(ctx context.Context) ZprPolicyArrayOutput

type ZprPolicyInput

type ZprPolicyInput interface {
	pulumi.Input

	ToZprPolicyOutput() ZprPolicyOutput
	ToZprPolicyOutputWithContext(ctx context.Context) ZprPolicyOutput
}

type ZprPolicyMap

type ZprPolicyMap map[string]ZprPolicyInput

func (ZprPolicyMap) ElementType

func (ZprPolicyMap) ElementType() reflect.Type

func (ZprPolicyMap) ToZprPolicyMapOutput

func (i ZprPolicyMap) ToZprPolicyMapOutput() ZprPolicyMapOutput

func (ZprPolicyMap) ToZprPolicyMapOutputWithContext

func (i ZprPolicyMap) ToZprPolicyMapOutputWithContext(ctx context.Context) ZprPolicyMapOutput

type ZprPolicyMapInput

type ZprPolicyMapInput interface {
	pulumi.Input

	ToZprPolicyMapOutput() ZprPolicyMapOutput
	ToZprPolicyMapOutputWithContext(context.Context) ZprPolicyMapOutput
}

ZprPolicyMapInput is an input type that accepts ZprPolicyMap and ZprPolicyMapOutput values. You can construct a concrete instance of `ZprPolicyMapInput` via:

ZprPolicyMap{ "key": ZprPolicyArgs{...} }

type ZprPolicyMapOutput

type ZprPolicyMapOutput struct{ *pulumi.OutputState }

func (ZprPolicyMapOutput) ElementType

func (ZprPolicyMapOutput) ElementType() reflect.Type

func (ZprPolicyMapOutput) MapIndex

func (ZprPolicyMapOutput) ToZprPolicyMapOutput

func (o ZprPolicyMapOutput) ToZprPolicyMapOutput() ZprPolicyMapOutput

func (ZprPolicyMapOutput) ToZprPolicyMapOutputWithContext

func (o ZprPolicyMapOutput) ToZprPolicyMapOutputWithContext(ctx context.Context) ZprPolicyMapOutput

type ZprPolicyOutput

type ZprPolicyOutput struct{ *pulumi.OutputState }

func (ZprPolicyOutput) CompartmentId

func (o ZprPolicyOutput) CompartmentId() pulumi.StringOutput

The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the ZprPolicy in.

func (ZprPolicyOutput) DefinedTags

func (o ZprPolicyOutput) DefinedTags() pulumi.StringMapOutput

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`

func (ZprPolicyOutput) Description

func (o ZprPolicyOutput) Description() pulumi.StringOutput

(Updatable) The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.

func (ZprPolicyOutput) ElementType

func (ZprPolicyOutput) ElementType() reflect.Type

func (ZprPolicyOutput) FreeformTags

func (o ZprPolicyOutput) FreeformTags() pulumi.StringMapOutput

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`

func (ZprPolicyOutput) LifecycleDetails

func (o ZprPolicyOutput) LifecycleDetails() pulumi.StringOutput

A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.

func (ZprPolicyOutput) Name

The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.

func (ZprPolicyOutput) State

The current state of the ZprPolicy.

func (ZprPolicyOutput) Statements

func (o ZprPolicyOutput) Statements() pulumi.StringArrayOutput

(Updatable) An array of ZprPolicy statements(up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

func (ZprPolicyOutput) SystemTags

func (o ZprPolicyOutput) SystemTags() pulumi.StringMapOutput

System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`

func (ZprPolicyOutput) TimeCreated

func (o ZprPolicyOutput) TimeCreated() pulumi.StringOutput

The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (ZprPolicyOutput) TimeUpdated

func (o ZprPolicyOutput) TimeUpdated() pulumi.StringOutput

The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`

func (ZprPolicyOutput) ToZprPolicyOutput

func (o ZprPolicyOutput) ToZprPolicyOutput() ZprPolicyOutput

func (ZprPolicyOutput) ToZprPolicyOutputWithContext

func (o ZprPolicyOutput) ToZprPolicyOutputWithContext(ctx context.Context) ZprPolicyOutput

type ZprPolicyState

type ZprPolicyState struct {
	// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the ZprPolicy in.
	CompartmentId pulumi.StringPtrInput
	// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Operations.CostCenter": "42"}`
	DefinedTags pulumi.StringMapInput
	// (Updatable) The description you assign to the ZprPolicy during creation. Does not have to be unique, and it's changeable.
	Description pulumi.StringPtrInput
	// (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).  Example: `{"Department": "Finance"}`
	FreeformTags pulumi.StringMapInput
	// A message that describes the current state of the ZprPolicy in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
	LifecycleDetails pulumi.StringPtrInput
	// The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.
	Name pulumi.StringPtrInput
	// The current state of the ZprPolicy.
	State pulumi.StringPtrInput
	// (Updatable) An array of ZprPolicy statements(up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.
	//
	// ** IMPORTANT **
	// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
	Statements pulumi.StringArrayInput
	// System tags for this resource. Each key is predefined and scoped to a namespace.  Example: `{"orcl-cloud.free-tier-retained": "true"}`
	SystemTags pulumi.StringMapInput
	// The date and time the ZprPolicy was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeCreated pulumi.StringPtrInput
	// The date and time the ZprPolicy was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339).  Example: `2016-08-25T21:10:29.600Z`
	TimeUpdated pulumi.StringPtrInput
}

func (ZprPolicyState) ElementType

func (ZprPolicyState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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