verifiedpermissions

package
v6.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 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 GetPolicyStoreValidationSetting added in v6.21.0

type GetPolicyStoreValidationSetting struct {
	Mode string `pulumi:"mode"`
}

type GetPolicyStoreValidationSettingArgs added in v6.21.0

type GetPolicyStoreValidationSettingArgs struct {
	Mode pulumi.StringInput `pulumi:"mode"`
}

func (GetPolicyStoreValidationSettingArgs) ElementType added in v6.21.0

func (GetPolicyStoreValidationSettingArgs) ToGetPolicyStoreValidationSettingOutput added in v6.21.0

func (i GetPolicyStoreValidationSettingArgs) ToGetPolicyStoreValidationSettingOutput() GetPolicyStoreValidationSettingOutput

func (GetPolicyStoreValidationSettingArgs) ToGetPolicyStoreValidationSettingOutputWithContext added in v6.21.0

func (i GetPolicyStoreValidationSettingArgs) ToGetPolicyStoreValidationSettingOutputWithContext(ctx context.Context) GetPolicyStoreValidationSettingOutput

type GetPolicyStoreValidationSettingArray added in v6.21.0

type GetPolicyStoreValidationSettingArray []GetPolicyStoreValidationSettingInput

func (GetPolicyStoreValidationSettingArray) ElementType added in v6.21.0

func (GetPolicyStoreValidationSettingArray) ToGetPolicyStoreValidationSettingArrayOutput added in v6.21.0

func (i GetPolicyStoreValidationSettingArray) ToGetPolicyStoreValidationSettingArrayOutput() GetPolicyStoreValidationSettingArrayOutput

func (GetPolicyStoreValidationSettingArray) ToGetPolicyStoreValidationSettingArrayOutputWithContext added in v6.21.0

func (i GetPolicyStoreValidationSettingArray) ToGetPolicyStoreValidationSettingArrayOutputWithContext(ctx context.Context) GetPolicyStoreValidationSettingArrayOutput

type GetPolicyStoreValidationSettingArrayInput added in v6.21.0

type GetPolicyStoreValidationSettingArrayInput interface {
	pulumi.Input

	ToGetPolicyStoreValidationSettingArrayOutput() GetPolicyStoreValidationSettingArrayOutput
	ToGetPolicyStoreValidationSettingArrayOutputWithContext(context.Context) GetPolicyStoreValidationSettingArrayOutput
}

GetPolicyStoreValidationSettingArrayInput is an input type that accepts GetPolicyStoreValidationSettingArray and GetPolicyStoreValidationSettingArrayOutput values. You can construct a concrete instance of `GetPolicyStoreValidationSettingArrayInput` via:

GetPolicyStoreValidationSettingArray{ GetPolicyStoreValidationSettingArgs{...} }

type GetPolicyStoreValidationSettingArrayOutput added in v6.21.0

type GetPolicyStoreValidationSettingArrayOutput struct{ *pulumi.OutputState }

func (GetPolicyStoreValidationSettingArrayOutput) ElementType added in v6.21.0

func (GetPolicyStoreValidationSettingArrayOutput) Index added in v6.21.0

func (GetPolicyStoreValidationSettingArrayOutput) ToGetPolicyStoreValidationSettingArrayOutput added in v6.21.0

func (o GetPolicyStoreValidationSettingArrayOutput) ToGetPolicyStoreValidationSettingArrayOutput() GetPolicyStoreValidationSettingArrayOutput

func (GetPolicyStoreValidationSettingArrayOutput) ToGetPolicyStoreValidationSettingArrayOutputWithContext added in v6.21.0

func (o GetPolicyStoreValidationSettingArrayOutput) ToGetPolicyStoreValidationSettingArrayOutputWithContext(ctx context.Context) GetPolicyStoreValidationSettingArrayOutput

type GetPolicyStoreValidationSettingInput added in v6.21.0

type GetPolicyStoreValidationSettingInput interface {
	pulumi.Input

	ToGetPolicyStoreValidationSettingOutput() GetPolicyStoreValidationSettingOutput
	ToGetPolicyStoreValidationSettingOutputWithContext(context.Context) GetPolicyStoreValidationSettingOutput
}

GetPolicyStoreValidationSettingInput is an input type that accepts GetPolicyStoreValidationSettingArgs and GetPolicyStoreValidationSettingOutput values. You can construct a concrete instance of `GetPolicyStoreValidationSettingInput` via:

GetPolicyStoreValidationSettingArgs{...}

type GetPolicyStoreValidationSettingOutput added in v6.21.0

type GetPolicyStoreValidationSettingOutput struct{ *pulumi.OutputState }

func (GetPolicyStoreValidationSettingOutput) ElementType added in v6.21.0

func (GetPolicyStoreValidationSettingOutput) Mode added in v6.21.0

func (GetPolicyStoreValidationSettingOutput) ToGetPolicyStoreValidationSettingOutput added in v6.21.0

func (o GetPolicyStoreValidationSettingOutput) ToGetPolicyStoreValidationSettingOutput() GetPolicyStoreValidationSettingOutput

func (GetPolicyStoreValidationSettingOutput) ToGetPolicyStoreValidationSettingOutputWithContext added in v6.21.0

func (o GetPolicyStoreValidationSettingOutput) ToGetPolicyStoreValidationSettingOutputWithContext(ctx context.Context) GetPolicyStoreValidationSettingOutput

type LookupPolicyStoreArgs

type LookupPolicyStoreArgs struct {
	// The ID of the Policy Store.
	Id string `pulumi:"id"`
}

A collection of arguments for invoking getPolicyStore.

type LookupPolicyStoreOutputArgs

type LookupPolicyStoreOutputArgs struct {
	// The ID of the Policy Store.
	Id pulumi.StringInput `pulumi:"id"`
}

A collection of arguments for invoking getPolicyStore.

func (LookupPolicyStoreOutputArgs) ElementType

type LookupPolicyStoreResult

type LookupPolicyStoreResult struct {
	// The ARN of the Policy Store.
	Arn string `pulumi:"arn"`
	// The date the Policy Store was created.
	CreatedDate string `pulumi:"createdDate"`
	Description string `pulumi:"description"`
	Id          string `pulumi:"id"`
	// The date the Policy Store was last updated.
	LastUpdatedDate string `pulumi:"lastUpdatedDate"`
	// Validation settings for the policy store.
	ValidationSettings []GetPolicyStoreValidationSetting `pulumi:"validationSettings"`
}

A collection of values returned by getPolicyStore.

func LookupPolicyStore

func LookupPolicyStore(ctx *pulumi.Context, args *LookupPolicyStoreArgs, opts ...pulumi.InvokeOption) (*LookupPolicyStoreResult, error)

Data source for managing an AWS Verified Permissions Policy Store.

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/verifiedpermissions"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := verifiedpermissions.LookupPolicyStore(ctx, &verifiedpermissions.LookupPolicyStoreArgs{
			Id: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupPolicyStoreResultOutput

type LookupPolicyStoreResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPolicyStore.

func (LookupPolicyStoreResultOutput) Arn

The ARN of the Policy Store.

func (LookupPolicyStoreResultOutput) CreatedDate

The date the Policy Store was created.

func (LookupPolicyStoreResultOutput) Description

func (LookupPolicyStoreResultOutput) ElementType

func (LookupPolicyStoreResultOutput) Id

func (LookupPolicyStoreResultOutput) LastUpdatedDate

The date the Policy Store was last updated.

func (LookupPolicyStoreResultOutput) ToLookupPolicyStoreResultOutput

func (o LookupPolicyStoreResultOutput) ToLookupPolicyStoreResultOutput() LookupPolicyStoreResultOutput

func (LookupPolicyStoreResultOutput) ToLookupPolicyStoreResultOutputWithContext

func (o LookupPolicyStoreResultOutput) ToLookupPolicyStoreResultOutputWithContext(ctx context.Context) LookupPolicyStoreResultOutput

func (LookupPolicyStoreResultOutput) ValidationSettings

Validation settings for the policy store.

type PolicyStore

type PolicyStore struct {
	pulumi.CustomResourceState

	// The ARN of the Policy Store.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// A description of the Policy Store.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringOutput `pulumi:"policyStoreId"`
	// Validation settings for the policy store.
	ValidationSettings PolicyStoreValidationSettingsPtrOutput `pulumi:"validationSettings"`
}

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/verifiedpermissions"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := verifiedpermissions.NewPolicyStore(ctx, "example", &verifiedpermissions.PolicyStoreArgs{
			ValidationSettings: &verifiedpermissions.PolicyStoreValidationSettingsArgs{
				Mode: pulumi.String("STRICT"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import Verified Permissions Policy Store using the `policy_store_id`. For example:

console

% pulumi import aws_verifiedpermissions_policy_store.example DxQg2j8xvXJQ1tQCYNWj9T

func GetPolicyStore

func GetPolicyStore(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyStoreState, opts ...pulumi.ResourceOption) (*PolicyStore, error)

GetPolicyStore gets an existing PolicyStore 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 NewPolicyStore

func NewPolicyStore(ctx *pulumi.Context,
	name string, args *PolicyStoreArgs, opts ...pulumi.ResourceOption) (*PolicyStore, error)

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

func (*PolicyStore) ElementType

func (*PolicyStore) ElementType() reflect.Type

func (*PolicyStore) ToPolicyStoreOutput

func (i *PolicyStore) ToPolicyStoreOutput() PolicyStoreOutput

func (*PolicyStore) ToPolicyStoreOutputWithContext

func (i *PolicyStore) ToPolicyStoreOutputWithContext(ctx context.Context) PolicyStoreOutput

type PolicyStoreArgs

type PolicyStoreArgs struct {
	// A description of the Policy Store.
	Description pulumi.StringPtrInput
	// Validation settings for the policy store.
	ValidationSettings PolicyStoreValidationSettingsPtrInput
}

The set of arguments for constructing a PolicyStore resource.

func (PolicyStoreArgs) ElementType

func (PolicyStoreArgs) ElementType() reflect.Type

type PolicyStoreArray

type PolicyStoreArray []PolicyStoreInput

func (PolicyStoreArray) ElementType

func (PolicyStoreArray) ElementType() reflect.Type

func (PolicyStoreArray) ToPolicyStoreArrayOutput

func (i PolicyStoreArray) ToPolicyStoreArrayOutput() PolicyStoreArrayOutput

func (PolicyStoreArray) ToPolicyStoreArrayOutputWithContext

func (i PolicyStoreArray) ToPolicyStoreArrayOutputWithContext(ctx context.Context) PolicyStoreArrayOutput

type PolicyStoreArrayInput

type PolicyStoreArrayInput interface {
	pulumi.Input

	ToPolicyStoreArrayOutput() PolicyStoreArrayOutput
	ToPolicyStoreArrayOutputWithContext(context.Context) PolicyStoreArrayOutput
}

PolicyStoreArrayInput is an input type that accepts PolicyStoreArray and PolicyStoreArrayOutput values. You can construct a concrete instance of `PolicyStoreArrayInput` via:

PolicyStoreArray{ PolicyStoreArgs{...} }

type PolicyStoreArrayOutput

type PolicyStoreArrayOutput struct{ *pulumi.OutputState }

func (PolicyStoreArrayOutput) ElementType

func (PolicyStoreArrayOutput) ElementType() reflect.Type

func (PolicyStoreArrayOutput) Index

func (PolicyStoreArrayOutput) ToPolicyStoreArrayOutput

func (o PolicyStoreArrayOutput) ToPolicyStoreArrayOutput() PolicyStoreArrayOutput

func (PolicyStoreArrayOutput) ToPolicyStoreArrayOutputWithContext

func (o PolicyStoreArrayOutput) ToPolicyStoreArrayOutputWithContext(ctx context.Context) PolicyStoreArrayOutput

type PolicyStoreInput

type PolicyStoreInput interface {
	pulumi.Input

	ToPolicyStoreOutput() PolicyStoreOutput
	ToPolicyStoreOutputWithContext(ctx context.Context) PolicyStoreOutput
}

type PolicyStoreMap

type PolicyStoreMap map[string]PolicyStoreInput

func (PolicyStoreMap) ElementType

func (PolicyStoreMap) ElementType() reflect.Type

func (PolicyStoreMap) ToPolicyStoreMapOutput

func (i PolicyStoreMap) ToPolicyStoreMapOutput() PolicyStoreMapOutput

func (PolicyStoreMap) ToPolicyStoreMapOutputWithContext

func (i PolicyStoreMap) ToPolicyStoreMapOutputWithContext(ctx context.Context) PolicyStoreMapOutput

type PolicyStoreMapInput

type PolicyStoreMapInput interface {
	pulumi.Input

	ToPolicyStoreMapOutput() PolicyStoreMapOutput
	ToPolicyStoreMapOutputWithContext(context.Context) PolicyStoreMapOutput
}

PolicyStoreMapInput is an input type that accepts PolicyStoreMap and PolicyStoreMapOutput values. You can construct a concrete instance of `PolicyStoreMapInput` via:

PolicyStoreMap{ "key": PolicyStoreArgs{...} }

type PolicyStoreMapOutput

type PolicyStoreMapOutput struct{ *pulumi.OutputState }

func (PolicyStoreMapOutput) ElementType

func (PolicyStoreMapOutput) ElementType() reflect.Type

func (PolicyStoreMapOutput) MapIndex

func (PolicyStoreMapOutput) ToPolicyStoreMapOutput

func (o PolicyStoreMapOutput) ToPolicyStoreMapOutput() PolicyStoreMapOutput

func (PolicyStoreMapOutput) ToPolicyStoreMapOutputWithContext

func (o PolicyStoreMapOutput) ToPolicyStoreMapOutputWithContext(ctx context.Context) PolicyStoreMapOutput

type PolicyStoreOutput

type PolicyStoreOutput struct{ *pulumi.OutputState }

func (PolicyStoreOutput) Arn

The ARN of the Policy Store.

func (PolicyStoreOutput) Description

func (o PolicyStoreOutput) Description() pulumi.StringPtrOutput

A description of the Policy Store.

func (PolicyStoreOutput) ElementType

func (PolicyStoreOutput) ElementType() reflect.Type

func (PolicyStoreOutput) PolicyStoreId

func (o PolicyStoreOutput) PolicyStoreId() pulumi.StringOutput

The ID of the Policy Store.

func (PolicyStoreOutput) ToPolicyStoreOutput

func (o PolicyStoreOutput) ToPolicyStoreOutput() PolicyStoreOutput

func (PolicyStoreOutput) ToPolicyStoreOutputWithContext

func (o PolicyStoreOutput) ToPolicyStoreOutputWithContext(ctx context.Context) PolicyStoreOutput

func (PolicyStoreOutput) ValidationSettings

Validation settings for the policy store.

type PolicyStoreState

type PolicyStoreState struct {
	// The ARN of the Policy Store.
	Arn pulumi.StringPtrInput
	// A description of the Policy Store.
	Description pulumi.StringPtrInput
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringPtrInput
	// Validation settings for the policy store.
	ValidationSettings PolicyStoreValidationSettingsPtrInput
}

func (PolicyStoreState) ElementType

func (PolicyStoreState) ElementType() reflect.Type

type PolicyStoreValidationSettings

type PolicyStoreValidationSettings struct {
	// The mode for the validation settings. Valid values: `OFF`, `STRICT`.
	//
	// The following arguments are optional:
	Mode string `pulumi:"mode"`
}

type PolicyStoreValidationSettingsArgs

type PolicyStoreValidationSettingsArgs struct {
	// The mode for the validation settings. Valid values: `OFF`, `STRICT`.
	//
	// The following arguments are optional:
	Mode pulumi.StringInput `pulumi:"mode"`
}

func (PolicyStoreValidationSettingsArgs) ElementType

func (PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsOutput

func (i PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsOutput() PolicyStoreValidationSettingsOutput

func (PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsOutputWithContext

func (i PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsOutputWithContext(ctx context.Context) PolicyStoreValidationSettingsOutput

func (PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsPtrOutput

func (i PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsPtrOutput() PolicyStoreValidationSettingsPtrOutput

func (PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsPtrOutputWithContext

func (i PolicyStoreValidationSettingsArgs) ToPolicyStoreValidationSettingsPtrOutputWithContext(ctx context.Context) PolicyStoreValidationSettingsPtrOutput

type PolicyStoreValidationSettingsInput

type PolicyStoreValidationSettingsInput interface {
	pulumi.Input

	ToPolicyStoreValidationSettingsOutput() PolicyStoreValidationSettingsOutput
	ToPolicyStoreValidationSettingsOutputWithContext(context.Context) PolicyStoreValidationSettingsOutput
}

PolicyStoreValidationSettingsInput is an input type that accepts PolicyStoreValidationSettingsArgs and PolicyStoreValidationSettingsOutput values. You can construct a concrete instance of `PolicyStoreValidationSettingsInput` via:

PolicyStoreValidationSettingsArgs{...}

type PolicyStoreValidationSettingsOutput

type PolicyStoreValidationSettingsOutput struct{ *pulumi.OutputState }

func (PolicyStoreValidationSettingsOutput) ElementType

func (PolicyStoreValidationSettingsOutput) Mode

The mode for the validation settings. Valid values: `OFF`, `STRICT`.

The following arguments are optional:

func (PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsOutput

func (o PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsOutput() PolicyStoreValidationSettingsOutput

func (PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsOutputWithContext

func (o PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsOutputWithContext(ctx context.Context) PolicyStoreValidationSettingsOutput

func (PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsPtrOutput

func (o PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsPtrOutput() PolicyStoreValidationSettingsPtrOutput

func (PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsPtrOutputWithContext

func (o PolicyStoreValidationSettingsOutput) ToPolicyStoreValidationSettingsPtrOutputWithContext(ctx context.Context) PolicyStoreValidationSettingsPtrOutput

type PolicyStoreValidationSettingsPtrInput

type PolicyStoreValidationSettingsPtrInput interface {
	pulumi.Input

	ToPolicyStoreValidationSettingsPtrOutput() PolicyStoreValidationSettingsPtrOutput
	ToPolicyStoreValidationSettingsPtrOutputWithContext(context.Context) PolicyStoreValidationSettingsPtrOutput
}

PolicyStoreValidationSettingsPtrInput is an input type that accepts PolicyStoreValidationSettingsArgs, PolicyStoreValidationSettingsPtr and PolicyStoreValidationSettingsPtrOutput values. You can construct a concrete instance of `PolicyStoreValidationSettingsPtrInput` via:

        PolicyStoreValidationSettingsArgs{...}

or:

        nil

type PolicyStoreValidationSettingsPtrOutput

type PolicyStoreValidationSettingsPtrOutput struct{ *pulumi.OutputState }

func (PolicyStoreValidationSettingsPtrOutput) Elem

func (PolicyStoreValidationSettingsPtrOutput) ElementType

func (PolicyStoreValidationSettingsPtrOutput) Mode

The mode for the validation settings. Valid values: `OFF`, `STRICT`.

The following arguments are optional:

func (PolicyStoreValidationSettingsPtrOutput) ToPolicyStoreValidationSettingsPtrOutput

func (o PolicyStoreValidationSettingsPtrOutput) ToPolicyStoreValidationSettingsPtrOutput() PolicyStoreValidationSettingsPtrOutput

func (PolicyStoreValidationSettingsPtrOutput) ToPolicyStoreValidationSettingsPtrOutputWithContext

func (o PolicyStoreValidationSettingsPtrOutput) ToPolicyStoreValidationSettingsPtrOutputWithContext(ctx context.Context) PolicyStoreValidationSettingsPtrOutput

type PolicyTemplate

type PolicyTemplate struct {
	pulumi.CustomResourceState

	// The date the Policy Store was created.
	CreatedDate pulumi.StringOutput `pulumi:"createdDate"`
	// Provides a description for the policy template.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringOutput `pulumi:"policyStoreId"`
	// The ID of the Policy Store.
	PolicyTemplateId pulumi.StringOutput `pulumi:"policyTemplateId"`
	// Defines the content of the statement, written in Cedar policy language.
	//
	// The following arguments are optional:
	Statement pulumi.StringOutput `pulumi:"statement"`
}

Resource for managing an AWS Verified Permissions Policy Template.

## Example Usage ### Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/verifiedpermissions"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := verifiedpermissions.NewPolicyTemplate(ctx, "example", &verifiedpermissions.PolicyTemplateArgs{
			PolicyStoreId: pulumi.Any(aws_verifiedpermissions_policy_store.Example.Id),
			Statement:     pulumi.String("permit (principal in ?principal, action in PhotoFlash::Action::\"FullPhotoAccess\", resource == ?resource) unless { resource.IsPrivate };"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import Verified Permissions Policy Store using the `policy_store_id:policy_template_id`. For example:

```sh

$ pulumi import aws:verifiedpermissions/policyTemplate:PolicyTemplate example policyStoreId:policyTemplateId

```

func GetPolicyTemplate

func GetPolicyTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyTemplateState, opts ...pulumi.ResourceOption) (*PolicyTemplate, error)

GetPolicyTemplate gets an existing PolicyTemplate 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 NewPolicyTemplate

func NewPolicyTemplate(ctx *pulumi.Context,
	name string, args *PolicyTemplateArgs, opts ...pulumi.ResourceOption) (*PolicyTemplate, error)

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

func (*PolicyTemplate) ElementType

func (*PolicyTemplate) ElementType() reflect.Type

func (*PolicyTemplate) ToPolicyTemplateOutput

func (i *PolicyTemplate) ToPolicyTemplateOutput() PolicyTemplateOutput

func (*PolicyTemplate) ToPolicyTemplateOutputWithContext

func (i *PolicyTemplate) ToPolicyTemplateOutputWithContext(ctx context.Context) PolicyTemplateOutput

type PolicyTemplateArgs

type PolicyTemplateArgs struct {
	// Provides a description for the policy template.
	Description pulumi.StringPtrInput
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringInput
	// Defines the content of the statement, written in Cedar policy language.
	//
	// The following arguments are optional:
	Statement pulumi.StringInput
}

The set of arguments for constructing a PolicyTemplate resource.

func (PolicyTemplateArgs) ElementType

func (PolicyTemplateArgs) ElementType() reflect.Type

type PolicyTemplateArray

type PolicyTemplateArray []PolicyTemplateInput

func (PolicyTemplateArray) ElementType

func (PolicyTemplateArray) ElementType() reflect.Type

func (PolicyTemplateArray) ToPolicyTemplateArrayOutput

func (i PolicyTemplateArray) ToPolicyTemplateArrayOutput() PolicyTemplateArrayOutput

func (PolicyTemplateArray) ToPolicyTemplateArrayOutputWithContext

func (i PolicyTemplateArray) ToPolicyTemplateArrayOutputWithContext(ctx context.Context) PolicyTemplateArrayOutput

type PolicyTemplateArrayInput

type PolicyTemplateArrayInput interface {
	pulumi.Input

	ToPolicyTemplateArrayOutput() PolicyTemplateArrayOutput
	ToPolicyTemplateArrayOutputWithContext(context.Context) PolicyTemplateArrayOutput
}

PolicyTemplateArrayInput is an input type that accepts PolicyTemplateArray and PolicyTemplateArrayOutput values. You can construct a concrete instance of `PolicyTemplateArrayInput` via:

PolicyTemplateArray{ PolicyTemplateArgs{...} }

type PolicyTemplateArrayOutput

type PolicyTemplateArrayOutput struct{ *pulumi.OutputState }

func (PolicyTemplateArrayOutput) ElementType

func (PolicyTemplateArrayOutput) ElementType() reflect.Type

func (PolicyTemplateArrayOutput) Index

func (PolicyTemplateArrayOutput) ToPolicyTemplateArrayOutput

func (o PolicyTemplateArrayOutput) ToPolicyTemplateArrayOutput() PolicyTemplateArrayOutput

func (PolicyTemplateArrayOutput) ToPolicyTemplateArrayOutputWithContext

func (o PolicyTemplateArrayOutput) ToPolicyTemplateArrayOutputWithContext(ctx context.Context) PolicyTemplateArrayOutput

type PolicyTemplateInput

type PolicyTemplateInput interface {
	pulumi.Input

	ToPolicyTemplateOutput() PolicyTemplateOutput
	ToPolicyTemplateOutputWithContext(ctx context.Context) PolicyTemplateOutput
}

type PolicyTemplateMap

type PolicyTemplateMap map[string]PolicyTemplateInput

func (PolicyTemplateMap) ElementType

func (PolicyTemplateMap) ElementType() reflect.Type

func (PolicyTemplateMap) ToPolicyTemplateMapOutput

func (i PolicyTemplateMap) ToPolicyTemplateMapOutput() PolicyTemplateMapOutput

func (PolicyTemplateMap) ToPolicyTemplateMapOutputWithContext

func (i PolicyTemplateMap) ToPolicyTemplateMapOutputWithContext(ctx context.Context) PolicyTemplateMapOutput

type PolicyTemplateMapInput

type PolicyTemplateMapInput interface {
	pulumi.Input

	ToPolicyTemplateMapOutput() PolicyTemplateMapOutput
	ToPolicyTemplateMapOutputWithContext(context.Context) PolicyTemplateMapOutput
}

PolicyTemplateMapInput is an input type that accepts PolicyTemplateMap and PolicyTemplateMapOutput values. You can construct a concrete instance of `PolicyTemplateMapInput` via:

PolicyTemplateMap{ "key": PolicyTemplateArgs{...} }

type PolicyTemplateMapOutput

type PolicyTemplateMapOutput struct{ *pulumi.OutputState }

func (PolicyTemplateMapOutput) ElementType

func (PolicyTemplateMapOutput) ElementType() reflect.Type

func (PolicyTemplateMapOutput) MapIndex

func (PolicyTemplateMapOutput) ToPolicyTemplateMapOutput

func (o PolicyTemplateMapOutput) ToPolicyTemplateMapOutput() PolicyTemplateMapOutput

func (PolicyTemplateMapOutput) ToPolicyTemplateMapOutputWithContext

func (o PolicyTemplateMapOutput) ToPolicyTemplateMapOutputWithContext(ctx context.Context) PolicyTemplateMapOutput

type PolicyTemplateOutput

type PolicyTemplateOutput struct{ *pulumi.OutputState }

func (PolicyTemplateOutput) CreatedDate

func (o PolicyTemplateOutput) CreatedDate() pulumi.StringOutput

The date the Policy Store was created.

func (PolicyTemplateOutput) Description

Provides a description for the policy template.

func (PolicyTemplateOutput) ElementType

func (PolicyTemplateOutput) ElementType() reflect.Type

func (PolicyTemplateOutput) PolicyStoreId

func (o PolicyTemplateOutput) PolicyStoreId() pulumi.StringOutput

The ID of the Policy Store.

func (PolicyTemplateOutput) PolicyTemplateId

func (o PolicyTemplateOutput) PolicyTemplateId() pulumi.StringOutput

The ID of the Policy Store.

func (PolicyTemplateOutput) Statement

Defines the content of the statement, written in Cedar policy language.

The following arguments are optional:

func (PolicyTemplateOutput) ToPolicyTemplateOutput

func (o PolicyTemplateOutput) ToPolicyTemplateOutput() PolicyTemplateOutput

func (PolicyTemplateOutput) ToPolicyTemplateOutputWithContext

func (o PolicyTemplateOutput) ToPolicyTemplateOutputWithContext(ctx context.Context) PolicyTemplateOutput

type PolicyTemplateState

type PolicyTemplateState struct {
	// The date the Policy Store was created.
	CreatedDate pulumi.StringPtrInput
	// Provides a description for the policy template.
	Description pulumi.StringPtrInput
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringPtrInput
	// The ID of the Policy Store.
	PolicyTemplateId pulumi.StringPtrInput
	// Defines the content of the statement, written in Cedar policy language.
	//
	// The following arguments are optional:
	Statement pulumi.StringPtrInput
}

func (PolicyTemplateState) ElementType

func (PolicyTemplateState) ElementType() reflect.Type

type Schema

type Schema struct {
	pulumi.CustomResourceState

	// The definition of the schema.
	Definition SchemaDefinitionPtrOutput `pulumi:"definition"`
	// (Optional) Identifies the namespaces of the entities referenced by this schema.
	Namespaces pulumi.StringArrayOutput `pulumi:"namespaces"`
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringOutput `pulumi:"policyStoreId"`
}

## Example Usage

## Import

Using `pulumi import`, import Verified Permissions Policy Store Schema using the `policy_store_id`. For example:

console

% pulumi import aws_verifiedpermissions_schema.example DxQg2j8xvXJQ1tQCYNWj9T

func GetSchema

func GetSchema(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SchemaState, opts ...pulumi.ResourceOption) (*Schema, error)

GetSchema gets an existing Schema 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 NewSchema

func NewSchema(ctx *pulumi.Context,
	name string, args *SchemaArgs, opts ...pulumi.ResourceOption) (*Schema, error)

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

func (*Schema) ElementType

func (*Schema) ElementType() reflect.Type

func (*Schema) ToSchemaOutput

func (i *Schema) ToSchemaOutput() SchemaOutput

func (*Schema) ToSchemaOutputWithContext

func (i *Schema) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput

type SchemaArgs

type SchemaArgs struct {
	// The definition of the schema.
	Definition SchemaDefinitionPtrInput
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringInput
}

The set of arguments for constructing a Schema resource.

func (SchemaArgs) ElementType

func (SchemaArgs) ElementType() reflect.Type

type SchemaArray

type SchemaArray []SchemaInput

func (SchemaArray) ElementType

func (SchemaArray) ElementType() reflect.Type

func (SchemaArray) ToSchemaArrayOutput

func (i SchemaArray) ToSchemaArrayOutput() SchemaArrayOutput

func (SchemaArray) ToSchemaArrayOutputWithContext

func (i SchemaArray) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput

type SchemaArrayInput

type SchemaArrayInput interface {
	pulumi.Input

	ToSchemaArrayOutput() SchemaArrayOutput
	ToSchemaArrayOutputWithContext(context.Context) SchemaArrayOutput
}

SchemaArrayInput is an input type that accepts SchemaArray and SchemaArrayOutput values. You can construct a concrete instance of `SchemaArrayInput` via:

SchemaArray{ SchemaArgs{...} }

type SchemaArrayOutput

type SchemaArrayOutput struct{ *pulumi.OutputState }

func (SchemaArrayOutput) ElementType

func (SchemaArrayOutput) ElementType() reflect.Type

func (SchemaArrayOutput) Index

func (SchemaArrayOutput) ToSchemaArrayOutput

func (o SchemaArrayOutput) ToSchemaArrayOutput() SchemaArrayOutput

func (SchemaArrayOutput) ToSchemaArrayOutputWithContext

func (o SchemaArrayOutput) ToSchemaArrayOutputWithContext(ctx context.Context) SchemaArrayOutput

type SchemaDefinition

type SchemaDefinition struct {
	// A JSON string representation of the schema.
	Value string `pulumi:"value"`
}

type SchemaDefinitionArgs

type SchemaDefinitionArgs struct {
	// A JSON string representation of the schema.
	Value pulumi.StringInput `pulumi:"value"`
}

func (SchemaDefinitionArgs) ElementType

func (SchemaDefinitionArgs) ElementType() reflect.Type

func (SchemaDefinitionArgs) ToSchemaDefinitionOutput

func (i SchemaDefinitionArgs) ToSchemaDefinitionOutput() SchemaDefinitionOutput

func (SchemaDefinitionArgs) ToSchemaDefinitionOutputWithContext

func (i SchemaDefinitionArgs) ToSchemaDefinitionOutputWithContext(ctx context.Context) SchemaDefinitionOutput

func (SchemaDefinitionArgs) ToSchemaDefinitionPtrOutput

func (i SchemaDefinitionArgs) ToSchemaDefinitionPtrOutput() SchemaDefinitionPtrOutput

func (SchemaDefinitionArgs) ToSchemaDefinitionPtrOutputWithContext

func (i SchemaDefinitionArgs) ToSchemaDefinitionPtrOutputWithContext(ctx context.Context) SchemaDefinitionPtrOutput

type SchemaDefinitionInput

type SchemaDefinitionInput interface {
	pulumi.Input

	ToSchemaDefinitionOutput() SchemaDefinitionOutput
	ToSchemaDefinitionOutputWithContext(context.Context) SchemaDefinitionOutput
}

SchemaDefinitionInput is an input type that accepts SchemaDefinitionArgs and SchemaDefinitionOutput values. You can construct a concrete instance of `SchemaDefinitionInput` via:

SchemaDefinitionArgs{...}

type SchemaDefinitionOutput

type SchemaDefinitionOutput struct{ *pulumi.OutputState }

func (SchemaDefinitionOutput) ElementType

func (SchemaDefinitionOutput) ElementType() reflect.Type

func (SchemaDefinitionOutput) ToSchemaDefinitionOutput

func (o SchemaDefinitionOutput) ToSchemaDefinitionOutput() SchemaDefinitionOutput

func (SchemaDefinitionOutput) ToSchemaDefinitionOutputWithContext

func (o SchemaDefinitionOutput) ToSchemaDefinitionOutputWithContext(ctx context.Context) SchemaDefinitionOutput

func (SchemaDefinitionOutput) ToSchemaDefinitionPtrOutput

func (o SchemaDefinitionOutput) ToSchemaDefinitionPtrOutput() SchemaDefinitionPtrOutput

func (SchemaDefinitionOutput) ToSchemaDefinitionPtrOutputWithContext

func (o SchemaDefinitionOutput) ToSchemaDefinitionPtrOutputWithContext(ctx context.Context) SchemaDefinitionPtrOutput

func (SchemaDefinitionOutput) Value

A JSON string representation of the schema.

type SchemaDefinitionPtrInput

type SchemaDefinitionPtrInput interface {
	pulumi.Input

	ToSchemaDefinitionPtrOutput() SchemaDefinitionPtrOutput
	ToSchemaDefinitionPtrOutputWithContext(context.Context) SchemaDefinitionPtrOutput
}

SchemaDefinitionPtrInput is an input type that accepts SchemaDefinitionArgs, SchemaDefinitionPtr and SchemaDefinitionPtrOutput values. You can construct a concrete instance of `SchemaDefinitionPtrInput` via:

        SchemaDefinitionArgs{...}

or:

        nil

type SchemaDefinitionPtrOutput

type SchemaDefinitionPtrOutput struct{ *pulumi.OutputState }

func (SchemaDefinitionPtrOutput) Elem

func (SchemaDefinitionPtrOutput) ElementType

func (SchemaDefinitionPtrOutput) ElementType() reflect.Type

func (SchemaDefinitionPtrOutput) ToSchemaDefinitionPtrOutput

func (o SchemaDefinitionPtrOutput) ToSchemaDefinitionPtrOutput() SchemaDefinitionPtrOutput

func (SchemaDefinitionPtrOutput) ToSchemaDefinitionPtrOutputWithContext

func (o SchemaDefinitionPtrOutput) ToSchemaDefinitionPtrOutputWithContext(ctx context.Context) SchemaDefinitionPtrOutput

func (SchemaDefinitionPtrOutput) Value

A JSON string representation of the schema.

type SchemaInput

type SchemaInput interface {
	pulumi.Input

	ToSchemaOutput() SchemaOutput
	ToSchemaOutputWithContext(ctx context.Context) SchemaOutput
}

type SchemaMap

type SchemaMap map[string]SchemaInput

func (SchemaMap) ElementType

func (SchemaMap) ElementType() reflect.Type

func (SchemaMap) ToSchemaMapOutput

func (i SchemaMap) ToSchemaMapOutput() SchemaMapOutput

func (SchemaMap) ToSchemaMapOutputWithContext

func (i SchemaMap) ToSchemaMapOutputWithContext(ctx context.Context) SchemaMapOutput

type SchemaMapInput

type SchemaMapInput interface {
	pulumi.Input

	ToSchemaMapOutput() SchemaMapOutput
	ToSchemaMapOutputWithContext(context.Context) SchemaMapOutput
}

SchemaMapInput is an input type that accepts SchemaMap and SchemaMapOutput values. You can construct a concrete instance of `SchemaMapInput` via:

SchemaMap{ "key": SchemaArgs{...} }

type SchemaMapOutput

type SchemaMapOutput struct{ *pulumi.OutputState }

func (SchemaMapOutput) ElementType

func (SchemaMapOutput) ElementType() reflect.Type

func (SchemaMapOutput) MapIndex

func (SchemaMapOutput) ToSchemaMapOutput

func (o SchemaMapOutput) ToSchemaMapOutput() SchemaMapOutput

func (SchemaMapOutput) ToSchemaMapOutputWithContext

func (o SchemaMapOutput) ToSchemaMapOutputWithContext(ctx context.Context) SchemaMapOutput

type SchemaOutput

type SchemaOutput struct{ *pulumi.OutputState }

func (SchemaOutput) Definition

func (o SchemaOutput) Definition() SchemaDefinitionPtrOutput

The definition of the schema.

func (SchemaOutput) ElementType

func (SchemaOutput) ElementType() reflect.Type

func (SchemaOutput) Namespaces

func (o SchemaOutput) Namespaces() pulumi.StringArrayOutput

(Optional) Identifies the namespaces of the entities referenced by this schema.

func (SchemaOutput) PolicyStoreId

func (o SchemaOutput) PolicyStoreId() pulumi.StringOutput

The ID of the Policy Store.

func (SchemaOutput) ToSchemaOutput

func (o SchemaOutput) ToSchemaOutput() SchemaOutput

func (SchemaOutput) ToSchemaOutputWithContext

func (o SchemaOutput) ToSchemaOutputWithContext(ctx context.Context) SchemaOutput

type SchemaState

type SchemaState struct {
	// The definition of the schema.
	Definition SchemaDefinitionPtrInput
	// (Optional) Identifies the namespaces of the entities referenced by this schema.
	Namespaces pulumi.StringArrayInput
	// The ID of the Policy Store.
	PolicyStoreId pulumi.StringPtrInput
}

func (SchemaState) ElementType

func (SchemaState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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