Documentation ¶
Index ¶
- type EncryptionConfig
- func (*EncryptionConfig) ElementType() reflect.Type
- func (i *EncryptionConfig) ToEncryptionConfigOutput() EncryptionConfigOutput
- func (i *EncryptionConfig) ToEncryptionConfigOutputWithContext(ctx context.Context) EncryptionConfigOutput
- func (i *EncryptionConfig) ToEncryptionConfigPtrOutput() EncryptionConfigPtrOutput
- func (i *EncryptionConfig) ToEncryptionConfigPtrOutputWithContext(ctx context.Context) EncryptionConfigPtrOutput
- type EncryptionConfigArgs
- type EncryptionConfigArray
- type EncryptionConfigArrayInput
- type EncryptionConfigArrayOutput
- func (EncryptionConfigArrayOutput) ElementType() reflect.Type
- func (o EncryptionConfigArrayOutput) Index(i pulumi.IntInput) EncryptionConfigOutput
- func (o EncryptionConfigArrayOutput) ToEncryptionConfigArrayOutput() EncryptionConfigArrayOutput
- func (o EncryptionConfigArrayOutput) ToEncryptionConfigArrayOutputWithContext(ctx context.Context) EncryptionConfigArrayOutput
- type EncryptionConfigInput
- type EncryptionConfigMap
- type EncryptionConfigMapInput
- type EncryptionConfigMapOutput
- func (EncryptionConfigMapOutput) ElementType() reflect.Type
- func (o EncryptionConfigMapOutput) MapIndex(k pulumi.StringInput) EncryptionConfigOutput
- func (o EncryptionConfigMapOutput) ToEncryptionConfigMapOutput() EncryptionConfigMapOutput
- func (o EncryptionConfigMapOutput) ToEncryptionConfigMapOutputWithContext(ctx context.Context) EncryptionConfigMapOutput
- type EncryptionConfigOutput
- func (EncryptionConfigOutput) ElementType() reflect.Type
- func (o EncryptionConfigOutput) ToEncryptionConfigOutput() EncryptionConfigOutput
- func (o EncryptionConfigOutput) ToEncryptionConfigOutputWithContext(ctx context.Context) EncryptionConfigOutput
- func (o EncryptionConfigOutput) ToEncryptionConfigPtrOutput() EncryptionConfigPtrOutput
- func (o EncryptionConfigOutput) ToEncryptionConfigPtrOutputWithContext(ctx context.Context) EncryptionConfigPtrOutput
- type EncryptionConfigPtrInput
- type EncryptionConfigPtrOutput
- func (o EncryptionConfigPtrOutput) Elem() EncryptionConfigOutput
- func (EncryptionConfigPtrOutput) ElementType() reflect.Type
- func (o EncryptionConfigPtrOutput) ToEncryptionConfigPtrOutput() EncryptionConfigPtrOutput
- func (o EncryptionConfigPtrOutput) ToEncryptionConfigPtrOutputWithContext(ctx context.Context) EncryptionConfigPtrOutput
- type EncryptionConfigState
- type Group
- type GroupArgs
- type GroupArray
- type GroupArrayInput
- type GroupArrayOutput
- type GroupInput
- type GroupMap
- type GroupMapInput
- type GroupMapOutput
- type GroupOutput
- func (GroupOutput) ElementType() reflect.Type
- func (o GroupOutput) ToGroupOutput() GroupOutput
- func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
- func (o GroupOutput) ToGroupPtrOutput() GroupPtrOutput
- func (o GroupOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
- type GroupPtrInput
- type GroupPtrOutput
- type GroupState
- type SamplingRule
- func (*SamplingRule) ElementType() reflect.Type
- func (i *SamplingRule) ToSamplingRuleOutput() SamplingRuleOutput
- func (i *SamplingRule) ToSamplingRuleOutputWithContext(ctx context.Context) SamplingRuleOutput
- func (i *SamplingRule) ToSamplingRulePtrOutput() SamplingRulePtrOutput
- func (i *SamplingRule) ToSamplingRulePtrOutputWithContext(ctx context.Context) SamplingRulePtrOutput
- type SamplingRuleArgs
- type SamplingRuleArray
- type SamplingRuleArrayInput
- type SamplingRuleArrayOutput
- func (SamplingRuleArrayOutput) ElementType() reflect.Type
- func (o SamplingRuleArrayOutput) Index(i pulumi.IntInput) SamplingRuleOutput
- func (o SamplingRuleArrayOutput) ToSamplingRuleArrayOutput() SamplingRuleArrayOutput
- func (o SamplingRuleArrayOutput) ToSamplingRuleArrayOutputWithContext(ctx context.Context) SamplingRuleArrayOutput
- type SamplingRuleInput
- type SamplingRuleMap
- type SamplingRuleMapInput
- type SamplingRuleMapOutput
- func (SamplingRuleMapOutput) ElementType() reflect.Type
- func (o SamplingRuleMapOutput) MapIndex(k pulumi.StringInput) SamplingRuleOutput
- func (o SamplingRuleMapOutput) ToSamplingRuleMapOutput() SamplingRuleMapOutput
- func (o SamplingRuleMapOutput) ToSamplingRuleMapOutputWithContext(ctx context.Context) SamplingRuleMapOutput
- type SamplingRuleOutput
- func (SamplingRuleOutput) ElementType() reflect.Type
- func (o SamplingRuleOutput) ToSamplingRuleOutput() SamplingRuleOutput
- func (o SamplingRuleOutput) ToSamplingRuleOutputWithContext(ctx context.Context) SamplingRuleOutput
- func (o SamplingRuleOutput) ToSamplingRulePtrOutput() SamplingRulePtrOutput
- func (o SamplingRuleOutput) ToSamplingRulePtrOutputWithContext(ctx context.Context) SamplingRulePtrOutput
- type SamplingRulePtrInput
- type SamplingRulePtrOutput
- func (o SamplingRulePtrOutput) Elem() SamplingRuleOutput
- func (SamplingRulePtrOutput) ElementType() reflect.Type
- func (o SamplingRulePtrOutput) ToSamplingRulePtrOutput() SamplingRulePtrOutput
- func (o SamplingRulePtrOutput) ToSamplingRulePtrOutputWithContext(ctx context.Context) SamplingRulePtrOutput
- type SamplingRuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionConfig ¶
type EncryptionConfig struct { pulumi.CustomResourceState // An AWS KMS customer master key (CMK) ARN. KeyId pulumi.StringPtrOutput `pulumi:"keyId"` // The type of encryption. Set to `KMS` to use your own key for encryption. Set to `NONE` for default encryption. Type pulumi.StringOutput `pulumi:"type"` }
Creates and manages an AWS XRay Encryption Config.
> **NOTE:** Removing this resource from the provider has no effect to the encryption configuration within X-Ray.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/xray" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := xray.NewEncryptionConfig(ctx, "example", &xray.EncryptionConfigArgs{ Type: pulumi.String("NONE"), }) if err != nil { return err } return nil }) }
``` ### With KMS Key
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/kms" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/xray" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleKey, err := kms.NewKey(ctx, "exampleKey", &kms.KeyArgs{ Description: pulumi.String("Some Key"), DeletionWindowInDays: pulumi.Int(7), Policy: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", " \"Version\": \"2012-10-17\",\n", " \"Id\": \"kms-tf-1\",\n", " \"Statement\": [\n", " {\n", " \"Sid\": \"Enable IAM User Permissions\",\n", " \"Effect\": \"Allow\",\n", " \"Principal\": {\n", " \"AWS\": \"*\"\n", " },\n", " \"Action\": \"kms:*\",\n", " \"Resource\": \"*\"\n", " }\n", " ]\n", "}\n")), }) if err != nil { return err } _, err = xray.NewEncryptionConfig(ctx, "exampleEncryptionConfig", &xray.EncryptionConfigArgs{ Type: pulumi.String("KMS"), KeyId: exampleKey.Arn, }) if err != nil { return err } return nil }) }
```
## Import
XRay Encryption Config can be imported using the region name, e.g.
```sh
$ pulumi import aws:xray/encryptionConfig:EncryptionConfig example us-west-2
```
func GetEncryptionConfig ¶
func GetEncryptionConfig(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EncryptionConfigState, opts ...pulumi.ResourceOption) (*EncryptionConfig, error)
GetEncryptionConfig gets an existing EncryptionConfig 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 NewEncryptionConfig ¶
func NewEncryptionConfig(ctx *pulumi.Context, name string, args *EncryptionConfigArgs, opts ...pulumi.ResourceOption) (*EncryptionConfig, error)
NewEncryptionConfig registers a new resource with the given unique name, arguments, and options.
func (*EncryptionConfig) ElementType ¶
func (*EncryptionConfig) ElementType() reflect.Type
func (*EncryptionConfig) ToEncryptionConfigOutput ¶
func (i *EncryptionConfig) ToEncryptionConfigOutput() EncryptionConfigOutput
func (*EncryptionConfig) ToEncryptionConfigOutputWithContext ¶
func (i *EncryptionConfig) ToEncryptionConfigOutputWithContext(ctx context.Context) EncryptionConfigOutput
func (*EncryptionConfig) ToEncryptionConfigPtrOutput ¶
func (i *EncryptionConfig) ToEncryptionConfigPtrOutput() EncryptionConfigPtrOutput
func (*EncryptionConfig) ToEncryptionConfigPtrOutputWithContext ¶
func (i *EncryptionConfig) ToEncryptionConfigPtrOutputWithContext(ctx context.Context) EncryptionConfigPtrOutput
type EncryptionConfigArgs ¶
type EncryptionConfigArgs struct { // An AWS KMS customer master key (CMK) ARN. KeyId pulumi.StringPtrInput // The type of encryption. Set to `KMS` to use your own key for encryption. Set to `NONE` for default encryption. Type pulumi.StringInput }
The set of arguments for constructing a EncryptionConfig resource.
func (EncryptionConfigArgs) ElementType ¶
func (EncryptionConfigArgs) ElementType() reflect.Type
type EncryptionConfigArray ¶
type EncryptionConfigArray []EncryptionConfigInput
func (EncryptionConfigArray) ElementType ¶
func (EncryptionConfigArray) ElementType() reflect.Type
func (EncryptionConfigArray) ToEncryptionConfigArrayOutput ¶
func (i EncryptionConfigArray) ToEncryptionConfigArrayOutput() EncryptionConfigArrayOutput
func (EncryptionConfigArray) ToEncryptionConfigArrayOutputWithContext ¶
func (i EncryptionConfigArray) ToEncryptionConfigArrayOutputWithContext(ctx context.Context) EncryptionConfigArrayOutput
type EncryptionConfigArrayInput ¶
type EncryptionConfigArrayInput interface { pulumi.Input ToEncryptionConfigArrayOutput() EncryptionConfigArrayOutput ToEncryptionConfigArrayOutputWithContext(context.Context) EncryptionConfigArrayOutput }
EncryptionConfigArrayInput is an input type that accepts EncryptionConfigArray and EncryptionConfigArrayOutput values. You can construct a concrete instance of `EncryptionConfigArrayInput` via:
EncryptionConfigArray{ EncryptionConfigArgs{...} }
type EncryptionConfigArrayOutput ¶
type EncryptionConfigArrayOutput struct{ *pulumi.OutputState }
func (EncryptionConfigArrayOutput) ElementType ¶
func (EncryptionConfigArrayOutput) ElementType() reflect.Type
func (EncryptionConfigArrayOutput) Index ¶
func (o EncryptionConfigArrayOutput) Index(i pulumi.IntInput) EncryptionConfigOutput
func (EncryptionConfigArrayOutput) ToEncryptionConfigArrayOutput ¶
func (o EncryptionConfigArrayOutput) ToEncryptionConfigArrayOutput() EncryptionConfigArrayOutput
func (EncryptionConfigArrayOutput) ToEncryptionConfigArrayOutputWithContext ¶
func (o EncryptionConfigArrayOutput) ToEncryptionConfigArrayOutputWithContext(ctx context.Context) EncryptionConfigArrayOutput
type EncryptionConfigInput ¶
type EncryptionConfigInput interface { pulumi.Input ToEncryptionConfigOutput() EncryptionConfigOutput ToEncryptionConfigOutputWithContext(ctx context.Context) EncryptionConfigOutput }
type EncryptionConfigMap ¶
type EncryptionConfigMap map[string]EncryptionConfigInput
func (EncryptionConfigMap) ElementType ¶
func (EncryptionConfigMap) ElementType() reflect.Type
func (EncryptionConfigMap) ToEncryptionConfigMapOutput ¶
func (i EncryptionConfigMap) ToEncryptionConfigMapOutput() EncryptionConfigMapOutput
func (EncryptionConfigMap) ToEncryptionConfigMapOutputWithContext ¶
func (i EncryptionConfigMap) ToEncryptionConfigMapOutputWithContext(ctx context.Context) EncryptionConfigMapOutput
type EncryptionConfigMapInput ¶
type EncryptionConfigMapInput interface { pulumi.Input ToEncryptionConfigMapOutput() EncryptionConfigMapOutput ToEncryptionConfigMapOutputWithContext(context.Context) EncryptionConfigMapOutput }
EncryptionConfigMapInput is an input type that accepts EncryptionConfigMap and EncryptionConfigMapOutput values. You can construct a concrete instance of `EncryptionConfigMapInput` via:
EncryptionConfigMap{ "key": EncryptionConfigArgs{...} }
type EncryptionConfigMapOutput ¶
type EncryptionConfigMapOutput struct{ *pulumi.OutputState }
func (EncryptionConfigMapOutput) ElementType ¶
func (EncryptionConfigMapOutput) ElementType() reflect.Type
func (EncryptionConfigMapOutput) MapIndex ¶
func (o EncryptionConfigMapOutput) MapIndex(k pulumi.StringInput) EncryptionConfigOutput
func (EncryptionConfigMapOutput) ToEncryptionConfigMapOutput ¶
func (o EncryptionConfigMapOutput) ToEncryptionConfigMapOutput() EncryptionConfigMapOutput
func (EncryptionConfigMapOutput) ToEncryptionConfigMapOutputWithContext ¶
func (o EncryptionConfigMapOutput) ToEncryptionConfigMapOutputWithContext(ctx context.Context) EncryptionConfigMapOutput
type EncryptionConfigOutput ¶
type EncryptionConfigOutput struct{ *pulumi.OutputState }
func (EncryptionConfigOutput) ElementType ¶
func (EncryptionConfigOutput) ElementType() reflect.Type
func (EncryptionConfigOutput) ToEncryptionConfigOutput ¶
func (o EncryptionConfigOutput) ToEncryptionConfigOutput() EncryptionConfigOutput
func (EncryptionConfigOutput) ToEncryptionConfigOutputWithContext ¶
func (o EncryptionConfigOutput) ToEncryptionConfigOutputWithContext(ctx context.Context) EncryptionConfigOutput
func (EncryptionConfigOutput) ToEncryptionConfigPtrOutput ¶
func (o EncryptionConfigOutput) ToEncryptionConfigPtrOutput() EncryptionConfigPtrOutput
func (EncryptionConfigOutput) ToEncryptionConfigPtrOutputWithContext ¶
func (o EncryptionConfigOutput) ToEncryptionConfigPtrOutputWithContext(ctx context.Context) EncryptionConfigPtrOutput
type EncryptionConfigPtrInput ¶
type EncryptionConfigPtrInput interface { pulumi.Input ToEncryptionConfigPtrOutput() EncryptionConfigPtrOutput ToEncryptionConfigPtrOutputWithContext(ctx context.Context) EncryptionConfigPtrOutput }
type EncryptionConfigPtrOutput ¶
type EncryptionConfigPtrOutput struct{ *pulumi.OutputState }
func (EncryptionConfigPtrOutput) Elem ¶ added in v4.15.0
func (o EncryptionConfigPtrOutput) Elem() EncryptionConfigOutput
func (EncryptionConfigPtrOutput) ElementType ¶
func (EncryptionConfigPtrOutput) ElementType() reflect.Type
func (EncryptionConfigPtrOutput) ToEncryptionConfigPtrOutput ¶
func (o EncryptionConfigPtrOutput) ToEncryptionConfigPtrOutput() EncryptionConfigPtrOutput
func (EncryptionConfigPtrOutput) ToEncryptionConfigPtrOutputWithContext ¶
func (o EncryptionConfigPtrOutput) ToEncryptionConfigPtrOutputWithContext(ctx context.Context) EncryptionConfigPtrOutput
type EncryptionConfigState ¶
type EncryptionConfigState struct { // An AWS KMS customer master key (CMK) ARN. KeyId pulumi.StringPtrInput // The type of encryption. Set to `KMS` to use your own key for encryption. Set to `NONE` for default encryption. Type pulumi.StringPtrInput }
func (EncryptionConfigState) ElementType ¶
func (EncryptionConfigState) ElementType() reflect.Type
type Group ¶
type Group struct { pulumi.CustomResourceState // The ARN of the Group. Arn pulumi.StringOutput `pulumi:"arn"` // The filter expression defining criteria by which to group traces. more info can be found in official [docs](https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html). FilterExpression pulumi.StringOutput `pulumi:"filterExpression"` // The name of the group. GroupName pulumi.StringOutput `pulumi:"groupName"` Tags pulumi.StringMapOutput `pulumi:"tags"` TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` }
Creates and manages an AWS XRay Group.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/xray" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := xray.NewGroup(ctx, "example", &xray.GroupArgs{ FilterExpression: pulumi.String("responsetime > 5"), GroupName: pulumi.String("example"), }) if err != nil { return err } return nil }) }
```
## Import
XRay Groups can be imported using the ARN, e.g.
```sh
$ pulumi import aws:xray/group:Group example arn:aws:xray:us-west-2:1234567890:group/example-group/TNGX7SW5U6QY36T4ZMOUA3HVLBYCZTWDIOOXY3CJAXTHSS3YCWUA
```
func GetGroup ¶
func GetGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)
GetGroup gets an existing Group 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 NewGroup ¶
func NewGroup(ctx *pulumi.Context, name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)
NewGroup registers a new resource with the given unique name, arguments, and options.
func (*Group) ElementType ¶
func (*Group) ToGroupOutput ¶
func (i *Group) ToGroupOutput() GroupOutput
func (*Group) ToGroupOutputWithContext ¶
func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput
func (*Group) ToGroupPtrOutput ¶
func (i *Group) ToGroupPtrOutput() GroupPtrOutput
func (*Group) ToGroupPtrOutputWithContext ¶
func (i *Group) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupArgs ¶
type GroupArgs struct { // The filter expression defining criteria by which to group traces. more info can be found in official [docs](https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html). FilterExpression pulumi.StringInput // The name of the group. GroupName pulumi.StringInput Tags pulumi.StringMapInput TagsAll pulumi.StringMapInput }
The set of arguments for constructing a Group resource.
func (GroupArgs) ElementType ¶
type GroupArray ¶
type GroupArray []GroupInput
func (GroupArray) ElementType ¶
func (GroupArray) ElementType() reflect.Type
func (GroupArray) ToGroupArrayOutput ¶
func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput
func (GroupArray) ToGroupArrayOutputWithContext ¶
func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupArrayInput ¶
type GroupArrayInput interface { pulumi.Input ToGroupArrayOutput() GroupArrayOutput ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput }
GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:
GroupArray{ GroupArgs{...} }
type GroupArrayOutput ¶
type GroupArrayOutput struct{ *pulumi.OutputState }
func (GroupArrayOutput) ElementType ¶
func (GroupArrayOutput) ElementType() reflect.Type
func (GroupArrayOutput) Index ¶
func (o GroupArrayOutput) Index(i pulumi.IntInput) GroupOutput
func (GroupArrayOutput) ToGroupArrayOutput ¶
func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput
func (GroupArrayOutput) ToGroupArrayOutputWithContext ¶
func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput
type GroupInput ¶
type GroupInput interface { pulumi.Input ToGroupOutput() GroupOutput ToGroupOutputWithContext(ctx context.Context) GroupOutput }
type GroupMap ¶
type GroupMap map[string]GroupInput
func (GroupMap) ElementType ¶
func (GroupMap) ToGroupMapOutput ¶
func (i GroupMap) ToGroupMapOutput() GroupMapOutput
func (GroupMap) ToGroupMapOutputWithContext ¶
func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupMapInput ¶
type GroupMapInput interface { pulumi.Input ToGroupMapOutput() GroupMapOutput ToGroupMapOutputWithContext(context.Context) GroupMapOutput }
GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:
GroupMap{ "key": GroupArgs{...} }
type GroupMapOutput ¶
type GroupMapOutput struct{ *pulumi.OutputState }
func (GroupMapOutput) ElementType ¶
func (GroupMapOutput) ElementType() reflect.Type
func (GroupMapOutput) MapIndex ¶
func (o GroupMapOutput) MapIndex(k pulumi.StringInput) GroupOutput
func (GroupMapOutput) ToGroupMapOutput ¶
func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput
func (GroupMapOutput) ToGroupMapOutputWithContext ¶
func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput
type GroupOutput ¶
type GroupOutput struct{ *pulumi.OutputState }
func (GroupOutput) ElementType ¶
func (GroupOutput) ElementType() reflect.Type
func (GroupOutput) ToGroupOutput ¶
func (o GroupOutput) ToGroupOutput() GroupOutput
func (GroupOutput) ToGroupOutputWithContext ¶
func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput
func (GroupOutput) ToGroupPtrOutput ¶
func (o GroupOutput) ToGroupPtrOutput() GroupPtrOutput
func (GroupOutput) ToGroupPtrOutputWithContext ¶
func (o GroupOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupPtrInput ¶
type GroupPtrInput interface { pulumi.Input ToGroupPtrOutput() GroupPtrOutput ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput }
type GroupPtrOutput ¶
type GroupPtrOutput struct{ *pulumi.OutputState }
func (GroupPtrOutput) Elem ¶ added in v4.15.0
func (o GroupPtrOutput) Elem() GroupOutput
func (GroupPtrOutput) ElementType ¶
func (GroupPtrOutput) ElementType() reflect.Type
func (GroupPtrOutput) ToGroupPtrOutput ¶
func (o GroupPtrOutput) ToGroupPtrOutput() GroupPtrOutput
func (GroupPtrOutput) ToGroupPtrOutputWithContext ¶
func (o GroupPtrOutput) ToGroupPtrOutputWithContext(ctx context.Context) GroupPtrOutput
type GroupState ¶
type GroupState struct { // The ARN of the Group. Arn pulumi.StringPtrInput // The filter expression defining criteria by which to group traces. more info can be found in official [docs](https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html). FilterExpression pulumi.StringPtrInput // The name of the group. GroupName pulumi.StringPtrInput Tags pulumi.StringMapInput TagsAll pulumi.StringMapInput }
func (GroupState) ElementType ¶
func (GroupState) ElementType() reflect.Type
type SamplingRule ¶
type SamplingRule struct { pulumi.CustomResourceState // The ARN of the sampling rule. Arn pulumi.StringOutput `pulumi:"arn"` // Matches attributes derived from the request. Attributes pulumi.StringMapOutput `pulumi:"attributes"` // The percentage of matching requests to instrument, after the reservoir is exhausted. FixedRate pulumi.Float64Output `pulumi:"fixedRate"` // Matches the hostname from a request URL. Host pulumi.StringOutput `pulumi:"host"` // Matches the HTTP method of a request. HttpMethod pulumi.StringOutput `pulumi:"httpMethod"` // The priority of the sampling rule. Priority pulumi.IntOutput `pulumi:"priority"` // A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. ReservoirSize pulumi.IntOutput `pulumi:"reservoirSize"` // Matches the ARN of the AWS resource on which the service runs. ResourceArn pulumi.StringOutput `pulumi:"resourceArn"` // The name of the sampling rule. RuleName pulumi.StringPtrOutput `pulumi:"ruleName"` // Matches the `name` that the service uses to identify itself in segments. ServiceName pulumi.StringOutput `pulumi:"serviceName"` // Matches the `origin` that the service uses to identify its type in segments. ServiceType pulumi.StringOutput `pulumi:"serviceType"` // Key-value mapping of resource tags. 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. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` // Matches the path from a request URL. UrlPath pulumi.StringOutput `pulumi:"urlPath"` // The version of the sampling rule format (`1` ) Version pulumi.IntOutput `pulumi:"version"` }
Creates and manages an AWS XRay Sampling Rule.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/xray" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := xray.NewSamplingRule(ctx, "example", &xray.SamplingRuleArgs{ Attributes: pulumi.StringMap{ "Hello": pulumi.String("Tris"), }, FixedRate: pulumi.Float64(0.05), Host: pulumi.String("*"), HttpMethod: pulumi.String("*"), Priority: pulumi.Int(10000), ReservoirSize: pulumi.Int(1), ResourceArn: pulumi.String("*"), RuleName: pulumi.String("example"), ServiceName: pulumi.String("*"), ServiceType: pulumi.String("*"), UrlPath: pulumi.String("*"), Version: pulumi.Int(1), }) if err != nil { return err } return nil }) }
```
## Import
XRay Sampling Rules can be imported using the name, e.g.
```sh
$ pulumi import aws:xray/samplingRule:SamplingRule example example
```
func GetSamplingRule ¶
func GetSamplingRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SamplingRuleState, opts ...pulumi.ResourceOption) (*SamplingRule, error)
GetSamplingRule gets an existing SamplingRule 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 NewSamplingRule ¶
func NewSamplingRule(ctx *pulumi.Context, name string, args *SamplingRuleArgs, opts ...pulumi.ResourceOption) (*SamplingRule, error)
NewSamplingRule registers a new resource with the given unique name, arguments, and options.
func (*SamplingRule) ElementType ¶
func (*SamplingRule) ElementType() reflect.Type
func (*SamplingRule) ToSamplingRuleOutput ¶
func (i *SamplingRule) ToSamplingRuleOutput() SamplingRuleOutput
func (*SamplingRule) ToSamplingRuleOutputWithContext ¶
func (i *SamplingRule) ToSamplingRuleOutputWithContext(ctx context.Context) SamplingRuleOutput
func (*SamplingRule) ToSamplingRulePtrOutput ¶
func (i *SamplingRule) ToSamplingRulePtrOutput() SamplingRulePtrOutput
func (*SamplingRule) ToSamplingRulePtrOutputWithContext ¶
func (i *SamplingRule) ToSamplingRulePtrOutputWithContext(ctx context.Context) SamplingRulePtrOutput
type SamplingRuleArgs ¶
type SamplingRuleArgs struct { // Matches attributes derived from the request. Attributes pulumi.StringMapInput // The percentage of matching requests to instrument, after the reservoir is exhausted. FixedRate pulumi.Float64Input // Matches the hostname from a request URL. Host pulumi.StringInput // Matches the HTTP method of a request. HttpMethod pulumi.StringInput // The priority of the sampling rule. Priority pulumi.IntInput // A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. ReservoirSize pulumi.IntInput // Matches the ARN of the AWS resource on which the service runs. ResourceArn pulumi.StringInput // The name of the sampling rule. RuleName pulumi.StringPtrInput // Matches the `name` that the service uses to identify itself in segments. ServiceName pulumi.StringInput // Matches the `origin` that the service uses to identify its type in segments. ServiceType pulumi.StringInput // Key-value mapping of resource tags. 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. TagsAll pulumi.StringMapInput // Matches the path from a request URL. UrlPath pulumi.StringInput // The version of the sampling rule format (`1` ) Version pulumi.IntInput }
The set of arguments for constructing a SamplingRule resource.
func (SamplingRuleArgs) ElementType ¶
func (SamplingRuleArgs) ElementType() reflect.Type
type SamplingRuleArray ¶
type SamplingRuleArray []SamplingRuleInput
func (SamplingRuleArray) ElementType ¶
func (SamplingRuleArray) ElementType() reflect.Type
func (SamplingRuleArray) ToSamplingRuleArrayOutput ¶
func (i SamplingRuleArray) ToSamplingRuleArrayOutput() SamplingRuleArrayOutput
func (SamplingRuleArray) ToSamplingRuleArrayOutputWithContext ¶
func (i SamplingRuleArray) ToSamplingRuleArrayOutputWithContext(ctx context.Context) SamplingRuleArrayOutput
type SamplingRuleArrayInput ¶
type SamplingRuleArrayInput interface { pulumi.Input ToSamplingRuleArrayOutput() SamplingRuleArrayOutput ToSamplingRuleArrayOutputWithContext(context.Context) SamplingRuleArrayOutput }
SamplingRuleArrayInput is an input type that accepts SamplingRuleArray and SamplingRuleArrayOutput values. You can construct a concrete instance of `SamplingRuleArrayInput` via:
SamplingRuleArray{ SamplingRuleArgs{...} }
type SamplingRuleArrayOutput ¶
type SamplingRuleArrayOutput struct{ *pulumi.OutputState }
func (SamplingRuleArrayOutput) ElementType ¶
func (SamplingRuleArrayOutput) ElementType() reflect.Type
func (SamplingRuleArrayOutput) Index ¶
func (o SamplingRuleArrayOutput) Index(i pulumi.IntInput) SamplingRuleOutput
func (SamplingRuleArrayOutput) ToSamplingRuleArrayOutput ¶
func (o SamplingRuleArrayOutput) ToSamplingRuleArrayOutput() SamplingRuleArrayOutput
func (SamplingRuleArrayOutput) ToSamplingRuleArrayOutputWithContext ¶
func (o SamplingRuleArrayOutput) ToSamplingRuleArrayOutputWithContext(ctx context.Context) SamplingRuleArrayOutput
type SamplingRuleInput ¶
type SamplingRuleInput interface { pulumi.Input ToSamplingRuleOutput() SamplingRuleOutput ToSamplingRuleOutputWithContext(ctx context.Context) SamplingRuleOutput }
type SamplingRuleMap ¶
type SamplingRuleMap map[string]SamplingRuleInput
func (SamplingRuleMap) ElementType ¶
func (SamplingRuleMap) ElementType() reflect.Type
func (SamplingRuleMap) ToSamplingRuleMapOutput ¶
func (i SamplingRuleMap) ToSamplingRuleMapOutput() SamplingRuleMapOutput
func (SamplingRuleMap) ToSamplingRuleMapOutputWithContext ¶
func (i SamplingRuleMap) ToSamplingRuleMapOutputWithContext(ctx context.Context) SamplingRuleMapOutput
type SamplingRuleMapInput ¶
type SamplingRuleMapInput interface { pulumi.Input ToSamplingRuleMapOutput() SamplingRuleMapOutput ToSamplingRuleMapOutputWithContext(context.Context) SamplingRuleMapOutput }
SamplingRuleMapInput is an input type that accepts SamplingRuleMap and SamplingRuleMapOutput values. You can construct a concrete instance of `SamplingRuleMapInput` via:
SamplingRuleMap{ "key": SamplingRuleArgs{...} }
type SamplingRuleMapOutput ¶
type SamplingRuleMapOutput struct{ *pulumi.OutputState }
func (SamplingRuleMapOutput) ElementType ¶
func (SamplingRuleMapOutput) ElementType() reflect.Type
func (SamplingRuleMapOutput) MapIndex ¶
func (o SamplingRuleMapOutput) MapIndex(k pulumi.StringInput) SamplingRuleOutput
func (SamplingRuleMapOutput) ToSamplingRuleMapOutput ¶
func (o SamplingRuleMapOutput) ToSamplingRuleMapOutput() SamplingRuleMapOutput
func (SamplingRuleMapOutput) ToSamplingRuleMapOutputWithContext ¶
func (o SamplingRuleMapOutput) ToSamplingRuleMapOutputWithContext(ctx context.Context) SamplingRuleMapOutput
type SamplingRuleOutput ¶
type SamplingRuleOutput struct{ *pulumi.OutputState }
func (SamplingRuleOutput) ElementType ¶
func (SamplingRuleOutput) ElementType() reflect.Type
func (SamplingRuleOutput) ToSamplingRuleOutput ¶
func (o SamplingRuleOutput) ToSamplingRuleOutput() SamplingRuleOutput
func (SamplingRuleOutput) ToSamplingRuleOutputWithContext ¶
func (o SamplingRuleOutput) ToSamplingRuleOutputWithContext(ctx context.Context) SamplingRuleOutput
func (SamplingRuleOutput) ToSamplingRulePtrOutput ¶
func (o SamplingRuleOutput) ToSamplingRulePtrOutput() SamplingRulePtrOutput
func (SamplingRuleOutput) ToSamplingRulePtrOutputWithContext ¶
func (o SamplingRuleOutput) ToSamplingRulePtrOutputWithContext(ctx context.Context) SamplingRulePtrOutput
type SamplingRulePtrInput ¶
type SamplingRulePtrInput interface { pulumi.Input ToSamplingRulePtrOutput() SamplingRulePtrOutput ToSamplingRulePtrOutputWithContext(ctx context.Context) SamplingRulePtrOutput }
type SamplingRulePtrOutput ¶
type SamplingRulePtrOutput struct{ *pulumi.OutputState }
func (SamplingRulePtrOutput) Elem ¶ added in v4.15.0
func (o SamplingRulePtrOutput) Elem() SamplingRuleOutput
func (SamplingRulePtrOutput) ElementType ¶
func (SamplingRulePtrOutput) ElementType() reflect.Type
func (SamplingRulePtrOutput) ToSamplingRulePtrOutput ¶
func (o SamplingRulePtrOutput) ToSamplingRulePtrOutput() SamplingRulePtrOutput
func (SamplingRulePtrOutput) ToSamplingRulePtrOutputWithContext ¶
func (o SamplingRulePtrOutput) ToSamplingRulePtrOutputWithContext(ctx context.Context) SamplingRulePtrOutput
type SamplingRuleState ¶
type SamplingRuleState struct { // The ARN of the sampling rule. Arn pulumi.StringPtrInput // Matches attributes derived from the request. Attributes pulumi.StringMapInput // The percentage of matching requests to instrument, after the reservoir is exhausted. FixedRate pulumi.Float64PtrInput // Matches the hostname from a request URL. Host pulumi.StringPtrInput // Matches the HTTP method of a request. HttpMethod pulumi.StringPtrInput // The priority of the sampling rule. Priority pulumi.IntPtrInput // A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively. ReservoirSize pulumi.IntPtrInput // Matches the ARN of the AWS resource on which the service runs. ResourceArn pulumi.StringPtrInput // The name of the sampling rule. RuleName pulumi.StringPtrInput // Matches the `name` that the service uses to identify itself in segments. ServiceName pulumi.StringPtrInput // Matches the `origin` that the service uses to identify its type in segments. ServiceType pulumi.StringPtrInput // Key-value mapping of resource tags. 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. TagsAll pulumi.StringMapInput // Matches the path from a request URL. UrlPath pulumi.StringPtrInput // The version of the sampling rule format (`1` ) Version pulumi.IntPtrInput }
func (SamplingRuleState) ElementType ¶
func (SamplingRuleState) ElementType() reflect.Type