Documentation ¶
Index ¶
- type Collection
- type CollectionArgs
- type CollectionArray
- type CollectionArrayInput
- type CollectionArrayOutput
- func (CollectionArrayOutput) ElementType() reflect.Type
- func (o CollectionArrayOutput) Index(i pulumi.IntInput) CollectionOutput
- func (o CollectionArrayOutput) ToCollectionArrayOutput() CollectionArrayOutput
- func (o CollectionArrayOutput) ToCollectionArrayOutputWithContext(ctx context.Context) CollectionArrayOutput
- type CollectionInput
- type CollectionMap
- type CollectionMapInput
- type CollectionMapOutput
- func (CollectionMapOutput) ElementType() reflect.Type
- func (o CollectionMapOutput) MapIndex(k pulumi.StringInput) CollectionOutput
- func (o CollectionMapOutput) ToCollectionMapOutput() CollectionMapOutput
- func (o CollectionMapOutput) ToCollectionMapOutputWithContext(ctx context.Context) CollectionMapOutput
- type CollectionOutput
- func (o CollectionOutput) Arn() pulumi.StringOutput
- func (o CollectionOutput) CollectionId() pulumi.StringOutput
- func (CollectionOutput) ElementType() reflect.Type
- func (o CollectionOutput) FaceModelVersion() pulumi.StringOutput
- func (o CollectionOutput) Tags() pulumi.StringMapOutput
- func (o CollectionOutput) TagsAll() pulumi.StringMapOutputdeprecated
- func (o CollectionOutput) Timeouts() CollectionTimeoutsPtrOutput
- func (o CollectionOutput) ToCollectionOutput() CollectionOutput
- func (o CollectionOutput) ToCollectionOutputWithContext(ctx context.Context) CollectionOutput
- type CollectionState
- type CollectionTimeouts
- type CollectionTimeoutsArgs
- func (CollectionTimeoutsArgs) ElementType() reflect.Type
- func (i CollectionTimeoutsArgs) ToCollectionTimeoutsOutput() CollectionTimeoutsOutput
- func (i CollectionTimeoutsArgs) ToCollectionTimeoutsOutputWithContext(ctx context.Context) CollectionTimeoutsOutput
- func (i CollectionTimeoutsArgs) ToCollectionTimeoutsPtrOutput() CollectionTimeoutsPtrOutput
- func (i CollectionTimeoutsArgs) ToCollectionTimeoutsPtrOutputWithContext(ctx context.Context) CollectionTimeoutsPtrOutput
- type CollectionTimeoutsInput
- type CollectionTimeoutsOutput
- func (o CollectionTimeoutsOutput) Create() pulumi.StringPtrOutput
- func (CollectionTimeoutsOutput) ElementType() reflect.Type
- func (o CollectionTimeoutsOutput) ToCollectionTimeoutsOutput() CollectionTimeoutsOutput
- func (o CollectionTimeoutsOutput) ToCollectionTimeoutsOutputWithContext(ctx context.Context) CollectionTimeoutsOutput
- func (o CollectionTimeoutsOutput) ToCollectionTimeoutsPtrOutput() CollectionTimeoutsPtrOutput
- func (o CollectionTimeoutsOutput) ToCollectionTimeoutsPtrOutputWithContext(ctx context.Context) CollectionTimeoutsPtrOutput
- type CollectionTimeoutsPtrInput
- type CollectionTimeoutsPtrOutput
- func (o CollectionTimeoutsPtrOutput) Create() pulumi.StringPtrOutput
- func (o CollectionTimeoutsPtrOutput) Elem() CollectionTimeoutsOutput
- func (CollectionTimeoutsPtrOutput) ElementType() reflect.Type
- func (o CollectionTimeoutsPtrOutput) ToCollectionTimeoutsPtrOutput() CollectionTimeoutsPtrOutput
- func (o CollectionTimeoutsPtrOutput) ToCollectionTimeoutsPtrOutputWithContext(ctx context.Context) CollectionTimeoutsPtrOutput
- type Project
- type ProjectArgs
- type ProjectArray
- type ProjectArrayInput
- type ProjectArrayOutput
- type ProjectInput
- type ProjectMap
- type ProjectMapInput
- type ProjectMapOutput
- type ProjectOutput
- func (o ProjectOutput) Arn() pulumi.StringOutput
- func (o ProjectOutput) AutoUpdate() pulumi.StringOutput
- func (ProjectOutput) ElementType() reflect.Type
- func (o ProjectOutput) Feature() pulumi.StringPtrOutput
- func (o ProjectOutput) Name() pulumi.StringOutput
- func (o ProjectOutput) Timeouts() ProjectTimeoutsPtrOutput
- func (o ProjectOutput) ToProjectOutput() ProjectOutput
- func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
- type ProjectState
- type ProjectTimeouts
- type ProjectTimeoutsArgs
- func (ProjectTimeoutsArgs) ElementType() reflect.Type
- func (i ProjectTimeoutsArgs) ToProjectTimeoutsOutput() ProjectTimeoutsOutput
- func (i ProjectTimeoutsArgs) ToProjectTimeoutsOutputWithContext(ctx context.Context) ProjectTimeoutsOutput
- func (i ProjectTimeoutsArgs) ToProjectTimeoutsPtrOutput() ProjectTimeoutsPtrOutput
- func (i ProjectTimeoutsArgs) ToProjectTimeoutsPtrOutputWithContext(ctx context.Context) ProjectTimeoutsPtrOutput
- type ProjectTimeoutsInput
- type ProjectTimeoutsOutput
- func (o ProjectTimeoutsOutput) Create() pulumi.StringPtrOutput
- func (o ProjectTimeoutsOutput) Delete() pulumi.StringPtrOutput
- func (ProjectTimeoutsOutput) ElementType() reflect.Type
- func (o ProjectTimeoutsOutput) ToProjectTimeoutsOutput() ProjectTimeoutsOutput
- func (o ProjectTimeoutsOutput) ToProjectTimeoutsOutputWithContext(ctx context.Context) ProjectTimeoutsOutput
- func (o ProjectTimeoutsOutput) ToProjectTimeoutsPtrOutput() ProjectTimeoutsPtrOutput
- func (o ProjectTimeoutsOutput) ToProjectTimeoutsPtrOutputWithContext(ctx context.Context) ProjectTimeoutsPtrOutput
- type ProjectTimeoutsPtrInput
- type ProjectTimeoutsPtrOutput
- func (o ProjectTimeoutsPtrOutput) Create() pulumi.StringPtrOutput
- func (o ProjectTimeoutsPtrOutput) Delete() pulumi.StringPtrOutput
- func (o ProjectTimeoutsPtrOutput) Elem() ProjectTimeoutsOutput
- func (ProjectTimeoutsPtrOutput) ElementType() reflect.Type
- func (o ProjectTimeoutsPtrOutput) ToProjectTimeoutsPtrOutput() ProjectTimeoutsPtrOutput
- func (o ProjectTimeoutsPtrOutput) ToProjectTimeoutsPtrOutputWithContext(ctx context.Context) ProjectTimeoutsPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶ added in v6.21.0
type Collection struct { pulumi.CustomResourceState // ARN of the Collection. Arn pulumi.StringOutput `pulumi:"arn"` // The name of the collection // // The following arguments are optional: CollectionId pulumi.StringOutput `pulumi:"collectionId"` // The Face Model Version that the collection was initialized with FaceModelVersion pulumi.StringOutput `pulumi:"faceModelVersion"` // Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapOutput `pulumi:"tags"` // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. // // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` Timeouts CollectionTimeoutsPtrOutput `pulumi:"timeouts"` }
Resource for managing an AWS Rekognition Collection.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rekognition" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := rekognition.NewCollection(ctx, "example", &rekognition.CollectionArgs{ CollectionId: pulumi.String("my-collection"), Tags: pulumi.StringMap{ "example": pulumi.String("1"), }, }) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import Rekognition Collection using the `example_id_arg`. For example:
```sh $ pulumi import aws:rekognition/collection:Collection example collection-id-12345678 ```
func GetCollection ¶ added in v6.21.0
func GetCollection(ctx *pulumi.Context, name string, id pulumi.IDInput, state *CollectionState, opts ...pulumi.ResourceOption) (*Collection, error)
GetCollection gets an existing Collection 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 NewCollection ¶ added in v6.21.0
func NewCollection(ctx *pulumi.Context, name string, args *CollectionArgs, opts ...pulumi.ResourceOption) (*Collection, error)
NewCollection registers a new resource with the given unique name, arguments, and options.
func (*Collection) ElementType ¶ added in v6.21.0
func (*Collection) ElementType() reflect.Type
func (*Collection) ToCollectionOutput ¶ added in v6.21.0
func (i *Collection) ToCollectionOutput() CollectionOutput
func (*Collection) ToCollectionOutputWithContext ¶ added in v6.21.0
func (i *Collection) ToCollectionOutputWithContext(ctx context.Context) CollectionOutput
type CollectionArgs ¶ added in v6.21.0
type CollectionArgs struct { // The name of the collection // // The following arguments are optional: CollectionId pulumi.StringInput // Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput Timeouts CollectionTimeoutsPtrInput }
The set of arguments for constructing a Collection resource.
func (CollectionArgs) ElementType ¶ added in v6.21.0
func (CollectionArgs) ElementType() reflect.Type
type CollectionArray ¶ added in v6.21.0
type CollectionArray []CollectionInput
func (CollectionArray) ElementType ¶ added in v6.21.0
func (CollectionArray) ElementType() reflect.Type
func (CollectionArray) ToCollectionArrayOutput ¶ added in v6.21.0
func (i CollectionArray) ToCollectionArrayOutput() CollectionArrayOutput
func (CollectionArray) ToCollectionArrayOutputWithContext ¶ added in v6.21.0
func (i CollectionArray) ToCollectionArrayOutputWithContext(ctx context.Context) CollectionArrayOutput
type CollectionArrayInput ¶ added in v6.21.0
type CollectionArrayInput interface { pulumi.Input ToCollectionArrayOutput() CollectionArrayOutput ToCollectionArrayOutputWithContext(context.Context) CollectionArrayOutput }
CollectionArrayInput is an input type that accepts CollectionArray and CollectionArrayOutput values. You can construct a concrete instance of `CollectionArrayInput` via:
CollectionArray{ CollectionArgs{...} }
type CollectionArrayOutput ¶ added in v6.21.0
type CollectionArrayOutput struct{ *pulumi.OutputState }
func (CollectionArrayOutput) ElementType ¶ added in v6.21.0
func (CollectionArrayOutput) ElementType() reflect.Type
func (CollectionArrayOutput) Index ¶ added in v6.21.0
func (o CollectionArrayOutput) Index(i pulumi.IntInput) CollectionOutput
func (CollectionArrayOutput) ToCollectionArrayOutput ¶ added in v6.21.0
func (o CollectionArrayOutput) ToCollectionArrayOutput() CollectionArrayOutput
func (CollectionArrayOutput) ToCollectionArrayOutputWithContext ¶ added in v6.21.0
func (o CollectionArrayOutput) ToCollectionArrayOutputWithContext(ctx context.Context) CollectionArrayOutput
type CollectionInput ¶ added in v6.21.0
type CollectionInput interface { pulumi.Input ToCollectionOutput() CollectionOutput ToCollectionOutputWithContext(ctx context.Context) CollectionOutput }
type CollectionMap ¶ added in v6.21.0
type CollectionMap map[string]CollectionInput
func (CollectionMap) ElementType ¶ added in v6.21.0
func (CollectionMap) ElementType() reflect.Type
func (CollectionMap) ToCollectionMapOutput ¶ added in v6.21.0
func (i CollectionMap) ToCollectionMapOutput() CollectionMapOutput
func (CollectionMap) ToCollectionMapOutputWithContext ¶ added in v6.21.0
func (i CollectionMap) ToCollectionMapOutputWithContext(ctx context.Context) CollectionMapOutput
type CollectionMapInput ¶ added in v6.21.0
type CollectionMapInput interface { pulumi.Input ToCollectionMapOutput() CollectionMapOutput ToCollectionMapOutputWithContext(context.Context) CollectionMapOutput }
CollectionMapInput is an input type that accepts CollectionMap and CollectionMapOutput values. You can construct a concrete instance of `CollectionMapInput` via:
CollectionMap{ "key": CollectionArgs{...} }
type CollectionMapOutput ¶ added in v6.21.0
type CollectionMapOutput struct{ *pulumi.OutputState }
func (CollectionMapOutput) ElementType ¶ added in v6.21.0
func (CollectionMapOutput) ElementType() reflect.Type
func (CollectionMapOutput) MapIndex ¶ added in v6.21.0
func (o CollectionMapOutput) MapIndex(k pulumi.StringInput) CollectionOutput
func (CollectionMapOutput) ToCollectionMapOutput ¶ added in v6.21.0
func (o CollectionMapOutput) ToCollectionMapOutput() CollectionMapOutput
func (CollectionMapOutput) ToCollectionMapOutputWithContext ¶ added in v6.21.0
func (o CollectionMapOutput) ToCollectionMapOutputWithContext(ctx context.Context) CollectionMapOutput
type CollectionOutput ¶ added in v6.21.0
type CollectionOutput struct{ *pulumi.OutputState }
func (CollectionOutput) Arn ¶ added in v6.21.0
func (o CollectionOutput) Arn() pulumi.StringOutput
ARN of the Collection.
func (CollectionOutput) CollectionId ¶ added in v6.21.0
func (o CollectionOutput) CollectionId() pulumi.StringOutput
The name of the collection
The following arguments are optional:
func (CollectionOutput) ElementType ¶ added in v6.21.0
func (CollectionOutput) ElementType() reflect.Type
func (CollectionOutput) FaceModelVersion ¶ added in v6.21.0
func (o CollectionOutput) FaceModelVersion() pulumi.StringOutput
The Face Model Version that the collection was initialized with
func (CollectionOutput) Tags ¶ added in v6.21.0
func (o CollectionOutput) Tags() pulumi.StringMapOutput
Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (CollectionOutput) TagsAll
deprecated
added in
v6.21.0
func (o CollectionOutput) TagsAll() pulumi.StringMapOutput
A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
Deprecated: Please use `tags` instead.
func (CollectionOutput) Timeouts ¶ added in v6.21.0
func (o CollectionOutput) Timeouts() CollectionTimeoutsPtrOutput
func (CollectionOutput) ToCollectionOutput ¶ added in v6.21.0
func (o CollectionOutput) ToCollectionOutput() CollectionOutput
func (CollectionOutput) ToCollectionOutputWithContext ¶ added in v6.21.0
func (o CollectionOutput) ToCollectionOutputWithContext(ctx context.Context) CollectionOutput
type CollectionState ¶ added in v6.21.0
type CollectionState struct { // ARN of the Collection. Arn pulumi.StringPtrInput // The name of the collection // // The following arguments are optional: CollectionId pulumi.StringPtrInput // The Face Model Version that the collection was initialized with FaceModelVersion pulumi.StringPtrInput // Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. // // Deprecated: Please use `tags` instead. TagsAll pulumi.StringMapInput Timeouts CollectionTimeoutsPtrInput }
func (CollectionState) ElementType ¶ added in v6.21.0
func (CollectionState) ElementType() reflect.Type
type CollectionTimeouts ¶ added in v6.21.0
type CollectionTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Create *string `pulumi:"create"` }
type CollectionTimeoutsArgs ¶ added in v6.21.0
type CollectionTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Create pulumi.StringPtrInput `pulumi:"create"` }
func (CollectionTimeoutsArgs) ElementType ¶ added in v6.21.0
func (CollectionTimeoutsArgs) ElementType() reflect.Type
func (CollectionTimeoutsArgs) ToCollectionTimeoutsOutput ¶ added in v6.21.0
func (i CollectionTimeoutsArgs) ToCollectionTimeoutsOutput() CollectionTimeoutsOutput
func (CollectionTimeoutsArgs) ToCollectionTimeoutsOutputWithContext ¶ added in v6.21.0
func (i CollectionTimeoutsArgs) ToCollectionTimeoutsOutputWithContext(ctx context.Context) CollectionTimeoutsOutput
func (CollectionTimeoutsArgs) ToCollectionTimeoutsPtrOutput ¶ added in v6.21.0
func (i CollectionTimeoutsArgs) ToCollectionTimeoutsPtrOutput() CollectionTimeoutsPtrOutput
func (CollectionTimeoutsArgs) ToCollectionTimeoutsPtrOutputWithContext ¶ added in v6.21.0
func (i CollectionTimeoutsArgs) ToCollectionTimeoutsPtrOutputWithContext(ctx context.Context) CollectionTimeoutsPtrOutput
type CollectionTimeoutsInput ¶ added in v6.21.0
type CollectionTimeoutsInput interface { pulumi.Input ToCollectionTimeoutsOutput() CollectionTimeoutsOutput ToCollectionTimeoutsOutputWithContext(context.Context) CollectionTimeoutsOutput }
CollectionTimeoutsInput is an input type that accepts CollectionTimeoutsArgs and CollectionTimeoutsOutput values. You can construct a concrete instance of `CollectionTimeoutsInput` via:
CollectionTimeoutsArgs{...}
type CollectionTimeoutsOutput ¶ added in v6.21.0
type CollectionTimeoutsOutput struct{ *pulumi.OutputState }
func (CollectionTimeoutsOutput) Create ¶ added in v6.21.0
func (o CollectionTimeoutsOutput) Create() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
func (CollectionTimeoutsOutput) ElementType ¶ added in v6.21.0
func (CollectionTimeoutsOutput) ElementType() reflect.Type
func (CollectionTimeoutsOutput) ToCollectionTimeoutsOutput ¶ added in v6.21.0
func (o CollectionTimeoutsOutput) ToCollectionTimeoutsOutput() CollectionTimeoutsOutput
func (CollectionTimeoutsOutput) ToCollectionTimeoutsOutputWithContext ¶ added in v6.21.0
func (o CollectionTimeoutsOutput) ToCollectionTimeoutsOutputWithContext(ctx context.Context) CollectionTimeoutsOutput
func (CollectionTimeoutsOutput) ToCollectionTimeoutsPtrOutput ¶ added in v6.21.0
func (o CollectionTimeoutsOutput) ToCollectionTimeoutsPtrOutput() CollectionTimeoutsPtrOutput
func (CollectionTimeoutsOutput) ToCollectionTimeoutsPtrOutputWithContext ¶ added in v6.21.0
func (o CollectionTimeoutsOutput) ToCollectionTimeoutsPtrOutputWithContext(ctx context.Context) CollectionTimeoutsPtrOutput
type CollectionTimeoutsPtrInput ¶ added in v6.21.0
type CollectionTimeoutsPtrInput interface { pulumi.Input ToCollectionTimeoutsPtrOutput() CollectionTimeoutsPtrOutput ToCollectionTimeoutsPtrOutputWithContext(context.Context) CollectionTimeoutsPtrOutput }
CollectionTimeoutsPtrInput is an input type that accepts CollectionTimeoutsArgs, CollectionTimeoutsPtr and CollectionTimeoutsPtrOutput values. You can construct a concrete instance of `CollectionTimeoutsPtrInput` via:
CollectionTimeoutsArgs{...} or: nil
func CollectionTimeoutsPtr ¶ added in v6.21.0
func CollectionTimeoutsPtr(v *CollectionTimeoutsArgs) CollectionTimeoutsPtrInput
type CollectionTimeoutsPtrOutput ¶ added in v6.21.0
type CollectionTimeoutsPtrOutput struct{ *pulumi.OutputState }
func (CollectionTimeoutsPtrOutput) Create ¶ added in v6.21.0
func (o CollectionTimeoutsPtrOutput) Create() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
func (CollectionTimeoutsPtrOutput) Elem ¶ added in v6.21.0
func (o CollectionTimeoutsPtrOutput) Elem() CollectionTimeoutsOutput
func (CollectionTimeoutsPtrOutput) ElementType ¶ added in v6.21.0
func (CollectionTimeoutsPtrOutput) ElementType() reflect.Type
func (CollectionTimeoutsPtrOutput) ToCollectionTimeoutsPtrOutput ¶ added in v6.21.0
func (o CollectionTimeoutsPtrOutput) ToCollectionTimeoutsPtrOutput() CollectionTimeoutsPtrOutput
func (CollectionTimeoutsPtrOutput) ToCollectionTimeoutsPtrOutputWithContext ¶ added in v6.21.0
func (o CollectionTimeoutsPtrOutput) ToCollectionTimeoutsPtrOutputWithContext(ctx context.Context) CollectionTimeoutsPtrOutput
type Project ¶
type Project struct { pulumi.CustomResourceState // ARN of the Project. Arn pulumi.StringOutput `pulumi:"arn"` // Specify if automatic retraining should occur. Valid values are `ENABLED` or `DISABLED`. Defaults to `DISABLED` AutoUpdate pulumi.StringOutput `pulumi:"autoUpdate"` // Specify the feature being customized. Valid values are `CONTENT_MODERATION` or `CUSTOM_LABELS`. Defaults to `CUSTOM_LABELS` Feature pulumi.StringPtrOutput `pulumi:"feature"` // Desired name of the project // // The following arguments are optional: Name pulumi.StringOutput `pulumi:"name"` Timeouts ProjectTimeoutsPtrOutput `pulumi:"timeouts"` }
Resource for managing an AWS Rekognition Project.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rekognition" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := rekognition.NewProject(ctx, "example", &rekognition.ProjectArgs{ Name: pulumi.String("example-project"), AutoUpdate: pulumi.String("ENABLED"), Feature: pulumi.String("CONTENT_MODERATION"), }) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import Rekognition Project using the `name`. For example:
```sh $ pulumi import aws:rekognition/project:Project example project-id-12345678 ```
func GetProject ¶
func GetProject(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProjectState, opts ...pulumi.ResourceOption) (*Project, error)
GetProject gets an existing Project 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 NewProject ¶
func NewProject(ctx *pulumi.Context, name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error)
NewProject registers a new resource with the given unique name, arguments, and options.
func (*Project) ElementType ¶
func (*Project) ToProjectOutput ¶
func (i *Project) ToProjectOutput() ProjectOutput
func (*Project) ToProjectOutputWithContext ¶
func (i *Project) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
type ProjectArgs ¶
type ProjectArgs struct { // Specify if automatic retraining should occur. Valid values are `ENABLED` or `DISABLED`. Defaults to `DISABLED` AutoUpdate pulumi.StringPtrInput // Specify the feature being customized. Valid values are `CONTENT_MODERATION` or `CUSTOM_LABELS`. Defaults to `CUSTOM_LABELS` Feature pulumi.StringPtrInput // Desired name of the project // // The following arguments are optional: Name pulumi.StringPtrInput Timeouts ProjectTimeoutsPtrInput }
The set of arguments for constructing a Project resource.
func (ProjectArgs) ElementType ¶
func (ProjectArgs) ElementType() reflect.Type
type ProjectArray ¶
type ProjectArray []ProjectInput
func (ProjectArray) ElementType ¶
func (ProjectArray) ElementType() reflect.Type
func (ProjectArray) ToProjectArrayOutput ¶
func (i ProjectArray) ToProjectArrayOutput() ProjectArrayOutput
func (ProjectArray) ToProjectArrayOutputWithContext ¶
func (i ProjectArray) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput
type ProjectArrayInput ¶
type ProjectArrayInput interface { pulumi.Input ToProjectArrayOutput() ProjectArrayOutput ToProjectArrayOutputWithContext(context.Context) ProjectArrayOutput }
ProjectArrayInput is an input type that accepts ProjectArray and ProjectArrayOutput values. You can construct a concrete instance of `ProjectArrayInput` via:
ProjectArray{ ProjectArgs{...} }
type ProjectArrayOutput ¶
type ProjectArrayOutput struct{ *pulumi.OutputState }
func (ProjectArrayOutput) ElementType ¶
func (ProjectArrayOutput) ElementType() reflect.Type
func (ProjectArrayOutput) Index ¶
func (o ProjectArrayOutput) Index(i pulumi.IntInput) ProjectOutput
func (ProjectArrayOutput) ToProjectArrayOutput ¶
func (o ProjectArrayOutput) ToProjectArrayOutput() ProjectArrayOutput
func (ProjectArrayOutput) ToProjectArrayOutputWithContext ¶
func (o ProjectArrayOutput) ToProjectArrayOutputWithContext(ctx context.Context) ProjectArrayOutput
type ProjectInput ¶
type ProjectInput interface { pulumi.Input ToProjectOutput() ProjectOutput ToProjectOutputWithContext(ctx context.Context) ProjectOutput }
type ProjectMap ¶
type ProjectMap map[string]ProjectInput
func (ProjectMap) ElementType ¶
func (ProjectMap) ElementType() reflect.Type
func (ProjectMap) ToProjectMapOutput ¶
func (i ProjectMap) ToProjectMapOutput() ProjectMapOutput
func (ProjectMap) ToProjectMapOutputWithContext ¶
func (i ProjectMap) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput
type ProjectMapInput ¶
type ProjectMapInput interface { pulumi.Input ToProjectMapOutput() ProjectMapOutput ToProjectMapOutputWithContext(context.Context) ProjectMapOutput }
ProjectMapInput is an input type that accepts ProjectMap and ProjectMapOutput values. You can construct a concrete instance of `ProjectMapInput` via:
ProjectMap{ "key": ProjectArgs{...} }
type ProjectMapOutput ¶
type ProjectMapOutput struct{ *pulumi.OutputState }
func (ProjectMapOutput) ElementType ¶
func (ProjectMapOutput) ElementType() reflect.Type
func (ProjectMapOutput) MapIndex ¶
func (o ProjectMapOutput) MapIndex(k pulumi.StringInput) ProjectOutput
func (ProjectMapOutput) ToProjectMapOutput ¶
func (o ProjectMapOutput) ToProjectMapOutput() ProjectMapOutput
func (ProjectMapOutput) ToProjectMapOutputWithContext ¶
func (o ProjectMapOutput) ToProjectMapOutputWithContext(ctx context.Context) ProjectMapOutput
type ProjectOutput ¶
type ProjectOutput struct{ *pulumi.OutputState }
func (ProjectOutput) AutoUpdate ¶
func (o ProjectOutput) AutoUpdate() pulumi.StringOutput
Specify if automatic retraining should occur. Valid values are `ENABLED` or `DISABLED`. Defaults to `DISABLED`
func (ProjectOutput) ElementType ¶
func (ProjectOutput) ElementType() reflect.Type
func (ProjectOutput) Feature ¶
func (o ProjectOutput) Feature() pulumi.StringPtrOutput
Specify the feature being customized. Valid values are `CONTENT_MODERATION` or `CUSTOM_LABELS`. Defaults to `CUSTOM_LABELS`
func (ProjectOutput) Name ¶
func (o ProjectOutput) Name() pulumi.StringOutput
Desired name of the project
The following arguments are optional:
func (ProjectOutput) Timeouts ¶
func (o ProjectOutput) Timeouts() ProjectTimeoutsPtrOutput
func (ProjectOutput) ToProjectOutput ¶
func (o ProjectOutput) ToProjectOutput() ProjectOutput
func (ProjectOutput) ToProjectOutputWithContext ¶
func (o ProjectOutput) ToProjectOutputWithContext(ctx context.Context) ProjectOutput
type ProjectState ¶
type ProjectState struct { // ARN of the Project. Arn pulumi.StringPtrInput // Specify if automatic retraining should occur. Valid values are `ENABLED` or `DISABLED`. Defaults to `DISABLED` AutoUpdate pulumi.StringPtrInput // Specify the feature being customized. Valid values are `CONTENT_MODERATION` or `CUSTOM_LABELS`. Defaults to `CUSTOM_LABELS` Feature pulumi.StringPtrInput // Desired name of the project // // The following arguments are optional: Name pulumi.StringPtrInput Timeouts ProjectTimeoutsPtrInput }
func (ProjectState) ElementType ¶
func (ProjectState) ElementType() reflect.Type
type ProjectTimeouts ¶
type ProjectTimeouts struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Create *string `pulumi:"create"` // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. Delete *string `pulumi:"delete"` }
type ProjectTimeoutsArgs ¶
type ProjectTimeoutsArgs struct { // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Create pulumi.StringPtrInput `pulumi:"create"` // A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. Delete pulumi.StringPtrInput `pulumi:"delete"` }
func (ProjectTimeoutsArgs) ElementType ¶
func (ProjectTimeoutsArgs) ElementType() reflect.Type
func (ProjectTimeoutsArgs) ToProjectTimeoutsOutput ¶
func (i ProjectTimeoutsArgs) ToProjectTimeoutsOutput() ProjectTimeoutsOutput
func (ProjectTimeoutsArgs) ToProjectTimeoutsOutputWithContext ¶
func (i ProjectTimeoutsArgs) ToProjectTimeoutsOutputWithContext(ctx context.Context) ProjectTimeoutsOutput
func (ProjectTimeoutsArgs) ToProjectTimeoutsPtrOutput ¶
func (i ProjectTimeoutsArgs) ToProjectTimeoutsPtrOutput() ProjectTimeoutsPtrOutput
func (ProjectTimeoutsArgs) ToProjectTimeoutsPtrOutputWithContext ¶
func (i ProjectTimeoutsArgs) ToProjectTimeoutsPtrOutputWithContext(ctx context.Context) ProjectTimeoutsPtrOutput
type ProjectTimeoutsInput ¶
type ProjectTimeoutsInput interface { pulumi.Input ToProjectTimeoutsOutput() ProjectTimeoutsOutput ToProjectTimeoutsOutputWithContext(context.Context) ProjectTimeoutsOutput }
ProjectTimeoutsInput is an input type that accepts ProjectTimeoutsArgs and ProjectTimeoutsOutput values. You can construct a concrete instance of `ProjectTimeoutsInput` via:
ProjectTimeoutsArgs{...}
type ProjectTimeoutsOutput ¶
type ProjectTimeoutsOutput struct{ *pulumi.OutputState }
func (ProjectTimeoutsOutput) Create ¶
func (o ProjectTimeoutsOutput) Create() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
func (ProjectTimeoutsOutput) Delete ¶
func (o ProjectTimeoutsOutput) Delete() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
func (ProjectTimeoutsOutput) ElementType ¶
func (ProjectTimeoutsOutput) ElementType() reflect.Type
func (ProjectTimeoutsOutput) ToProjectTimeoutsOutput ¶
func (o ProjectTimeoutsOutput) ToProjectTimeoutsOutput() ProjectTimeoutsOutput
func (ProjectTimeoutsOutput) ToProjectTimeoutsOutputWithContext ¶
func (o ProjectTimeoutsOutput) ToProjectTimeoutsOutputWithContext(ctx context.Context) ProjectTimeoutsOutput
func (ProjectTimeoutsOutput) ToProjectTimeoutsPtrOutput ¶
func (o ProjectTimeoutsOutput) ToProjectTimeoutsPtrOutput() ProjectTimeoutsPtrOutput
func (ProjectTimeoutsOutput) ToProjectTimeoutsPtrOutputWithContext ¶
func (o ProjectTimeoutsOutput) ToProjectTimeoutsPtrOutputWithContext(ctx context.Context) ProjectTimeoutsPtrOutput
type ProjectTimeoutsPtrInput ¶
type ProjectTimeoutsPtrInput interface { pulumi.Input ToProjectTimeoutsPtrOutput() ProjectTimeoutsPtrOutput ToProjectTimeoutsPtrOutputWithContext(context.Context) ProjectTimeoutsPtrOutput }
ProjectTimeoutsPtrInput is an input type that accepts ProjectTimeoutsArgs, ProjectTimeoutsPtr and ProjectTimeoutsPtrOutput values. You can construct a concrete instance of `ProjectTimeoutsPtrInput` via:
ProjectTimeoutsArgs{...} or: nil
func ProjectTimeoutsPtr ¶
func ProjectTimeoutsPtr(v *ProjectTimeoutsArgs) ProjectTimeoutsPtrInput
type ProjectTimeoutsPtrOutput ¶
type ProjectTimeoutsPtrOutput struct{ *pulumi.OutputState }
func (ProjectTimeoutsPtrOutput) Create ¶
func (o ProjectTimeoutsPtrOutput) Create() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
func (ProjectTimeoutsPtrOutput) Delete ¶
func (o ProjectTimeoutsPtrOutput) Delete() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
func (ProjectTimeoutsPtrOutput) Elem ¶
func (o ProjectTimeoutsPtrOutput) Elem() ProjectTimeoutsOutput
func (ProjectTimeoutsPtrOutput) ElementType ¶
func (ProjectTimeoutsPtrOutput) ElementType() reflect.Type
func (ProjectTimeoutsPtrOutput) ToProjectTimeoutsPtrOutput ¶
func (o ProjectTimeoutsPtrOutput) ToProjectTimeoutsPtrOutput() ProjectTimeoutsPtrOutput
func (ProjectTimeoutsPtrOutput) ToProjectTimeoutsPtrOutputWithContext ¶
func (o ProjectTimeoutsPtrOutput) ToProjectTimeoutsPtrOutputWithContext(ctx context.Context) ProjectTimeoutsPtrOutput