Documentation ¶
Overview ¶
A Pulumi package for creating and managing Impart resources.
Index ¶
- type ApiBinding
- type ApiBindingArgs
- type ApiBindingArray
- type ApiBindingArrayInput
- type ApiBindingArrayOutput
- func (ApiBindingArrayOutput) ElementType() reflect.Type
- func (o ApiBindingArrayOutput) Index(i pulumi.IntInput) ApiBindingOutput
- func (o ApiBindingArrayOutput) ToApiBindingArrayOutput() ApiBindingArrayOutput
- func (o ApiBindingArrayOutput) ToApiBindingArrayOutputWithContext(ctx context.Context) ApiBindingArrayOutput
- type ApiBindingInput
- type ApiBindingMap
- type ApiBindingMapInput
- type ApiBindingMapOutput
- func (ApiBindingMapOutput) ElementType() reflect.Type
- func (o ApiBindingMapOutput) MapIndex(k pulumi.StringInput) ApiBindingOutput
- func (o ApiBindingMapOutput) ToApiBindingMapOutput() ApiBindingMapOutput
- func (o ApiBindingMapOutput) ToApiBindingMapOutputWithContext(ctx context.Context) ApiBindingMapOutput
- type ApiBindingOutput
- func (o ApiBindingOutput) BasePath() pulumi.StringOutput
- func (ApiBindingOutput) ElementType() reflect.Type
- func (o ApiBindingOutput) ForwardedFors() pulumi.StringArrayOutput
- func (o ApiBindingOutput) ForwardedHosts() pulumi.StringArrayOutput
- func (o ApiBindingOutput) ForwardedIds() pulumi.StringArrayOutput
- func (o ApiBindingOutput) ForwardedProtos() pulumi.StringArrayOutput
- func (o ApiBindingOutput) Hops() pulumi.IntPtrOutput
- func (o ApiBindingOutput) Hostname() pulumi.StringOutput
- func (o ApiBindingOutput) Name() pulumi.StringOutput
- func (o ApiBindingOutput) Port() pulumi.IntOutput
- func (o ApiBindingOutput) SpecId() pulumi.StringOutput
- func (o ApiBindingOutput) ToApiBindingOutput() ApiBindingOutput
- func (o ApiBindingOutput) ToApiBindingOutputWithContext(ctx context.Context) ApiBindingOutput
- func (o ApiBindingOutput) UpstreamOrigin() pulumi.StringPtrOutput
- func (o ApiBindingOutput) UseForwarded() pulumi.BoolPtrOutput
- type ApiBindingState
- type LogBinding
- type LogBindingArgs
- type LogBindingArray
- type LogBindingArrayInput
- type LogBindingArrayOutput
- func (LogBindingArrayOutput) ElementType() reflect.Type
- func (o LogBindingArrayOutput) Index(i pulumi.IntInput) LogBindingOutput
- func (o LogBindingArrayOutput) ToLogBindingArrayOutput() LogBindingArrayOutput
- func (o LogBindingArrayOutput) ToLogBindingArrayOutputWithContext(ctx context.Context) LogBindingArrayOutput
- type LogBindingInput
- type LogBindingMap
- type LogBindingMapInput
- type LogBindingMapOutput
- func (LogBindingMapOutput) ElementType() reflect.Type
- func (o LogBindingMapOutput) MapIndex(k pulumi.StringInput) LogBindingOutput
- func (o LogBindingMapOutput) ToLogBindingMapOutput() LogBindingMapOutput
- func (o LogBindingMapOutput) ToLogBindingMapOutputWithContext(ctx context.Context) LogBindingMapOutput
- type LogBindingOutput
- func (LogBindingOutput) ElementType() reflect.Type
- func (o LogBindingOutput) LogstreamId() pulumi.StringPtrOutput
- func (o LogBindingOutput) Name() pulumi.StringOutput
- func (o LogBindingOutput) Pattern() pulumi.StringOutput
- func (o LogBindingOutput) PatternType() pulumi.StringOutput
- func (o LogBindingOutput) SpecId() pulumi.StringOutput
- func (o LogBindingOutput) ToLogBindingOutput() LogBindingOutput
- func (o LogBindingOutput) ToLogBindingOutputWithContext(ctx context.Context) LogBindingOutput
- type LogBindingState
- type LookupSpecArgs
- type LookupSpecOutputArgs
- type LookupSpecResult
- type LookupSpecResultOutput
- func (LookupSpecResultOutput) ElementType() reflect.Type
- func (o LookupSpecResultOutput) Id() pulumi.StringOutput
- func (o LookupSpecResultOutput) Name() pulumi.StringOutput
- func (o LookupSpecResultOutput) ToLookupSpecResultOutput() LookupSpecResultOutput
- func (o LookupSpecResultOutput) ToLookupSpecResultOutputWithContext(ctx context.Context) LookupSpecResultOutput
- type Provider
- type ProviderArgs
- type ProviderInput
- type ProviderOutput
- func (ProviderOutput) ElementType() reflect.Type
- func (o ProviderOutput) Endpoint() pulumi.StringPtrOutput
- func (o ProviderOutput) ToProviderOutput() ProviderOutput
- func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
- func (o ProviderOutput) Token() pulumi.StringPtrOutput
- type RuleScript
- type RuleScriptArgs
- type RuleScriptArray
- type RuleScriptArrayInput
- type RuleScriptArrayOutput
- func (RuleScriptArrayOutput) ElementType() reflect.Type
- func (o RuleScriptArrayOutput) Index(i pulumi.IntInput) RuleScriptOutput
- func (o RuleScriptArrayOutput) ToRuleScriptArrayOutput() RuleScriptArrayOutput
- func (o RuleScriptArrayOutput) ToRuleScriptArrayOutputWithContext(ctx context.Context) RuleScriptArrayOutput
- type RuleScriptInput
- type RuleScriptMap
- type RuleScriptMapInput
- type RuleScriptMapOutput
- func (RuleScriptMapOutput) ElementType() reflect.Type
- func (o RuleScriptMapOutput) MapIndex(k pulumi.StringInput) RuleScriptOutput
- func (o RuleScriptMapOutput) ToRuleScriptMapOutput() RuleScriptMapOutput
- func (o RuleScriptMapOutput) ToRuleScriptMapOutputWithContext(ctx context.Context) RuleScriptMapOutput
- type RuleScriptOutput
- func (o RuleScriptOutput) Description() pulumi.StringPtrOutput
- func (o RuleScriptOutput) Disabled() pulumi.BoolOutput
- func (RuleScriptOutput) ElementType() reflect.Type
- func (o RuleScriptOutput) Name() pulumi.StringOutput
- func (o RuleScriptOutput) SourceFile() pulumi.StringOutput
- func (o RuleScriptOutput) SourceHash() pulumi.StringPtrOutput
- func (o RuleScriptOutput) ToRuleScriptOutput() RuleScriptOutput
- func (o RuleScriptOutput) ToRuleScriptOutputWithContext(ctx context.Context) RuleScriptOutput
- type RuleScriptState
- type Spec
- type SpecArgs
- type SpecArray
- type SpecArrayInput
- type SpecArrayOutput
- type SpecInput
- type SpecMap
- type SpecMapInput
- type SpecMapOutput
- type SpecOutput
- func (SpecOutput) ElementType() reflect.Type
- func (o SpecOutput) Name() pulumi.StringOutput
- func (o SpecOutput) SourceFile() pulumi.StringOutput
- func (o SpecOutput) SourceHash() pulumi.StringPtrOutput
- func (o SpecOutput) ToSpecOutput() SpecOutput
- func (o SpecOutput) ToSpecOutputWithContext(ctx context.Context) SpecOutput
- type SpecState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiBinding ¶ added in v0.2.0
type ApiBinding struct { pulumi.CustomResourceState // The basePath for this api binding. BasePath pulumi.StringOutput `pulumi:"basePath"` // The forwardedFor for this api binding. ForwardedFors pulumi.StringArrayOutput `pulumi:"forwardedFors"` // The forwardedHost for this api binding. ForwardedHosts pulumi.StringArrayOutput `pulumi:"forwardedHosts"` // The forwardedId for this api binding. ForwardedIds pulumi.StringArrayOutput `pulumi:"forwardedIds"` // The forwardedProto for this api binding. ForwardedProtos pulumi.StringArrayOutput `pulumi:"forwardedProtos"` // The hops for this api binding. Hops pulumi.IntPtrOutput `pulumi:"hops"` // The hostname for this api binding. Hostname pulumi.StringOutput `pulumi:"hostname"` // The name for this api binding. Name pulumi.StringOutput `pulumi:"name"` // The port for this api binding. Port pulumi.IntOutput `pulumi:"port"` // The specification id. SpecId pulumi.StringOutput `pulumi:"specId"` // The upstreamOrigin for this api binding. UpstreamOrigin pulumi.StringPtrOutput `pulumi:"upstreamOrigin"` // The useForwarded for this api binding. UseForwarded pulumi.BoolPtrOutput `pulumi:"useForwarded"` }
Manage an api binding.
## Example Usage
```go package main
import (
"github.com/impart-security/pulumi-impart/sdk/go/impart" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := impart.NewApiBinding(ctx, "example", &impart.ApiBindingArgs{ Name: pulumi.String("api_binding_example"), Port: pulumi.Int(443), SpecId: pulumi.Any(resource.Impart_spec.Example.Id), Hostname: pulumi.String("example.com"), BasePath: pulumi.String("/"), }) if err != nil { return err } return nil }) }
```
func GetApiBinding ¶ added in v0.2.0
func GetApiBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApiBindingState, opts ...pulumi.ResourceOption) (*ApiBinding, error)
GetApiBinding gets an existing ApiBinding 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 NewApiBinding ¶ added in v0.2.0
func NewApiBinding(ctx *pulumi.Context, name string, args *ApiBindingArgs, opts ...pulumi.ResourceOption) (*ApiBinding, error)
NewApiBinding registers a new resource with the given unique name, arguments, and options.
func (*ApiBinding) ElementType ¶ added in v0.2.0
func (*ApiBinding) ElementType() reflect.Type
func (*ApiBinding) ToApiBindingOutput ¶ added in v0.2.0
func (i *ApiBinding) ToApiBindingOutput() ApiBindingOutput
func (*ApiBinding) ToApiBindingOutputWithContext ¶ added in v0.2.0
func (i *ApiBinding) ToApiBindingOutputWithContext(ctx context.Context) ApiBindingOutput
type ApiBindingArgs ¶ added in v0.2.0
type ApiBindingArgs struct { // The basePath for this api binding. BasePath pulumi.StringInput // The forwardedFor for this api binding. ForwardedFors pulumi.StringArrayInput // The forwardedHost for this api binding. ForwardedHosts pulumi.StringArrayInput // The forwardedId for this api binding. ForwardedIds pulumi.StringArrayInput // The forwardedProto for this api binding. ForwardedProtos pulumi.StringArrayInput // The hops for this api binding. Hops pulumi.IntPtrInput // The hostname for this api binding. Hostname pulumi.StringInput // The name for this api binding. Name pulumi.StringInput // The port for this api binding. Port pulumi.IntInput // The specification id. SpecId pulumi.StringInput // The upstreamOrigin for this api binding. UpstreamOrigin pulumi.StringPtrInput // The useForwarded for this api binding. UseForwarded pulumi.BoolPtrInput }
The set of arguments for constructing a ApiBinding resource.
func (ApiBindingArgs) ElementType ¶ added in v0.2.0
func (ApiBindingArgs) ElementType() reflect.Type
type ApiBindingArray ¶ added in v0.2.0
type ApiBindingArray []ApiBindingInput
func (ApiBindingArray) ElementType ¶ added in v0.2.0
func (ApiBindingArray) ElementType() reflect.Type
func (ApiBindingArray) ToApiBindingArrayOutput ¶ added in v0.2.0
func (i ApiBindingArray) ToApiBindingArrayOutput() ApiBindingArrayOutput
func (ApiBindingArray) ToApiBindingArrayOutputWithContext ¶ added in v0.2.0
func (i ApiBindingArray) ToApiBindingArrayOutputWithContext(ctx context.Context) ApiBindingArrayOutput
type ApiBindingArrayInput ¶ added in v0.2.0
type ApiBindingArrayInput interface { pulumi.Input ToApiBindingArrayOutput() ApiBindingArrayOutput ToApiBindingArrayOutputWithContext(context.Context) ApiBindingArrayOutput }
ApiBindingArrayInput is an input type that accepts ApiBindingArray and ApiBindingArrayOutput values. You can construct a concrete instance of `ApiBindingArrayInput` via:
ApiBindingArray{ ApiBindingArgs{...} }
type ApiBindingArrayOutput ¶ added in v0.2.0
type ApiBindingArrayOutput struct{ *pulumi.OutputState }
func (ApiBindingArrayOutput) ElementType ¶ added in v0.2.0
func (ApiBindingArrayOutput) ElementType() reflect.Type
func (ApiBindingArrayOutput) Index ¶ added in v0.2.0
func (o ApiBindingArrayOutput) Index(i pulumi.IntInput) ApiBindingOutput
func (ApiBindingArrayOutput) ToApiBindingArrayOutput ¶ added in v0.2.0
func (o ApiBindingArrayOutput) ToApiBindingArrayOutput() ApiBindingArrayOutput
func (ApiBindingArrayOutput) ToApiBindingArrayOutputWithContext ¶ added in v0.2.0
func (o ApiBindingArrayOutput) ToApiBindingArrayOutputWithContext(ctx context.Context) ApiBindingArrayOutput
type ApiBindingInput ¶ added in v0.2.0
type ApiBindingInput interface { pulumi.Input ToApiBindingOutput() ApiBindingOutput ToApiBindingOutputWithContext(ctx context.Context) ApiBindingOutput }
type ApiBindingMap ¶ added in v0.2.0
type ApiBindingMap map[string]ApiBindingInput
func (ApiBindingMap) ElementType ¶ added in v0.2.0
func (ApiBindingMap) ElementType() reflect.Type
func (ApiBindingMap) ToApiBindingMapOutput ¶ added in v0.2.0
func (i ApiBindingMap) ToApiBindingMapOutput() ApiBindingMapOutput
func (ApiBindingMap) ToApiBindingMapOutputWithContext ¶ added in v0.2.0
func (i ApiBindingMap) ToApiBindingMapOutputWithContext(ctx context.Context) ApiBindingMapOutput
type ApiBindingMapInput ¶ added in v0.2.0
type ApiBindingMapInput interface { pulumi.Input ToApiBindingMapOutput() ApiBindingMapOutput ToApiBindingMapOutputWithContext(context.Context) ApiBindingMapOutput }
ApiBindingMapInput is an input type that accepts ApiBindingMap and ApiBindingMapOutput values. You can construct a concrete instance of `ApiBindingMapInput` via:
ApiBindingMap{ "key": ApiBindingArgs{...} }
type ApiBindingMapOutput ¶ added in v0.2.0
type ApiBindingMapOutput struct{ *pulumi.OutputState }
func (ApiBindingMapOutput) ElementType ¶ added in v0.2.0
func (ApiBindingMapOutput) ElementType() reflect.Type
func (ApiBindingMapOutput) MapIndex ¶ added in v0.2.0
func (o ApiBindingMapOutput) MapIndex(k pulumi.StringInput) ApiBindingOutput
func (ApiBindingMapOutput) ToApiBindingMapOutput ¶ added in v0.2.0
func (o ApiBindingMapOutput) ToApiBindingMapOutput() ApiBindingMapOutput
func (ApiBindingMapOutput) ToApiBindingMapOutputWithContext ¶ added in v0.2.0
func (o ApiBindingMapOutput) ToApiBindingMapOutputWithContext(ctx context.Context) ApiBindingMapOutput
type ApiBindingOutput ¶ added in v0.2.0
type ApiBindingOutput struct{ *pulumi.OutputState }
func (ApiBindingOutput) BasePath ¶ added in v0.2.0
func (o ApiBindingOutput) BasePath() pulumi.StringOutput
The basePath for this api binding.
func (ApiBindingOutput) ElementType ¶ added in v0.2.0
func (ApiBindingOutput) ElementType() reflect.Type
func (ApiBindingOutput) ForwardedFors ¶ added in v0.2.0
func (o ApiBindingOutput) ForwardedFors() pulumi.StringArrayOutput
The forwardedFor for this api binding.
func (ApiBindingOutput) ForwardedHosts ¶ added in v0.2.0
func (o ApiBindingOutput) ForwardedHosts() pulumi.StringArrayOutput
The forwardedHost for this api binding.
func (ApiBindingOutput) ForwardedIds ¶ added in v0.2.0
func (o ApiBindingOutput) ForwardedIds() pulumi.StringArrayOutput
The forwardedId for this api binding.
func (ApiBindingOutput) ForwardedProtos ¶ added in v0.2.0
func (o ApiBindingOutput) ForwardedProtos() pulumi.StringArrayOutput
The forwardedProto for this api binding.
func (ApiBindingOutput) Hops ¶ added in v0.2.0
func (o ApiBindingOutput) Hops() pulumi.IntPtrOutput
The hops for this api binding.
func (ApiBindingOutput) Hostname ¶ added in v0.2.0
func (o ApiBindingOutput) Hostname() pulumi.StringOutput
The hostname for this api binding.
func (ApiBindingOutput) Name ¶ added in v0.2.0
func (o ApiBindingOutput) Name() pulumi.StringOutput
The name for this api binding.
func (ApiBindingOutput) Port ¶ added in v0.2.0
func (o ApiBindingOutput) Port() pulumi.IntOutput
The port for this api binding.
func (ApiBindingOutput) SpecId ¶ added in v0.2.0
func (o ApiBindingOutput) SpecId() pulumi.StringOutput
The specification id.
func (ApiBindingOutput) ToApiBindingOutput ¶ added in v0.2.0
func (o ApiBindingOutput) ToApiBindingOutput() ApiBindingOutput
func (ApiBindingOutput) ToApiBindingOutputWithContext ¶ added in v0.2.0
func (o ApiBindingOutput) ToApiBindingOutputWithContext(ctx context.Context) ApiBindingOutput
func (ApiBindingOutput) UpstreamOrigin ¶ added in v0.2.0
func (o ApiBindingOutput) UpstreamOrigin() pulumi.StringPtrOutput
The upstreamOrigin for this api binding.
func (ApiBindingOutput) UseForwarded ¶ added in v0.2.0
func (o ApiBindingOutput) UseForwarded() pulumi.BoolPtrOutput
The useForwarded for this api binding.
type ApiBindingState ¶ added in v0.2.0
type ApiBindingState struct { // The basePath for this api binding. BasePath pulumi.StringPtrInput // The forwardedFor for this api binding. ForwardedFors pulumi.StringArrayInput // The forwardedHost for this api binding. ForwardedHosts pulumi.StringArrayInput // The forwardedId for this api binding. ForwardedIds pulumi.StringArrayInput // The forwardedProto for this api binding. ForwardedProtos pulumi.StringArrayInput // The hops for this api binding. Hops pulumi.IntPtrInput // The hostname for this api binding. Hostname pulumi.StringPtrInput // The name for this api binding. Name pulumi.StringPtrInput // The port for this api binding. Port pulumi.IntPtrInput // The specification id. SpecId pulumi.StringPtrInput // The upstreamOrigin for this api binding. UpstreamOrigin pulumi.StringPtrInput // The useForwarded for this api binding. UseForwarded pulumi.BoolPtrInput }
func (ApiBindingState) ElementType ¶ added in v0.2.0
func (ApiBindingState) ElementType() reflect.Type
type LogBinding ¶ added in v0.2.0
type LogBinding struct { pulumi.CustomResourceState // The logstream id for this log binding. LogstreamId pulumi.StringPtrOutput `pulumi:"logstreamId"` // The name for this log binding. Name pulumi.StringOutput `pulumi:"name"` // The grok/json pattern for this log binding. Pattern pulumi.StringOutput `pulumi:"pattern"` // The pattern type for this log binding. Accepted values: grok, json PatternType pulumi.StringOutput `pulumi:"patternType"` // The specification id. SpecId pulumi.StringOutput `pulumi:"specId"` }
Manage a log binding.
## Example Usage
```go package main
import (
"github.com/impart-security/pulumi-impart/sdk/go/impart" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := impart.NewLogBinding(ctx, "example", &impart.LogBindingArgs{ LogstreamId: pulumi.String("logstream_id"), Name: pulumi.String("log_binding_example"), Pattern: pulumi.String("%{HTTPDATE:timestamp} \"(?:%{WORD:http_method}|-) (?:%{GREEDYDATA:request}|-) (?:HTTP/%{NUMBER:httpversion}|-( )?)\" (?:%{NUMBER:response_code}|-)\n \n"), PatternType: pulumi.String("grok"), }) if err != nil { return err } return nil }) }
```
func GetLogBinding ¶ added in v0.2.0
func GetLogBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LogBindingState, opts ...pulumi.ResourceOption) (*LogBinding, error)
GetLogBinding gets an existing LogBinding 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 NewLogBinding ¶ added in v0.2.0
func NewLogBinding(ctx *pulumi.Context, name string, args *LogBindingArgs, opts ...pulumi.ResourceOption) (*LogBinding, error)
NewLogBinding registers a new resource with the given unique name, arguments, and options.
func (*LogBinding) ElementType ¶ added in v0.2.0
func (*LogBinding) ElementType() reflect.Type
func (*LogBinding) ToLogBindingOutput ¶ added in v0.2.0
func (i *LogBinding) ToLogBindingOutput() LogBindingOutput
func (*LogBinding) ToLogBindingOutputWithContext ¶ added in v0.2.0
func (i *LogBinding) ToLogBindingOutputWithContext(ctx context.Context) LogBindingOutput
type LogBindingArgs ¶ added in v0.2.0
type LogBindingArgs struct { // The logstream id for this log binding. LogstreamId pulumi.StringPtrInput // The name for this log binding. Name pulumi.StringInput // The grok/json pattern for this log binding. Pattern pulumi.StringInput // The pattern type for this log binding. Accepted values: grok, json PatternType pulumi.StringInput // The specification id. SpecId pulumi.StringInput }
The set of arguments for constructing a LogBinding resource.
func (LogBindingArgs) ElementType ¶ added in v0.2.0
func (LogBindingArgs) ElementType() reflect.Type
type LogBindingArray ¶ added in v0.2.0
type LogBindingArray []LogBindingInput
func (LogBindingArray) ElementType ¶ added in v0.2.0
func (LogBindingArray) ElementType() reflect.Type
func (LogBindingArray) ToLogBindingArrayOutput ¶ added in v0.2.0
func (i LogBindingArray) ToLogBindingArrayOutput() LogBindingArrayOutput
func (LogBindingArray) ToLogBindingArrayOutputWithContext ¶ added in v0.2.0
func (i LogBindingArray) ToLogBindingArrayOutputWithContext(ctx context.Context) LogBindingArrayOutput
type LogBindingArrayInput ¶ added in v0.2.0
type LogBindingArrayInput interface { pulumi.Input ToLogBindingArrayOutput() LogBindingArrayOutput ToLogBindingArrayOutputWithContext(context.Context) LogBindingArrayOutput }
LogBindingArrayInput is an input type that accepts LogBindingArray and LogBindingArrayOutput values. You can construct a concrete instance of `LogBindingArrayInput` via:
LogBindingArray{ LogBindingArgs{...} }
type LogBindingArrayOutput ¶ added in v0.2.0
type LogBindingArrayOutput struct{ *pulumi.OutputState }
func (LogBindingArrayOutput) ElementType ¶ added in v0.2.0
func (LogBindingArrayOutput) ElementType() reflect.Type
func (LogBindingArrayOutput) Index ¶ added in v0.2.0
func (o LogBindingArrayOutput) Index(i pulumi.IntInput) LogBindingOutput
func (LogBindingArrayOutput) ToLogBindingArrayOutput ¶ added in v0.2.0
func (o LogBindingArrayOutput) ToLogBindingArrayOutput() LogBindingArrayOutput
func (LogBindingArrayOutput) ToLogBindingArrayOutputWithContext ¶ added in v0.2.0
func (o LogBindingArrayOutput) ToLogBindingArrayOutputWithContext(ctx context.Context) LogBindingArrayOutput
type LogBindingInput ¶ added in v0.2.0
type LogBindingInput interface { pulumi.Input ToLogBindingOutput() LogBindingOutput ToLogBindingOutputWithContext(ctx context.Context) LogBindingOutput }
type LogBindingMap ¶ added in v0.2.0
type LogBindingMap map[string]LogBindingInput
func (LogBindingMap) ElementType ¶ added in v0.2.0
func (LogBindingMap) ElementType() reflect.Type
func (LogBindingMap) ToLogBindingMapOutput ¶ added in v0.2.0
func (i LogBindingMap) ToLogBindingMapOutput() LogBindingMapOutput
func (LogBindingMap) ToLogBindingMapOutputWithContext ¶ added in v0.2.0
func (i LogBindingMap) ToLogBindingMapOutputWithContext(ctx context.Context) LogBindingMapOutput
type LogBindingMapInput ¶ added in v0.2.0
type LogBindingMapInput interface { pulumi.Input ToLogBindingMapOutput() LogBindingMapOutput ToLogBindingMapOutputWithContext(context.Context) LogBindingMapOutput }
LogBindingMapInput is an input type that accepts LogBindingMap and LogBindingMapOutput values. You can construct a concrete instance of `LogBindingMapInput` via:
LogBindingMap{ "key": LogBindingArgs{...} }
type LogBindingMapOutput ¶ added in v0.2.0
type LogBindingMapOutput struct{ *pulumi.OutputState }
func (LogBindingMapOutput) ElementType ¶ added in v0.2.0
func (LogBindingMapOutput) ElementType() reflect.Type
func (LogBindingMapOutput) MapIndex ¶ added in v0.2.0
func (o LogBindingMapOutput) MapIndex(k pulumi.StringInput) LogBindingOutput
func (LogBindingMapOutput) ToLogBindingMapOutput ¶ added in v0.2.0
func (o LogBindingMapOutput) ToLogBindingMapOutput() LogBindingMapOutput
func (LogBindingMapOutput) ToLogBindingMapOutputWithContext ¶ added in v0.2.0
func (o LogBindingMapOutput) ToLogBindingMapOutputWithContext(ctx context.Context) LogBindingMapOutput
type LogBindingOutput ¶ added in v0.2.0
type LogBindingOutput struct{ *pulumi.OutputState }
func (LogBindingOutput) ElementType ¶ added in v0.2.0
func (LogBindingOutput) ElementType() reflect.Type
func (LogBindingOutput) LogstreamId ¶ added in v0.2.0
func (o LogBindingOutput) LogstreamId() pulumi.StringPtrOutput
The logstream id for this log binding.
func (LogBindingOutput) Name ¶ added in v0.2.0
func (o LogBindingOutput) Name() pulumi.StringOutput
The name for this log binding.
func (LogBindingOutput) Pattern ¶ added in v0.3.0
func (o LogBindingOutput) Pattern() pulumi.StringOutput
The grok/json pattern for this log binding.
func (LogBindingOutput) PatternType ¶ added in v0.3.0
func (o LogBindingOutput) PatternType() pulumi.StringOutput
The pattern type for this log binding. Accepted values: grok, json
func (LogBindingOutput) SpecId ¶ added in v0.2.0
func (o LogBindingOutput) SpecId() pulumi.StringOutput
The specification id.
func (LogBindingOutput) ToLogBindingOutput ¶ added in v0.2.0
func (o LogBindingOutput) ToLogBindingOutput() LogBindingOutput
func (LogBindingOutput) ToLogBindingOutputWithContext ¶ added in v0.2.0
func (o LogBindingOutput) ToLogBindingOutputWithContext(ctx context.Context) LogBindingOutput
type LogBindingState ¶ added in v0.2.0
type LogBindingState struct { // The logstream id for this log binding. LogstreamId pulumi.StringPtrInput // The name for this log binding. Name pulumi.StringPtrInput // The grok/json pattern for this log binding. Pattern pulumi.StringPtrInput // The pattern type for this log binding. Accepted values: grok, json PatternType pulumi.StringPtrInput // The specification id. SpecId pulumi.StringPtrInput }
func (LogBindingState) ElementType ¶ added in v0.2.0
func (LogBindingState) ElementType() reflect.Type
type LookupSpecArgs ¶
type LookupSpecArgs struct { // Identifier for this specification. Id string `pulumi:"id"` }
A collection of arguments for invoking GetSpec.
type LookupSpecOutputArgs ¶
type LookupSpecOutputArgs struct { // Identifier for this specification. Id pulumi.StringInput `pulumi:"id"` }
A collection of arguments for invoking GetSpec.
func (LookupSpecOutputArgs) ElementType ¶
func (LookupSpecOutputArgs) ElementType() reflect.Type
type LookupSpecResult ¶
type LookupSpecResult struct { // Identifier for this specification. Id string `pulumi:"id"` // The name for this specification. Name string `pulumi:"name"` }
A collection of values returned by GetSpec.
func LookupSpec ¶
func LookupSpec(ctx *pulumi.Context, args *LookupSpecArgs, opts ...pulumi.InvokeOption) (*LookupSpecResult, error)
Manage a specification.
## Example Usage
```go package main
import (
"github.com/impart-security/pulumi-impart/sdk/go/impart" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := impart.GetSpec(ctx, &impart.LookupSpecArgs{ Id: "<id>", }, nil) if err != nil { return err } return nil }) }
```
type LookupSpecResultOutput ¶
type LookupSpecResultOutput struct{ *pulumi.OutputState }
A collection of values returned by GetSpec.
func LookupSpecOutput ¶
func LookupSpecOutput(ctx *pulumi.Context, args LookupSpecOutputArgs, opts ...pulumi.InvokeOption) LookupSpecResultOutput
func (LookupSpecResultOutput) ElementType ¶
func (LookupSpecResultOutput) ElementType() reflect.Type
func (LookupSpecResultOutput) Id ¶
func (o LookupSpecResultOutput) Id() pulumi.StringOutput
Identifier for this specification.
func (LookupSpecResultOutput) Name ¶
func (o LookupSpecResultOutput) Name() pulumi.StringOutput
The name for this specification.
func (LookupSpecResultOutput) ToLookupSpecResultOutput ¶
func (o LookupSpecResultOutput) ToLookupSpecResultOutput() LookupSpecResultOutput
func (LookupSpecResultOutput) ToLookupSpecResultOutputWithContext ¶
func (o LookupSpecResultOutput) ToLookupSpecResultOutputWithContext(ctx context.Context) LookupSpecResultOutput
type Provider ¶
type Provider struct { pulumi.ProviderResourceState // The Impart api endpoint Endpoint pulumi.StringPtrOutput `pulumi:"endpoint"` // The Impart api token Token pulumi.StringPtrOutput `pulumi:"token"` }
The provider type for the impart package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
func NewProvider ¶
func NewProvider(ctx *pulumi.Context, name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)
NewProvider registers a new resource with the given unique name, arguments, and options.
func (*Provider) ElementType ¶
func (*Provider) ToProviderOutput ¶
func (i *Provider) ToProviderOutput() ProviderOutput
func (*Provider) ToProviderOutputWithContext ¶
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
type ProviderArgs ¶
type ProviderArgs struct { // The Impart api endpoint Endpoint pulumi.StringPtrInput // The Impart api token Token pulumi.StringPtrInput }
The set of arguments for constructing a Provider resource.
func (ProviderArgs) ElementType ¶
func (ProviderArgs) ElementType() reflect.Type
type ProviderInput ¶
type ProviderInput interface { pulumi.Input ToProviderOutput() ProviderOutput ToProviderOutputWithContext(ctx context.Context) ProviderOutput }
type ProviderOutput ¶
type ProviderOutput struct{ *pulumi.OutputState }
func (ProviderOutput) ElementType ¶
func (ProviderOutput) ElementType() reflect.Type
func (ProviderOutput) Endpoint ¶
func (o ProviderOutput) Endpoint() pulumi.StringPtrOutput
The Impart api endpoint
func (ProviderOutput) ToProviderOutput ¶
func (o ProviderOutput) ToProviderOutput() ProviderOutput
func (ProviderOutput) ToProviderOutputWithContext ¶
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput
func (ProviderOutput) Token ¶
func (o ProviderOutput) Token() pulumi.StringPtrOutput
The Impart api token
type RuleScript ¶
type RuleScript struct { pulumi.CustomResourceState // The description for this rule script. Description pulumi.StringPtrOutput `pulumi:"description"` // Set true to disable the rule script. Disabled pulumi.BoolOutput `pulumi:"disabled"` // The name for this rule script. Name pulumi.StringOutput `pulumi:"name"` // The rule source file. SourceFile pulumi.StringOutput `pulumi:"sourceFile"` // The rule source hash. SourceHash pulumi.StringPtrOutput `pulumi:"sourceHash"` }
Manage a rule script.
## Example Usage
```go package main
import (
"fmt" "github.com/impart-security/pulumi-impart/sdk/go/impart" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := impart.NewRuleScript(ctx, "example", &impart.RuleScriptArgs{ Description: pulumi.String("Rule description"), Disabled: pulumi.Bool(false), Name: pulumi.String("example"), SourceFile: pulumi.String(fmt.Sprintf("%v/rule.js", path.Module)), SourceHash: pulumi.String("<sha256 hash for the source_file content>"), }) if err != nil { return err } return nil }) }
```
func GetRuleScript ¶
func GetRuleScript(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RuleScriptState, opts ...pulumi.ResourceOption) (*RuleScript, error)
GetRuleScript gets an existing RuleScript 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 NewRuleScript ¶
func NewRuleScript(ctx *pulumi.Context, name string, args *RuleScriptArgs, opts ...pulumi.ResourceOption) (*RuleScript, error)
NewRuleScript registers a new resource with the given unique name, arguments, and options.
func (*RuleScript) ElementType ¶
func (*RuleScript) ElementType() reflect.Type
func (*RuleScript) ToRuleScriptOutput ¶
func (i *RuleScript) ToRuleScriptOutput() RuleScriptOutput
func (*RuleScript) ToRuleScriptOutputWithContext ¶
func (i *RuleScript) ToRuleScriptOutputWithContext(ctx context.Context) RuleScriptOutput
type RuleScriptArgs ¶
type RuleScriptArgs struct { // The description for this rule script. Description pulumi.StringPtrInput // Set true to disable the rule script. Disabled pulumi.BoolInput // The name for this rule script. Name pulumi.StringInput // The rule source file. SourceFile pulumi.StringInput // The rule source hash. SourceHash pulumi.StringPtrInput }
The set of arguments for constructing a RuleScript resource.
func (RuleScriptArgs) ElementType ¶
func (RuleScriptArgs) ElementType() reflect.Type
type RuleScriptArray ¶
type RuleScriptArray []RuleScriptInput
func (RuleScriptArray) ElementType ¶
func (RuleScriptArray) ElementType() reflect.Type
func (RuleScriptArray) ToRuleScriptArrayOutput ¶
func (i RuleScriptArray) ToRuleScriptArrayOutput() RuleScriptArrayOutput
func (RuleScriptArray) ToRuleScriptArrayOutputWithContext ¶
func (i RuleScriptArray) ToRuleScriptArrayOutputWithContext(ctx context.Context) RuleScriptArrayOutput
type RuleScriptArrayInput ¶
type RuleScriptArrayInput interface { pulumi.Input ToRuleScriptArrayOutput() RuleScriptArrayOutput ToRuleScriptArrayOutputWithContext(context.Context) RuleScriptArrayOutput }
RuleScriptArrayInput is an input type that accepts RuleScriptArray and RuleScriptArrayOutput values. You can construct a concrete instance of `RuleScriptArrayInput` via:
RuleScriptArray{ RuleScriptArgs{...} }
type RuleScriptArrayOutput ¶
type RuleScriptArrayOutput struct{ *pulumi.OutputState }
func (RuleScriptArrayOutput) ElementType ¶
func (RuleScriptArrayOutput) ElementType() reflect.Type
func (RuleScriptArrayOutput) Index ¶
func (o RuleScriptArrayOutput) Index(i pulumi.IntInput) RuleScriptOutput
func (RuleScriptArrayOutput) ToRuleScriptArrayOutput ¶
func (o RuleScriptArrayOutput) ToRuleScriptArrayOutput() RuleScriptArrayOutput
func (RuleScriptArrayOutput) ToRuleScriptArrayOutputWithContext ¶
func (o RuleScriptArrayOutput) ToRuleScriptArrayOutputWithContext(ctx context.Context) RuleScriptArrayOutput
type RuleScriptInput ¶
type RuleScriptInput interface { pulumi.Input ToRuleScriptOutput() RuleScriptOutput ToRuleScriptOutputWithContext(ctx context.Context) RuleScriptOutput }
type RuleScriptMap ¶
type RuleScriptMap map[string]RuleScriptInput
func (RuleScriptMap) ElementType ¶
func (RuleScriptMap) ElementType() reflect.Type
func (RuleScriptMap) ToRuleScriptMapOutput ¶
func (i RuleScriptMap) ToRuleScriptMapOutput() RuleScriptMapOutput
func (RuleScriptMap) ToRuleScriptMapOutputWithContext ¶
func (i RuleScriptMap) ToRuleScriptMapOutputWithContext(ctx context.Context) RuleScriptMapOutput
type RuleScriptMapInput ¶
type RuleScriptMapInput interface { pulumi.Input ToRuleScriptMapOutput() RuleScriptMapOutput ToRuleScriptMapOutputWithContext(context.Context) RuleScriptMapOutput }
RuleScriptMapInput is an input type that accepts RuleScriptMap and RuleScriptMapOutput values. You can construct a concrete instance of `RuleScriptMapInput` via:
RuleScriptMap{ "key": RuleScriptArgs{...} }
type RuleScriptMapOutput ¶
type RuleScriptMapOutput struct{ *pulumi.OutputState }
func (RuleScriptMapOutput) ElementType ¶
func (RuleScriptMapOutput) ElementType() reflect.Type
func (RuleScriptMapOutput) MapIndex ¶
func (o RuleScriptMapOutput) MapIndex(k pulumi.StringInput) RuleScriptOutput
func (RuleScriptMapOutput) ToRuleScriptMapOutput ¶
func (o RuleScriptMapOutput) ToRuleScriptMapOutput() RuleScriptMapOutput
func (RuleScriptMapOutput) ToRuleScriptMapOutputWithContext ¶
func (o RuleScriptMapOutput) ToRuleScriptMapOutputWithContext(ctx context.Context) RuleScriptMapOutput
type RuleScriptOutput ¶
type RuleScriptOutput struct{ *pulumi.OutputState }
func (RuleScriptOutput) Description ¶
func (o RuleScriptOutput) Description() pulumi.StringPtrOutput
The description for this rule script.
func (RuleScriptOutput) Disabled ¶
func (o RuleScriptOutput) Disabled() pulumi.BoolOutput
Set true to disable the rule script.
func (RuleScriptOutput) ElementType ¶
func (RuleScriptOutput) ElementType() reflect.Type
func (RuleScriptOutput) Name ¶
func (o RuleScriptOutput) Name() pulumi.StringOutput
The name for this rule script.
func (RuleScriptOutput) SourceFile ¶
func (o RuleScriptOutput) SourceFile() pulumi.StringOutput
The rule source file.
func (RuleScriptOutput) SourceHash ¶
func (o RuleScriptOutput) SourceHash() pulumi.StringPtrOutput
The rule source hash.
func (RuleScriptOutput) ToRuleScriptOutput ¶
func (o RuleScriptOutput) ToRuleScriptOutput() RuleScriptOutput
func (RuleScriptOutput) ToRuleScriptOutputWithContext ¶
func (o RuleScriptOutput) ToRuleScriptOutputWithContext(ctx context.Context) RuleScriptOutput
type RuleScriptState ¶
type RuleScriptState struct { // The description for this rule script. Description pulumi.StringPtrInput // Set true to disable the rule script. Disabled pulumi.BoolPtrInput // The name for this rule script. Name pulumi.StringPtrInput // The rule source file. SourceFile pulumi.StringPtrInput // The rule source hash. SourceHash pulumi.StringPtrInput }
func (RuleScriptState) ElementType ¶
func (RuleScriptState) ElementType() reflect.Type
type Spec ¶
type Spec struct { pulumi.CustomResourceState // The name for this specification. Name pulumi.StringOutput `pulumi:"name"` // The specification file. SourceFile pulumi.StringOutput `pulumi:"sourceFile"` // The specification source hash. SourceHash pulumi.StringPtrOutput `pulumi:"sourceHash"` }
Manage a specification.
## Example Usage
```go package main
import (
"fmt" "github.com/impart-security/pulumi-impart/sdk/go/impart" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := impart.NewSpec(ctx, "example", &impart.SpecArgs{ Name: pulumi.String("spec_example"), SourceFile: pulumi.String(fmt.Sprintf("%v/spec.yaml", path.Module)), SourceHash: pulumi.String("<sha256 hash for the source_file content>"), }) if err != nil { return err } return nil }) }
```
## Import
#!/bin/bash
```sh $ pulumi import impart:index/spec:Spec example "<id>" ```
func GetSpec ¶
func GetSpec(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SpecState, opts ...pulumi.ResourceOption) (*Spec, error)
GetSpec gets an existing Spec 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 NewSpec ¶
func NewSpec(ctx *pulumi.Context, name string, args *SpecArgs, opts ...pulumi.ResourceOption) (*Spec, error)
NewSpec registers a new resource with the given unique name, arguments, and options.
func (*Spec) ElementType ¶
func (*Spec) ToSpecOutput ¶
func (i *Spec) ToSpecOutput() SpecOutput
func (*Spec) ToSpecOutputWithContext ¶
func (i *Spec) ToSpecOutputWithContext(ctx context.Context) SpecOutput
type SpecArgs ¶
type SpecArgs struct { // The name for this specification. Name pulumi.StringInput // The specification file. SourceFile pulumi.StringInput // The specification source hash. SourceHash pulumi.StringPtrInput }
The set of arguments for constructing a Spec resource.
func (SpecArgs) ElementType ¶
type SpecArray ¶
type SpecArray []SpecInput
func (SpecArray) ElementType ¶
func (SpecArray) ToSpecArrayOutput ¶
func (i SpecArray) ToSpecArrayOutput() SpecArrayOutput
func (SpecArray) ToSpecArrayOutputWithContext ¶
func (i SpecArray) ToSpecArrayOutputWithContext(ctx context.Context) SpecArrayOutput
type SpecArrayInput ¶
type SpecArrayInput interface { pulumi.Input ToSpecArrayOutput() SpecArrayOutput ToSpecArrayOutputWithContext(context.Context) SpecArrayOutput }
SpecArrayInput is an input type that accepts SpecArray and SpecArrayOutput values. You can construct a concrete instance of `SpecArrayInput` via:
SpecArray{ SpecArgs{...} }
type SpecArrayOutput ¶
type SpecArrayOutput struct{ *pulumi.OutputState }
func (SpecArrayOutput) ElementType ¶
func (SpecArrayOutput) ElementType() reflect.Type
func (SpecArrayOutput) Index ¶
func (o SpecArrayOutput) Index(i pulumi.IntInput) SpecOutput
func (SpecArrayOutput) ToSpecArrayOutput ¶
func (o SpecArrayOutput) ToSpecArrayOutput() SpecArrayOutput
func (SpecArrayOutput) ToSpecArrayOutputWithContext ¶
func (o SpecArrayOutput) ToSpecArrayOutputWithContext(ctx context.Context) SpecArrayOutput
type SpecInput ¶
type SpecInput interface { pulumi.Input ToSpecOutput() SpecOutput ToSpecOutputWithContext(ctx context.Context) SpecOutput }
type SpecMap ¶
func (SpecMap) ElementType ¶
func (SpecMap) ToSpecMapOutput ¶
func (i SpecMap) ToSpecMapOutput() SpecMapOutput
func (SpecMap) ToSpecMapOutputWithContext ¶
func (i SpecMap) ToSpecMapOutputWithContext(ctx context.Context) SpecMapOutput
type SpecMapInput ¶
type SpecMapInput interface { pulumi.Input ToSpecMapOutput() SpecMapOutput ToSpecMapOutputWithContext(context.Context) SpecMapOutput }
SpecMapInput is an input type that accepts SpecMap and SpecMapOutput values. You can construct a concrete instance of `SpecMapInput` via:
SpecMap{ "key": SpecArgs{...} }
type SpecMapOutput ¶
type SpecMapOutput struct{ *pulumi.OutputState }
func (SpecMapOutput) ElementType ¶
func (SpecMapOutput) ElementType() reflect.Type
func (SpecMapOutput) MapIndex ¶
func (o SpecMapOutput) MapIndex(k pulumi.StringInput) SpecOutput
func (SpecMapOutput) ToSpecMapOutput ¶
func (o SpecMapOutput) ToSpecMapOutput() SpecMapOutput
func (SpecMapOutput) ToSpecMapOutputWithContext ¶
func (o SpecMapOutput) ToSpecMapOutputWithContext(ctx context.Context) SpecMapOutput
type SpecOutput ¶
type SpecOutput struct{ *pulumi.OutputState }
func (SpecOutput) ElementType ¶
func (SpecOutput) ElementType() reflect.Type
func (SpecOutput) Name ¶
func (o SpecOutput) Name() pulumi.StringOutput
The name for this specification.
func (SpecOutput) SourceFile ¶
func (o SpecOutput) SourceFile() pulumi.StringOutput
The specification file.
func (SpecOutput) SourceHash ¶
func (o SpecOutput) SourceHash() pulumi.StringPtrOutput
The specification source hash.
func (SpecOutput) ToSpecOutput ¶
func (o SpecOutput) ToSpecOutput() SpecOutput
func (SpecOutput) ToSpecOutputWithContext ¶
func (o SpecOutput) ToSpecOutputWithContext(ctx context.Context) SpecOutput
type SpecState ¶
type SpecState struct { // The name for this specification. Name pulumi.StringPtrInput // The specification file. SourceFile pulumi.StringPtrInput // The specification source hash. SourceHash pulumi.StringPtrInput }