policy

package
v0.16.4-dev Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assignment

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

Configured the specified Policy Definition at the specified Scope.

func GetAssignment

func GetAssignment(ctx *pulumi.Context,
	name string, id pulumi.ID, state *AssignmentState, opts ...pulumi.ResourceOpt) (*Assignment, error)

GetAssignment gets an existing Assignment 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 NewAssignment

func NewAssignment(ctx *pulumi.Context,
	name string, args *AssignmentArgs, opts ...pulumi.ResourceOpt) (*Assignment, error)

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

func (*Assignment) Description

func (r *Assignment) Description() *pulumi.StringOutput

A description to use for this Policy Assignment. Changing this forces a new resource to be created.

func (*Assignment) DisplayName

func (r *Assignment) DisplayName() *pulumi.StringOutput

A friendly display name to use for this Policy Assignment. Changing this forces a new resource to be created.

func (*Assignment) ID

func (r *Assignment) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Assignment) Name

func (r *Assignment) Name() *pulumi.StringOutput

The name of the Policy Assignment. Changing this forces a new resource to be created.

func (*Assignment) Parameters

func (r *Assignment) Parameters() *pulumi.StringOutput

Parameters for the policy definition. This field is a JSON object that maps to the Parameters field from the Policy Definition. Changing this forces a new resource to be created.

func (*Assignment) PolicyDefinitionId

func (r *Assignment) PolicyDefinitionId() *pulumi.StringOutput

The ID of the Policy Definition to be applied at the specified Scope.

func (*Assignment) Scope

func (r *Assignment) Scope() *pulumi.StringOutput

func (*Assignment) URN

func (r *Assignment) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

type AssignmentArgs

type AssignmentArgs struct {
	// A description to use for this Policy Assignment. Changing this forces a new resource to be created.
	Description interface{}
	// A friendly display name to use for this Policy Assignment. Changing this forces a new resource to be created.
	DisplayName interface{}
	// The name of the Policy Assignment. Changing this forces a new resource to be created.
	Name interface{}
	// Parameters for the policy definition. This field is a JSON object that maps to the Parameters field from the Policy Definition. Changing this forces a new resource to be created.
	Parameters interface{}
	// The ID of the Policy Definition to be applied at the specified Scope.
	PolicyDefinitionId interface{}
	Scope              interface{}
}

The set of arguments for constructing a Assignment resource.

type AssignmentState

type AssignmentState struct {
	// A description to use for this Policy Assignment. Changing this forces a new resource to be created.
	Description interface{}
	// A friendly display name to use for this Policy Assignment. Changing this forces a new resource to be created.
	DisplayName interface{}
	// The name of the Policy Assignment. Changing this forces a new resource to be created.
	Name interface{}
	// Parameters for the policy definition. This field is a JSON object that maps to the Parameters field from the Policy Definition. Changing this forces a new resource to be created.
	Parameters interface{}
	// The ID of the Policy Definition to be applied at the specified Scope.
	PolicyDefinitionId interface{}
	Scope              interface{}
}

Input properties used for looking up and filtering Assignment resources.

type Definition

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

Manages a policy for all of the resource groups under the subscription.

func GetDefinition

func GetDefinition(ctx *pulumi.Context,
	name string, id pulumi.ID, state *DefinitionState, opts ...pulumi.ResourceOpt) (*Definition, error)

GetDefinition gets an existing Definition 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 NewDefinition

func NewDefinition(ctx *pulumi.Context,
	name string, args *DefinitionArgs, opts ...pulumi.ResourceOpt) (*Definition, error)

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

func (*Definition) Description

func (r *Definition) Description() *pulumi.StringOutput

The description of the policy definition.

func (*Definition) DisplayName

func (r *Definition) DisplayName() *pulumi.StringOutput

The display name of the policy definition.

func (*Definition) ID

func (r *Definition) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Definition) Metadata

func (r *Definition) Metadata() *pulumi.StringOutput

The metadata for the policy definition. This is a json object representing the rule that contains an if and a then block.

func (*Definition) Mode

func (r *Definition) Mode() *pulumi.StringOutput

The policy mode that allows you to specify which resource types will be evaluated. The value can be "All", "Indexed" or "NotSpecified". Changing this resource forces a new resource to be created.

func (*Definition) Name

func (r *Definition) Name() *pulumi.StringOutput

The name of the policy definition. Changing this forces a new resource to be created.

func (*Definition) Parameters

func (r *Definition) Parameters() *pulumi.StringOutput

Parameters for the policy definition. This field is a json object that allows you to parameterize your policy definition.

func (*Definition) PolicyRule

func (r *Definition) PolicyRule() *pulumi.StringOutput

The policy rule for the policy definition. This is a json object representing the rule that contains an if and a then block.

func (*Definition) PolicyType

func (r *Definition) PolicyType() *pulumi.StringOutput

The policy type. The value can be "BuiltIn", "Custom" or "NotSpecified". Changing this forces a new resource to be created.

func (*Definition) URN

func (r *Definition) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

type DefinitionArgs

type DefinitionArgs struct {
	// The description of the policy definition.
	Description interface{}
	// The display name of the policy definition.
	DisplayName interface{}
	// The metadata for the policy definition. This
	// is a json object representing the rule that contains an if and
	// a then block.
	Metadata interface{}
	// The policy mode that allows you to specify which resource
	// types will be evaluated.  The value can be "All", "Indexed" or
	// "NotSpecified". Changing this resource forces a new resource to be
	// created.
	Mode interface{}
	// The name of the policy definition. Changing this forces a
	// new resource to be created.
	Name interface{}
	// Parameters for the policy definition. This field
	// is a json object that allows you to parameterize your policy definition.
	Parameters interface{}
	// The policy rule for the policy definition. This
	// is a json object representing the rule that contains an if and
	// a then block.
	PolicyRule interface{}
	// The policy type.  The value can be "BuiltIn", "Custom"
	// or "NotSpecified". Changing this forces a new resource to be created.
	PolicyType interface{}
}

The set of arguments for constructing a Definition resource.

type DefinitionState

type DefinitionState struct {
	// The description of the policy definition.
	Description interface{}
	// The display name of the policy definition.
	DisplayName interface{}
	// The metadata for the policy definition. This
	// is a json object representing the rule that contains an if and
	// a then block.
	Metadata interface{}
	// The policy mode that allows you to specify which resource
	// types will be evaluated.  The value can be "All", "Indexed" or
	// "NotSpecified". Changing this resource forces a new resource to be
	// created.
	Mode interface{}
	// The name of the policy definition. Changing this forces a
	// new resource to be created.
	Name interface{}
	// Parameters for the policy definition. This field
	// is a json object that allows you to parameterize your policy definition.
	Parameters interface{}
	// The policy rule for the policy definition. This
	// is a json object representing the rule that contains an if and
	// a then block.
	PolicyRule interface{}
	// The policy type.  The value can be "BuiltIn", "Custom"
	// or "NotSpecified". Changing this forces a new resource to be created.
	PolicyType interface{}
}

Input properties used for looking up and filtering Definition resources.

Jump to

Keyboard shortcuts

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