Documentation
¶
Index ¶
- type GetViewsArgs
- type GetViewsBillingView
- type GetViewsBillingViewArgs
- type GetViewsBillingViewArray
- type GetViewsBillingViewArrayInput
- type GetViewsBillingViewArrayOutput
- func (GetViewsBillingViewArrayOutput) ElementType() reflect.Type
- func (o GetViewsBillingViewArrayOutput) Index(i pulumi.IntInput) GetViewsBillingViewOutput
- func (o GetViewsBillingViewArrayOutput) ToGetViewsBillingViewArrayOutput() GetViewsBillingViewArrayOutput
- func (o GetViewsBillingViewArrayOutput) ToGetViewsBillingViewArrayOutputWithContext(ctx context.Context) GetViewsBillingViewArrayOutput
- type GetViewsBillingViewInput
- type GetViewsBillingViewOutput
- func (o GetViewsBillingViewOutput) Arn() pulumi.StringOutput
- func (o GetViewsBillingViewOutput) BillingViewType() pulumi.StringOutput
- func (o GetViewsBillingViewOutput) Description() pulumi.StringOutput
- func (GetViewsBillingViewOutput) ElementType() reflect.Type
- func (o GetViewsBillingViewOutput) Name() pulumi.StringOutput
- func (o GetViewsBillingViewOutput) OwnerAccountId() pulumi.StringOutput
- func (o GetViewsBillingViewOutput) ToGetViewsBillingViewOutput() GetViewsBillingViewOutput
- func (o GetViewsBillingViewOutput) ToGetViewsBillingViewOutputWithContext(ctx context.Context) GetViewsBillingViewOutput
- type GetViewsOutputArgs
- type GetViewsResult
- type GetViewsResultOutput
- func (o GetViewsResultOutput) BillingViewTypes() pulumi.StringArrayOutput
- func (o GetViewsResultOutput) BillingViews() GetViewsBillingViewArrayOutput
- func (GetViewsResultOutput) ElementType() reflect.Type
- func (o GetViewsResultOutput) Id() pulumi.StringOutput
- func (o GetViewsResultOutput) ToGetViewsResultOutput() GetViewsResultOutput
- func (o GetViewsResultOutput) ToGetViewsResultOutputWithContext(ctx context.Context) GetViewsResultOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetViewsArgs ¶
type GetViewsArgs struct {
// List of billing view types to retrieve. Valid values are `PRIMARY`, `BILLING_GROUP`, `CUSTOM`.
BillingViewTypes []string `pulumi:"billingViewTypes"`
}
A collection of arguments for invoking getViews.
type GetViewsBillingView ¶
type GetViewsBillingView struct {
// ARN of the billing view.
Arn string `pulumi:"arn"`
BillingViewType string `pulumi:"billingViewType"`
// Description of the billing view.
Description string `pulumi:"description"`
// Name of the billing view.
Name string `pulumi:"name"`
// Account ID of the billing view owner.
OwnerAccountId string `pulumi:"ownerAccountId"`
}
type GetViewsBillingViewArgs ¶
type GetViewsBillingViewArgs struct {
// ARN of the billing view.
Arn pulumi.StringInput `pulumi:"arn"`
BillingViewType pulumi.StringInput `pulumi:"billingViewType"`
// Description of the billing view.
Description pulumi.StringInput `pulumi:"description"`
// Name of the billing view.
Name pulumi.StringInput `pulumi:"name"`
// Account ID of the billing view owner.
OwnerAccountId pulumi.StringInput `pulumi:"ownerAccountId"`
}
func (GetViewsBillingViewArgs) ElementType ¶
func (GetViewsBillingViewArgs) ElementType() reflect.Type
func (GetViewsBillingViewArgs) ToGetViewsBillingViewOutput ¶
func (i GetViewsBillingViewArgs) ToGetViewsBillingViewOutput() GetViewsBillingViewOutput
func (GetViewsBillingViewArgs) ToGetViewsBillingViewOutputWithContext ¶
func (i GetViewsBillingViewArgs) ToGetViewsBillingViewOutputWithContext(ctx context.Context) GetViewsBillingViewOutput
type GetViewsBillingViewArray ¶
type GetViewsBillingViewArray []GetViewsBillingViewInput
func (GetViewsBillingViewArray) ElementType ¶
func (GetViewsBillingViewArray) ElementType() reflect.Type
func (GetViewsBillingViewArray) ToGetViewsBillingViewArrayOutput ¶
func (i GetViewsBillingViewArray) ToGetViewsBillingViewArrayOutput() GetViewsBillingViewArrayOutput
func (GetViewsBillingViewArray) ToGetViewsBillingViewArrayOutputWithContext ¶
func (i GetViewsBillingViewArray) ToGetViewsBillingViewArrayOutputWithContext(ctx context.Context) GetViewsBillingViewArrayOutput
type GetViewsBillingViewArrayInput ¶
type GetViewsBillingViewArrayInput interface {
pulumi.Input
ToGetViewsBillingViewArrayOutput() GetViewsBillingViewArrayOutput
ToGetViewsBillingViewArrayOutputWithContext(context.Context) GetViewsBillingViewArrayOutput
}
GetViewsBillingViewArrayInput is an input type that accepts GetViewsBillingViewArray and GetViewsBillingViewArrayOutput values. You can construct a concrete instance of `GetViewsBillingViewArrayInput` via:
GetViewsBillingViewArray{ GetViewsBillingViewArgs{...} }
type GetViewsBillingViewArrayOutput ¶
type GetViewsBillingViewArrayOutput struct{ *pulumi.OutputState }
func (GetViewsBillingViewArrayOutput) ElementType ¶
func (GetViewsBillingViewArrayOutput) ElementType() reflect.Type
func (GetViewsBillingViewArrayOutput) Index ¶
func (o GetViewsBillingViewArrayOutput) Index(i pulumi.IntInput) GetViewsBillingViewOutput
func (GetViewsBillingViewArrayOutput) ToGetViewsBillingViewArrayOutput ¶
func (o GetViewsBillingViewArrayOutput) ToGetViewsBillingViewArrayOutput() GetViewsBillingViewArrayOutput
func (GetViewsBillingViewArrayOutput) ToGetViewsBillingViewArrayOutputWithContext ¶
func (o GetViewsBillingViewArrayOutput) ToGetViewsBillingViewArrayOutputWithContext(ctx context.Context) GetViewsBillingViewArrayOutput
type GetViewsBillingViewInput ¶
type GetViewsBillingViewInput interface {
pulumi.Input
ToGetViewsBillingViewOutput() GetViewsBillingViewOutput
ToGetViewsBillingViewOutputWithContext(context.Context) GetViewsBillingViewOutput
}
GetViewsBillingViewInput is an input type that accepts GetViewsBillingViewArgs and GetViewsBillingViewOutput values. You can construct a concrete instance of `GetViewsBillingViewInput` via:
GetViewsBillingViewArgs{...}
type GetViewsBillingViewOutput ¶
type GetViewsBillingViewOutput struct{ *pulumi.OutputState }
func (GetViewsBillingViewOutput) Arn ¶
func (o GetViewsBillingViewOutput) Arn() pulumi.StringOutput
ARN of the billing view.
func (GetViewsBillingViewOutput) BillingViewType ¶
func (o GetViewsBillingViewOutput) BillingViewType() pulumi.StringOutput
func (GetViewsBillingViewOutput) Description ¶
func (o GetViewsBillingViewOutput) Description() pulumi.StringOutput
Description of the billing view.
func (GetViewsBillingViewOutput) ElementType ¶
func (GetViewsBillingViewOutput) ElementType() reflect.Type
func (GetViewsBillingViewOutput) Name ¶
func (o GetViewsBillingViewOutput) Name() pulumi.StringOutput
Name of the billing view.
func (GetViewsBillingViewOutput) OwnerAccountId ¶
func (o GetViewsBillingViewOutput) OwnerAccountId() pulumi.StringOutput
Account ID of the billing view owner.
func (GetViewsBillingViewOutput) ToGetViewsBillingViewOutput ¶
func (o GetViewsBillingViewOutput) ToGetViewsBillingViewOutput() GetViewsBillingViewOutput
func (GetViewsBillingViewOutput) ToGetViewsBillingViewOutputWithContext ¶
func (o GetViewsBillingViewOutput) ToGetViewsBillingViewOutputWithContext(ctx context.Context) GetViewsBillingViewOutput
type GetViewsOutputArgs ¶
type GetViewsOutputArgs struct {
// List of billing view types to retrieve. Valid values are `PRIMARY`, `BILLING_GROUP`, `CUSTOM`.
BillingViewTypes pulumi.StringArrayInput `pulumi:"billingViewTypes"`
}
A collection of arguments for invoking getViews.
func (GetViewsOutputArgs) ElementType ¶
func (GetViewsOutputArgs) ElementType() reflect.Type
type GetViewsResult ¶
type GetViewsResult struct {
BillingViewTypes []string `pulumi:"billingViewTypes"`
// List of billing view objects with the following attributes:
BillingViews []GetViewsBillingView `pulumi:"billingViews"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
}
A collection of values returned by getViews.
func GetViews ¶
func GetViews(ctx *pulumi.Context, args *GetViewsArgs, opts ...pulumi.InvokeOption) (*GetViewsResult, error)
Provides details about an AWS Billing Views.
## Example Usage
### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/billing" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := billing.GetViews(ctx, &billing.GetViewsArgs{
BillingViewTypes: []string{
"PRIMARY",
},
}, nil)
if err != nil {
return err
}
ctx.Export("primaryViewArnByTypes", example.BillingViews[0].Arn)
return nil
})
}
```
type GetViewsResultOutput ¶
type GetViewsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getViews.
func GetViewsOutput ¶
func GetViewsOutput(ctx *pulumi.Context, args GetViewsOutputArgs, opts ...pulumi.InvokeOption) GetViewsResultOutput
func (GetViewsResultOutput) BillingViewTypes ¶
func (o GetViewsResultOutput) BillingViewTypes() pulumi.StringArrayOutput
func (GetViewsResultOutput) BillingViews ¶
func (o GetViewsResultOutput) BillingViews() GetViewsBillingViewArrayOutput
List of billing view objects with the following attributes:
func (GetViewsResultOutput) ElementType ¶
func (GetViewsResultOutput) ElementType() reflect.Type
func (GetViewsResultOutput) Id ¶
func (o GetViewsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetViewsResultOutput) ToGetViewsResultOutput ¶
func (o GetViewsResultOutput) ToGetViewsResultOutput() GetViewsResultOutput
func (GetViewsResultOutput) ToGetViewsResultOutputWithContext ¶
func (o GetViewsResultOutput) ToGetViewsResultOutputWithContext(ctx context.Context) GetViewsResultOutput