Documentation ¶
Index ¶
- type Analyzer
- func (*Analyzer) ElementType() reflect.Type
- func (i *Analyzer) ToAnalyzerOutput() AnalyzerOutput
- func (i *Analyzer) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
- func (i *Analyzer) ToAnalyzerPtrOutput() AnalyzerPtrOutput
- func (i *Analyzer) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
- type AnalyzerArgs
- type AnalyzerArray
- type AnalyzerArrayInput
- type AnalyzerArrayOutput
- type AnalyzerInput
- type AnalyzerMap
- type AnalyzerMapInput
- type AnalyzerMapOutput
- type AnalyzerOutput
- func (AnalyzerOutput) ElementType() reflect.Type
- func (o AnalyzerOutput) ToAnalyzerOutput() AnalyzerOutput
- func (o AnalyzerOutput) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
- func (o AnalyzerOutput) ToAnalyzerPtrOutput() AnalyzerPtrOutput
- func (o AnalyzerOutput) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
- type AnalyzerPtrInput
- type AnalyzerPtrOutput
- type AnalyzerState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct { pulumi.CustomResourceState // Name of the Analyzer. AnalyzerName pulumi.StringOutput `pulumi:"analyzerName"` Arn pulumi.StringOutput `pulumi:"arn"` // Key-value map of resource tags. Tags pulumi.StringMapOutput `pulumi:"tags"` // Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`. Type pulumi.StringPtrOutput `pulumi:"type"` }
Manages an Access Analyzer Analyzer. More information can be found in the [Access Analyzer User Guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html).
## Example Usage ### Account Analyzer
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/accessanalyzer" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := accessanalyzer.NewAnalyzer(ctx, "example", &accessanalyzer.AnalyzerArgs{ AnalyzerName: pulumi.String("example"), }) if err != nil { return err } return nil }) }
``` ### Organization Analyzer
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/accessanalyzer" "github.com/pulumi/pulumi-aws/sdk/v3/go/aws/organizations" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleOrganization, err := organizations.NewOrganization(ctx, "exampleOrganization", &organizations.OrganizationArgs{ AwsServiceAccessPrincipals: pulumi.StringArray{ pulumi.String("access-analyzer.amazonaws.com"), }, }) if err != nil { return err } _, err = accessanalyzer.NewAnalyzer(ctx, "exampleAnalyzer", &accessanalyzer.AnalyzerArgs{ AnalyzerName: pulumi.String("example"), Type: pulumi.String("ORGANIZATION"), }, pulumi.DependsOn([]pulumi.Resource{ exampleOrganization, })) if err != nil { return err } return nil }) }
```
## Import
Access Analyzer Analyzers can be imported using the `analyzer_name`, e.g.
```sh
$ pulumi import aws:accessanalyzer/analyzer:Analyzer example example
```
func GetAnalyzer ¶
func GetAnalyzer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AnalyzerState, opts ...pulumi.ResourceOption) (*Analyzer, error)
GetAnalyzer gets an existing Analyzer 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 NewAnalyzer ¶
func NewAnalyzer(ctx *pulumi.Context, name string, args *AnalyzerArgs, opts ...pulumi.ResourceOption) (*Analyzer, error)
NewAnalyzer registers a new resource with the given unique name, arguments, and options.
func (*Analyzer) ElementType ¶ added in v3.13.0
func (*Analyzer) ToAnalyzerOutput ¶ added in v3.13.0
func (i *Analyzer) ToAnalyzerOutput() AnalyzerOutput
func (*Analyzer) ToAnalyzerOutputWithContext ¶ added in v3.13.0
func (i *Analyzer) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
func (*Analyzer) ToAnalyzerPtrOutput ¶ added in v3.25.0
func (i *Analyzer) ToAnalyzerPtrOutput() AnalyzerPtrOutput
func (*Analyzer) ToAnalyzerPtrOutputWithContext ¶ added in v3.25.0
func (i *Analyzer) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
type AnalyzerArgs ¶
type AnalyzerArgs struct { // Name of the Analyzer. AnalyzerName pulumi.StringInput // Key-value map of resource tags. Tags pulumi.StringMapInput // Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`. Type pulumi.StringPtrInput }
The set of arguments for constructing a Analyzer resource.
func (AnalyzerArgs) ElementType ¶
func (AnalyzerArgs) ElementType() reflect.Type
type AnalyzerArray ¶ added in v3.25.0
type AnalyzerArray []AnalyzerInput
func (AnalyzerArray) ElementType ¶ added in v3.25.0
func (AnalyzerArray) ElementType() reflect.Type
func (AnalyzerArray) ToAnalyzerArrayOutput ¶ added in v3.25.0
func (i AnalyzerArray) ToAnalyzerArrayOutput() AnalyzerArrayOutput
func (AnalyzerArray) ToAnalyzerArrayOutputWithContext ¶ added in v3.25.0
func (i AnalyzerArray) ToAnalyzerArrayOutputWithContext(ctx context.Context) AnalyzerArrayOutput
type AnalyzerArrayInput ¶ added in v3.25.0
type AnalyzerArrayInput interface { pulumi.Input ToAnalyzerArrayOutput() AnalyzerArrayOutput ToAnalyzerArrayOutputWithContext(context.Context) AnalyzerArrayOutput }
AnalyzerArrayInput is an input type that accepts AnalyzerArray and AnalyzerArrayOutput values. You can construct a concrete instance of `AnalyzerArrayInput` via:
AnalyzerArray{ AnalyzerArgs{...} }
type AnalyzerArrayOutput ¶ added in v3.25.0
type AnalyzerArrayOutput struct{ *pulumi.OutputState }
func (AnalyzerArrayOutput) ElementType ¶ added in v3.25.0
func (AnalyzerArrayOutput) ElementType() reflect.Type
func (AnalyzerArrayOutput) Index ¶ added in v3.25.0
func (o AnalyzerArrayOutput) Index(i pulumi.IntInput) AnalyzerOutput
func (AnalyzerArrayOutput) ToAnalyzerArrayOutput ¶ added in v3.25.0
func (o AnalyzerArrayOutput) ToAnalyzerArrayOutput() AnalyzerArrayOutput
func (AnalyzerArrayOutput) ToAnalyzerArrayOutputWithContext ¶ added in v3.25.0
func (o AnalyzerArrayOutput) ToAnalyzerArrayOutputWithContext(ctx context.Context) AnalyzerArrayOutput
type AnalyzerInput ¶ added in v3.13.0
type AnalyzerInput interface { pulumi.Input ToAnalyzerOutput() AnalyzerOutput ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput }
type AnalyzerMap ¶ added in v3.25.0
type AnalyzerMap map[string]AnalyzerInput
func (AnalyzerMap) ElementType ¶ added in v3.25.0
func (AnalyzerMap) ElementType() reflect.Type
func (AnalyzerMap) ToAnalyzerMapOutput ¶ added in v3.25.0
func (i AnalyzerMap) ToAnalyzerMapOutput() AnalyzerMapOutput
func (AnalyzerMap) ToAnalyzerMapOutputWithContext ¶ added in v3.25.0
func (i AnalyzerMap) ToAnalyzerMapOutputWithContext(ctx context.Context) AnalyzerMapOutput
type AnalyzerMapInput ¶ added in v3.25.0
type AnalyzerMapInput interface { pulumi.Input ToAnalyzerMapOutput() AnalyzerMapOutput ToAnalyzerMapOutputWithContext(context.Context) AnalyzerMapOutput }
AnalyzerMapInput is an input type that accepts AnalyzerMap and AnalyzerMapOutput values. You can construct a concrete instance of `AnalyzerMapInput` via:
AnalyzerMap{ "key": AnalyzerArgs{...} }
type AnalyzerMapOutput ¶ added in v3.25.0
type AnalyzerMapOutput struct{ *pulumi.OutputState }
func (AnalyzerMapOutput) ElementType ¶ added in v3.25.0
func (AnalyzerMapOutput) ElementType() reflect.Type
func (AnalyzerMapOutput) MapIndex ¶ added in v3.25.0
func (o AnalyzerMapOutput) MapIndex(k pulumi.StringInput) AnalyzerOutput
func (AnalyzerMapOutput) ToAnalyzerMapOutput ¶ added in v3.25.0
func (o AnalyzerMapOutput) ToAnalyzerMapOutput() AnalyzerMapOutput
func (AnalyzerMapOutput) ToAnalyzerMapOutputWithContext ¶ added in v3.25.0
func (o AnalyzerMapOutput) ToAnalyzerMapOutputWithContext(ctx context.Context) AnalyzerMapOutput
type AnalyzerOutput ¶ added in v3.13.0
type AnalyzerOutput struct {
*pulumi.OutputState
}
func (AnalyzerOutput) ElementType ¶ added in v3.13.0
func (AnalyzerOutput) ElementType() reflect.Type
func (AnalyzerOutput) ToAnalyzerOutput ¶ added in v3.13.0
func (o AnalyzerOutput) ToAnalyzerOutput() AnalyzerOutput
func (AnalyzerOutput) ToAnalyzerOutputWithContext ¶ added in v3.13.0
func (o AnalyzerOutput) ToAnalyzerOutputWithContext(ctx context.Context) AnalyzerOutput
func (AnalyzerOutput) ToAnalyzerPtrOutput ¶ added in v3.25.0
func (o AnalyzerOutput) ToAnalyzerPtrOutput() AnalyzerPtrOutput
func (AnalyzerOutput) ToAnalyzerPtrOutputWithContext ¶ added in v3.25.0
func (o AnalyzerOutput) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
type AnalyzerPtrInput ¶ added in v3.25.0
type AnalyzerPtrInput interface { pulumi.Input ToAnalyzerPtrOutput() AnalyzerPtrOutput ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput }
type AnalyzerPtrOutput ¶ added in v3.25.0
type AnalyzerPtrOutput struct {
*pulumi.OutputState
}
func (AnalyzerPtrOutput) ElementType ¶ added in v3.25.0
func (AnalyzerPtrOutput) ElementType() reflect.Type
func (AnalyzerPtrOutput) ToAnalyzerPtrOutput ¶ added in v3.25.0
func (o AnalyzerPtrOutput) ToAnalyzerPtrOutput() AnalyzerPtrOutput
func (AnalyzerPtrOutput) ToAnalyzerPtrOutputWithContext ¶ added in v3.25.0
func (o AnalyzerPtrOutput) ToAnalyzerPtrOutputWithContext(ctx context.Context) AnalyzerPtrOutput
type AnalyzerState ¶
type AnalyzerState struct { // Name of the Analyzer. AnalyzerName pulumi.StringPtrInput Arn pulumi.StringPtrInput // Key-value map of resource tags. Tags pulumi.StringMapInput // Type of Analyzer. Valid values are `ACCOUNT` or `ORGANIZATION`. Defaults to `ACCOUNT`. Type pulumi.StringPtrInput }
func (AnalyzerState) ElementType ¶
func (AnalyzerState) ElementType() reflect.Type