Documentation
¶
Index ¶
- type ChannelAssociation
- type ChannelAssociationArgs
- type ChannelAssociationArray
- type ChannelAssociationArrayInput
- type ChannelAssociationArrayOutput
- func (ChannelAssociationArrayOutput) ElementType() reflect.Type
- func (o ChannelAssociationArrayOutput) Index(i pulumi.IntInput) ChannelAssociationOutput
- func (o ChannelAssociationArrayOutput) ToChannelAssociationArrayOutput() ChannelAssociationArrayOutput
- func (o ChannelAssociationArrayOutput) ToChannelAssociationArrayOutputWithContext(ctx context.Context) ChannelAssociationArrayOutput
- type ChannelAssociationInput
- type ChannelAssociationMap
- type ChannelAssociationMapInput
- type ChannelAssociationMapOutput
- func (ChannelAssociationMapOutput) ElementType() reflect.Type
- func (o ChannelAssociationMapOutput) MapIndex(k pulumi.StringInput) ChannelAssociationOutput
- func (o ChannelAssociationMapOutput) ToChannelAssociationMapOutput() ChannelAssociationMapOutput
- func (o ChannelAssociationMapOutput) ToChannelAssociationMapOutputWithContext(ctx context.Context) ChannelAssociationMapOutput
- type ChannelAssociationOutput
- func (o ChannelAssociationOutput) Arn() pulumi.StringOutput
- func (ChannelAssociationOutput) ElementType() reflect.Type
- func (o ChannelAssociationOutput) NotificationConfigurationArn() pulumi.StringOutput
- func (o ChannelAssociationOutput) ToChannelAssociationOutput() ChannelAssociationOutput
- func (o ChannelAssociationOutput) ToChannelAssociationOutputWithContext(ctx context.Context) ChannelAssociationOutput
- type ChannelAssociationState
- type ContactsEmailContact
- type ContactsEmailContactArgs
- type ContactsEmailContactArray
- type ContactsEmailContactArrayInput
- type ContactsEmailContactArrayOutput
- func (ContactsEmailContactArrayOutput) ElementType() reflect.Type
- func (o ContactsEmailContactArrayOutput) Index(i pulumi.IntInput) ContactsEmailContactOutput
- func (o ContactsEmailContactArrayOutput) ToContactsEmailContactArrayOutput() ContactsEmailContactArrayOutput
- func (o ContactsEmailContactArrayOutput) ToContactsEmailContactArrayOutputWithContext(ctx context.Context) ContactsEmailContactArrayOutput
- type ContactsEmailContactInput
- type ContactsEmailContactMap
- type ContactsEmailContactMapInput
- type ContactsEmailContactMapOutput
- func (ContactsEmailContactMapOutput) ElementType() reflect.Type
- func (o ContactsEmailContactMapOutput) MapIndex(k pulumi.StringInput) ContactsEmailContactOutput
- func (o ContactsEmailContactMapOutput) ToContactsEmailContactMapOutput() ContactsEmailContactMapOutput
- func (o ContactsEmailContactMapOutput) ToContactsEmailContactMapOutputWithContext(ctx context.Context) ContactsEmailContactMapOutput
- type ContactsEmailContactOutput
- func (o ContactsEmailContactOutput) Arn() pulumi.StringOutput
- func (ContactsEmailContactOutput) ElementType() reflect.Type
- func (o ContactsEmailContactOutput) EmailAddress() pulumi.StringOutput
- func (o ContactsEmailContactOutput) Name() pulumi.StringOutput
- func (o ContactsEmailContactOutput) Tags() pulumi.StringMapOutput
- func (o ContactsEmailContactOutput) TagsAll() pulumi.StringMapOutput
- func (o ContactsEmailContactOutput) ToContactsEmailContactOutput() ContactsEmailContactOutput
- func (o ContactsEmailContactOutput) ToContactsEmailContactOutputWithContext(ctx context.Context) ContactsEmailContactOutput
- type ContactsEmailContactState
- type EventRule
- type EventRuleArgs
- type EventRuleArray
- type EventRuleArrayInput
- type EventRuleArrayOutput
- func (EventRuleArrayOutput) ElementType() reflect.Type
- func (o EventRuleArrayOutput) Index(i pulumi.IntInput) EventRuleOutput
- func (o EventRuleArrayOutput) ToEventRuleArrayOutput() EventRuleArrayOutput
- func (o EventRuleArrayOutput) ToEventRuleArrayOutputWithContext(ctx context.Context) EventRuleArrayOutput
- type EventRuleInput
- type EventRuleMap
- type EventRuleMapInput
- type EventRuleMapOutput
- type EventRuleOutput
- func (o EventRuleOutput) Arn() pulumi.StringOutput
- func (EventRuleOutput) ElementType() reflect.Type
- func (o EventRuleOutput) EventPattern() pulumi.StringPtrOutput
- func (o EventRuleOutput) EventType() pulumi.StringOutput
- func (o EventRuleOutput) NotificationConfigurationArn() pulumi.StringOutput
- func (o EventRuleOutput) Regions() pulumi.StringArrayOutput
- func (o EventRuleOutput) Source() pulumi.StringOutput
- func (o EventRuleOutput) ToEventRuleOutput() EventRuleOutput
- func (o EventRuleOutput) ToEventRuleOutputWithContext(ctx context.Context) EventRuleOutput
- type EventRuleState
- type NotificationConfiguration
- type NotificationConfigurationArgs
- type NotificationConfigurationArray
- func (NotificationConfigurationArray) ElementType() reflect.Type
- func (i NotificationConfigurationArray) ToNotificationConfigurationArrayOutput() NotificationConfigurationArrayOutput
- func (i NotificationConfigurationArray) ToNotificationConfigurationArrayOutputWithContext(ctx context.Context) NotificationConfigurationArrayOutput
- type NotificationConfigurationArrayInput
- type NotificationConfigurationArrayOutput
- func (NotificationConfigurationArrayOutput) ElementType() reflect.Type
- func (o NotificationConfigurationArrayOutput) Index(i pulumi.IntInput) NotificationConfigurationOutput
- func (o NotificationConfigurationArrayOutput) ToNotificationConfigurationArrayOutput() NotificationConfigurationArrayOutput
- func (o NotificationConfigurationArrayOutput) ToNotificationConfigurationArrayOutputWithContext(ctx context.Context) NotificationConfigurationArrayOutput
- type NotificationConfigurationInput
- type NotificationConfigurationMap
- func (NotificationConfigurationMap) ElementType() reflect.Type
- func (i NotificationConfigurationMap) ToNotificationConfigurationMapOutput() NotificationConfigurationMapOutput
- func (i NotificationConfigurationMap) ToNotificationConfigurationMapOutputWithContext(ctx context.Context) NotificationConfigurationMapOutput
- type NotificationConfigurationMapInput
- type NotificationConfigurationMapOutput
- func (NotificationConfigurationMapOutput) ElementType() reflect.Type
- func (o NotificationConfigurationMapOutput) MapIndex(k pulumi.StringInput) NotificationConfigurationOutput
- func (o NotificationConfigurationMapOutput) ToNotificationConfigurationMapOutput() NotificationConfigurationMapOutput
- func (o NotificationConfigurationMapOutput) ToNotificationConfigurationMapOutputWithContext(ctx context.Context) NotificationConfigurationMapOutput
- type NotificationConfigurationOutput
- func (o NotificationConfigurationOutput) AggregationDuration() pulumi.StringOutput
- func (o NotificationConfigurationOutput) Arn() pulumi.StringOutput
- func (o NotificationConfigurationOutput) Description() pulumi.StringOutput
- func (NotificationConfigurationOutput) ElementType() reflect.Type
- func (o NotificationConfigurationOutput) Name() pulumi.StringOutput
- func (o NotificationConfigurationOutput) Tags() pulumi.StringMapOutput
- func (o NotificationConfigurationOutput) TagsAll() pulumi.StringMapOutput
- func (o NotificationConfigurationOutput) ToNotificationConfigurationOutput() NotificationConfigurationOutput
- func (o NotificationConfigurationOutput) ToNotificationConfigurationOutputWithContext(ctx context.Context) NotificationConfigurationOutput
- type NotificationConfigurationState
- type NotificationHub
- type NotificationHubArgs
- type NotificationHubArray
- type NotificationHubArrayInput
- type NotificationHubArrayOutput
- func (NotificationHubArrayOutput) ElementType() reflect.Type
- func (o NotificationHubArrayOutput) Index(i pulumi.IntInput) NotificationHubOutput
- func (o NotificationHubArrayOutput) ToNotificationHubArrayOutput() NotificationHubArrayOutput
- func (o NotificationHubArrayOutput) ToNotificationHubArrayOutputWithContext(ctx context.Context) NotificationHubArrayOutput
- type NotificationHubInput
- type NotificationHubMap
- type NotificationHubMapInput
- type NotificationHubMapOutput
- func (NotificationHubMapOutput) ElementType() reflect.Type
- func (o NotificationHubMapOutput) MapIndex(k pulumi.StringInput) NotificationHubOutput
- func (o NotificationHubMapOutput) ToNotificationHubMapOutput() NotificationHubMapOutput
- func (o NotificationHubMapOutput) ToNotificationHubMapOutputWithContext(ctx context.Context) NotificationHubMapOutput
- type NotificationHubOutput
- func (NotificationHubOutput) ElementType() reflect.Type
- func (o NotificationHubOutput) NotificationHubRegion() pulumi.StringOutput
- func (o NotificationHubOutput) Timeouts() NotificationHubTimeoutsPtrOutput
- func (o NotificationHubOutput) ToNotificationHubOutput() NotificationHubOutput
- func (o NotificationHubOutput) ToNotificationHubOutputWithContext(ctx context.Context) NotificationHubOutput
- type NotificationHubState
- type NotificationHubTimeouts
- type NotificationHubTimeoutsArgs
- func (NotificationHubTimeoutsArgs) ElementType() reflect.Type
- func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsOutput() NotificationHubTimeoutsOutput
- func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsOutputWithContext(ctx context.Context) NotificationHubTimeoutsOutput
- func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsPtrOutput() NotificationHubTimeoutsPtrOutput
- func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsPtrOutputWithContext(ctx context.Context) NotificationHubTimeoutsPtrOutput
- type NotificationHubTimeoutsInput
- type NotificationHubTimeoutsOutput
- func (o NotificationHubTimeoutsOutput) Create() pulumi.StringPtrOutput
- func (o NotificationHubTimeoutsOutput) Delete() pulumi.StringPtrOutput
- func (NotificationHubTimeoutsOutput) ElementType() reflect.Type
- func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsOutput() NotificationHubTimeoutsOutput
- func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsOutputWithContext(ctx context.Context) NotificationHubTimeoutsOutput
- func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsPtrOutput() NotificationHubTimeoutsPtrOutput
- func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsPtrOutputWithContext(ctx context.Context) NotificationHubTimeoutsPtrOutput
- type NotificationHubTimeoutsPtrInput
- type NotificationHubTimeoutsPtrOutput
- func (o NotificationHubTimeoutsPtrOutput) Create() pulumi.StringPtrOutput
- func (o NotificationHubTimeoutsPtrOutput) Delete() pulumi.StringPtrOutput
- func (o NotificationHubTimeoutsPtrOutput) Elem() NotificationHubTimeoutsOutput
- func (NotificationHubTimeoutsPtrOutput) ElementType() reflect.Type
- func (o NotificationHubTimeoutsPtrOutput) ToNotificationHubTimeoutsPtrOutput() NotificationHubTimeoutsPtrOutput
- func (o NotificationHubTimeoutsPtrOutput) ToNotificationHubTimeoutsPtrOutputWithContext(ctx context.Context) NotificationHubTimeoutsPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelAssociation ¶
type ChannelAssociation struct {
pulumi.CustomResourceState
// ARN of the channel to associate with the notification configuration. This can be an email contact ARN.
Arn pulumi.StringOutput `pulumi:"arn"`
// ARN of the notification configuration to associate the channel with.
NotificationConfigurationArn pulumi.StringOutput `pulumi:"notificationConfigurationArn"`
}
Resource for managing an AWS User Notifications Channel Association. This resource associates a channel (such as an email contact) with a notification configuration.
## Example Usage
### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/notifications" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := notifications.NewNotificationConfiguration(ctx, "example", ¬ifications.NotificationConfigurationArgs{
Name: pulumi.String("example-notification-config"),
Description: pulumi.String("Example notification configuration"),
})
if err != nil {
return err
}
exampleContactsEmailContact, err := notifications.NewContactsEmailContact(ctx, "example", ¬ifications.ContactsEmailContactArgs{
Name: pulumi.String("example-contact"),
EmailAddress: pulumi.String("example@example.com"),
})
if err != nil {
return err
}
_, err = notifications.NewChannelAssociation(ctx, "example", ¬ifications.ChannelAssociationArgs{
Arn: exampleContactsEmailContact.Arn,
NotificationConfigurationArn: example.Arn,
})
if err != nil {
return err
}
return nil
})
}
```
## Import
Using `pulumi import`, import User Notifications Channel Association using the `notification_configuration_arn,channel_arn` format. For example:
```sh $ pulumi import aws:notifications/channelAssociation:ChannelAssociation example arn:aws:notifications:us-west-2:123456789012:configuration:example-notification-config,arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact ```
func GetChannelAssociation ¶
func GetChannelAssociation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ChannelAssociationState, opts ...pulumi.ResourceOption) (*ChannelAssociation, error)
GetChannelAssociation gets an existing ChannelAssociation 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 NewChannelAssociation ¶
func NewChannelAssociation(ctx *pulumi.Context, name string, args *ChannelAssociationArgs, opts ...pulumi.ResourceOption) (*ChannelAssociation, error)
NewChannelAssociation registers a new resource with the given unique name, arguments, and options.
func (*ChannelAssociation) ElementType ¶
func (*ChannelAssociation) ElementType() reflect.Type
func (*ChannelAssociation) ToChannelAssociationOutput ¶
func (i *ChannelAssociation) ToChannelAssociationOutput() ChannelAssociationOutput
func (*ChannelAssociation) ToChannelAssociationOutputWithContext ¶
func (i *ChannelAssociation) ToChannelAssociationOutputWithContext(ctx context.Context) ChannelAssociationOutput
type ChannelAssociationArgs ¶
type ChannelAssociationArgs struct {
// ARN of the channel to associate with the notification configuration. This can be an email contact ARN.
Arn pulumi.StringInput
// ARN of the notification configuration to associate the channel with.
NotificationConfigurationArn pulumi.StringInput
}
The set of arguments for constructing a ChannelAssociation resource.
func (ChannelAssociationArgs) ElementType ¶
func (ChannelAssociationArgs) ElementType() reflect.Type
type ChannelAssociationArray ¶
type ChannelAssociationArray []ChannelAssociationInput
func (ChannelAssociationArray) ElementType ¶
func (ChannelAssociationArray) ElementType() reflect.Type
func (ChannelAssociationArray) ToChannelAssociationArrayOutput ¶
func (i ChannelAssociationArray) ToChannelAssociationArrayOutput() ChannelAssociationArrayOutput
func (ChannelAssociationArray) ToChannelAssociationArrayOutputWithContext ¶
func (i ChannelAssociationArray) ToChannelAssociationArrayOutputWithContext(ctx context.Context) ChannelAssociationArrayOutput
type ChannelAssociationArrayInput ¶
type ChannelAssociationArrayInput interface {
pulumi.Input
ToChannelAssociationArrayOutput() ChannelAssociationArrayOutput
ToChannelAssociationArrayOutputWithContext(context.Context) ChannelAssociationArrayOutput
}
ChannelAssociationArrayInput is an input type that accepts ChannelAssociationArray and ChannelAssociationArrayOutput values. You can construct a concrete instance of `ChannelAssociationArrayInput` via:
ChannelAssociationArray{ ChannelAssociationArgs{...} }
type ChannelAssociationArrayOutput ¶
type ChannelAssociationArrayOutput struct{ *pulumi.OutputState }
func (ChannelAssociationArrayOutput) ElementType ¶
func (ChannelAssociationArrayOutput) ElementType() reflect.Type
func (ChannelAssociationArrayOutput) Index ¶
func (o ChannelAssociationArrayOutput) Index(i pulumi.IntInput) ChannelAssociationOutput
func (ChannelAssociationArrayOutput) ToChannelAssociationArrayOutput ¶
func (o ChannelAssociationArrayOutput) ToChannelAssociationArrayOutput() ChannelAssociationArrayOutput
func (ChannelAssociationArrayOutput) ToChannelAssociationArrayOutputWithContext ¶
func (o ChannelAssociationArrayOutput) ToChannelAssociationArrayOutputWithContext(ctx context.Context) ChannelAssociationArrayOutput
type ChannelAssociationInput ¶
type ChannelAssociationInput interface {
pulumi.Input
ToChannelAssociationOutput() ChannelAssociationOutput
ToChannelAssociationOutputWithContext(ctx context.Context) ChannelAssociationOutput
}
type ChannelAssociationMap ¶
type ChannelAssociationMap map[string]ChannelAssociationInput
func (ChannelAssociationMap) ElementType ¶
func (ChannelAssociationMap) ElementType() reflect.Type
func (ChannelAssociationMap) ToChannelAssociationMapOutput ¶
func (i ChannelAssociationMap) ToChannelAssociationMapOutput() ChannelAssociationMapOutput
func (ChannelAssociationMap) ToChannelAssociationMapOutputWithContext ¶
func (i ChannelAssociationMap) ToChannelAssociationMapOutputWithContext(ctx context.Context) ChannelAssociationMapOutput
type ChannelAssociationMapInput ¶
type ChannelAssociationMapInput interface {
pulumi.Input
ToChannelAssociationMapOutput() ChannelAssociationMapOutput
ToChannelAssociationMapOutputWithContext(context.Context) ChannelAssociationMapOutput
}
ChannelAssociationMapInput is an input type that accepts ChannelAssociationMap and ChannelAssociationMapOutput values. You can construct a concrete instance of `ChannelAssociationMapInput` via:
ChannelAssociationMap{ "key": ChannelAssociationArgs{...} }
type ChannelAssociationMapOutput ¶
type ChannelAssociationMapOutput struct{ *pulumi.OutputState }
func (ChannelAssociationMapOutput) ElementType ¶
func (ChannelAssociationMapOutput) ElementType() reflect.Type
func (ChannelAssociationMapOutput) MapIndex ¶
func (o ChannelAssociationMapOutput) MapIndex(k pulumi.StringInput) ChannelAssociationOutput
func (ChannelAssociationMapOutput) ToChannelAssociationMapOutput ¶
func (o ChannelAssociationMapOutput) ToChannelAssociationMapOutput() ChannelAssociationMapOutput
func (ChannelAssociationMapOutput) ToChannelAssociationMapOutputWithContext ¶
func (o ChannelAssociationMapOutput) ToChannelAssociationMapOutputWithContext(ctx context.Context) ChannelAssociationMapOutput
type ChannelAssociationOutput ¶
type ChannelAssociationOutput struct{ *pulumi.OutputState }
func (ChannelAssociationOutput) Arn ¶
func (o ChannelAssociationOutput) Arn() pulumi.StringOutput
ARN of the channel to associate with the notification configuration. This can be an email contact ARN.
func (ChannelAssociationOutput) ElementType ¶
func (ChannelAssociationOutput) ElementType() reflect.Type
func (ChannelAssociationOutput) NotificationConfigurationArn ¶
func (o ChannelAssociationOutput) NotificationConfigurationArn() pulumi.StringOutput
ARN of the notification configuration to associate the channel with.
func (ChannelAssociationOutput) ToChannelAssociationOutput ¶
func (o ChannelAssociationOutput) ToChannelAssociationOutput() ChannelAssociationOutput
func (ChannelAssociationOutput) ToChannelAssociationOutputWithContext ¶
func (o ChannelAssociationOutput) ToChannelAssociationOutputWithContext(ctx context.Context) ChannelAssociationOutput
type ChannelAssociationState ¶
type ChannelAssociationState struct {
// ARN of the channel to associate with the notification configuration. This can be an email contact ARN.
Arn pulumi.StringPtrInput
// ARN of the notification configuration to associate the channel with.
NotificationConfigurationArn pulumi.StringPtrInput
}
func (ChannelAssociationState) ElementType ¶
func (ChannelAssociationState) ElementType() reflect.Type
type ContactsEmailContact ¶
type ContactsEmailContact struct {
pulumi.CustomResourceState
// ARN of the Email Contact.
Arn pulumi.StringOutput `pulumi:"arn"`
// Email address for the contact. Must be between 6 and 254 characters and match an email
// pattern.
EmailAddress pulumi.StringOutput `pulumi:"emailAddress"`
// Name of the email contact. Must be between 1 and 64 characters and can contain alphanumeric
// characters, underscores, tildes, periods, and hyphens.
//
// The following arguments are optional:
Name pulumi.StringOutput `pulumi:"name"`
// Map of tags to assign to the resource. If configured with a provider
// `defaultTags` configuration block
// present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Map of tags assigned to the resource, including those inherited from the provider
// `defaultTags` configuration block.
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}
Resource for managing AWS User Notifications Contacts Email Contact.
## Example Usage
### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/notifications" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notifications.NewContactsEmailContact(ctx, "example", ¬ifications.ContactsEmailContactArgs{
Name: pulumi.String("example-contact"),
EmailAddress: pulumi.String("example@example.com"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("Production"),
},
})
if err != nil {
return err
}
return nil
})
}
```
## Import
Using `pulumi import`, import User Notifications Contacts Email Contact using the `arn`. For example:
```sh $ pulumi import aws:notifications/contactsEmailContact:ContactsEmailContact example arn:aws:notificationscontacts:us-west-2:123456789012:emailcontact:example-contact ```
func GetContactsEmailContact ¶
func GetContactsEmailContact(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ContactsEmailContactState, opts ...pulumi.ResourceOption) (*ContactsEmailContact, error)
GetContactsEmailContact gets an existing ContactsEmailContact 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 NewContactsEmailContact ¶
func NewContactsEmailContact(ctx *pulumi.Context, name string, args *ContactsEmailContactArgs, opts ...pulumi.ResourceOption) (*ContactsEmailContact, error)
NewContactsEmailContact registers a new resource with the given unique name, arguments, and options.
func (*ContactsEmailContact) ElementType ¶
func (*ContactsEmailContact) ElementType() reflect.Type
func (*ContactsEmailContact) ToContactsEmailContactOutput ¶
func (i *ContactsEmailContact) ToContactsEmailContactOutput() ContactsEmailContactOutput
func (*ContactsEmailContact) ToContactsEmailContactOutputWithContext ¶
func (i *ContactsEmailContact) ToContactsEmailContactOutputWithContext(ctx context.Context) ContactsEmailContactOutput
type ContactsEmailContactArgs ¶
type ContactsEmailContactArgs struct {
// Email address for the contact. Must be between 6 and 254 characters and match an email
// pattern.
EmailAddress pulumi.StringInput
// Name of the email contact. Must be between 1 and 64 characters and can contain alphanumeric
// characters, underscores, tildes, periods, and hyphens.
//
// The following arguments are optional:
Name pulumi.StringPtrInput
// Map of tags to assign to the resource. If configured with a provider
// `defaultTags` configuration block
// present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
}
The set of arguments for constructing a ContactsEmailContact resource.
func (ContactsEmailContactArgs) ElementType ¶
func (ContactsEmailContactArgs) ElementType() reflect.Type
type ContactsEmailContactArray ¶
type ContactsEmailContactArray []ContactsEmailContactInput
func (ContactsEmailContactArray) ElementType ¶
func (ContactsEmailContactArray) ElementType() reflect.Type
func (ContactsEmailContactArray) ToContactsEmailContactArrayOutput ¶
func (i ContactsEmailContactArray) ToContactsEmailContactArrayOutput() ContactsEmailContactArrayOutput
func (ContactsEmailContactArray) ToContactsEmailContactArrayOutputWithContext ¶
func (i ContactsEmailContactArray) ToContactsEmailContactArrayOutputWithContext(ctx context.Context) ContactsEmailContactArrayOutput
type ContactsEmailContactArrayInput ¶
type ContactsEmailContactArrayInput interface {
pulumi.Input
ToContactsEmailContactArrayOutput() ContactsEmailContactArrayOutput
ToContactsEmailContactArrayOutputWithContext(context.Context) ContactsEmailContactArrayOutput
}
ContactsEmailContactArrayInput is an input type that accepts ContactsEmailContactArray and ContactsEmailContactArrayOutput values. You can construct a concrete instance of `ContactsEmailContactArrayInput` via:
ContactsEmailContactArray{ ContactsEmailContactArgs{...} }
type ContactsEmailContactArrayOutput ¶
type ContactsEmailContactArrayOutput struct{ *pulumi.OutputState }
func (ContactsEmailContactArrayOutput) ElementType ¶
func (ContactsEmailContactArrayOutput) ElementType() reflect.Type
func (ContactsEmailContactArrayOutput) Index ¶
func (o ContactsEmailContactArrayOutput) Index(i pulumi.IntInput) ContactsEmailContactOutput
func (ContactsEmailContactArrayOutput) ToContactsEmailContactArrayOutput ¶
func (o ContactsEmailContactArrayOutput) ToContactsEmailContactArrayOutput() ContactsEmailContactArrayOutput
func (ContactsEmailContactArrayOutput) ToContactsEmailContactArrayOutputWithContext ¶
func (o ContactsEmailContactArrayOutput) ToContactsEmailContactArrayOutputWithContext(ctx context.Context) ContactsEmailContactArrayOutput
type ContactsEmailContactInput ¶
type ContactsEmailContactInput interface {
pulumi.Input
ToContactsEmailContactOutput() ContactsEmailContactOutput
ToContactsEmailContactOutputWithContext(ctx context.Context) ContactsEmailContactOutput
}
type ContactsEmailContactMap ¶
type ContactsEmailContactMap map[string]ContactsEmailContactInput
func (ContactsEmailContactMap) ElementType ¶
func (ContactsEmailContactMap) ElementType() reflect.Type
func (ContactsEmailContactMap) ToContactsEmailContactMapOutput ¶
func (i ContactsEmailContactMap) ToContactsEmailContactMapOutput() ContactsEmailContactMapOutput
func (ContactsEmailContactMap) ToContactsEmailContactMapOutputWithContext ¶
func (i ContactsEmailContactMap) ToContactsEmailContactMapOutputWithContext(ctx context.Context) ContactsEmailContactMapOutput
type ContactsEmailContactMapInput ¶
type ContactsEmailContactMapInput interface {
pulumi.Input
ToContactsEmailContactMapOutput() ContactsEmailContactMapOutput
ToContactsEmailContactMapOutputWithContext(context.Context) ContactsEmailContactMapOutput
}
ContactsEmailContactMapInput is an input type that accepts ContactsEmailContactMap and ContactsEmailContactMapOutput values. You can construct a concrete instance of `ContactsEmailContactMapInput` via:
ContactsEmailContactMap{ "key": ContactsEmailContactArgs{...} }
type ContactsEmailContactMapOutput ¶
type ContactsEmailContactMapOutput struct{ *pulumi.OutputState }
func (ContactsEmailContactMapOutput) ElementType ¶
func (ContactsEmailContactMapOutput) ElementType() reflect.Type
func (ContactsEmailContactMapOutput) MapIndex ¶
func (o ContactsEmailContactMapOutput) MapIndex(k pulumi.StringInput) ContactsEmailContactOutput
func (ContactsEmailContactMapOutput) ToContactsEmailContactMapOutput ¶
func (o ContactsEmailContactMapOutput) ToContactsEmailContactMapOutput() ContactsEmailContactMapOutput
func (ContactsEmailContactMapOutput) ToContactsEmailContactMapOutputWithContext ¶
func (o ContactsEmailContactMapOutput) ToContactsEmailContactMapOutputWithContext(ctx context.Context) ContactsEmailContactMapOutput
type ContactsEmailContactOutput ¶
type ContactsEmailContactOutput struct{ *pulumi.OutputState }
func (ContactsEmailContactOutput) Arn ¶
func (o ContactsEmailContactOutput) Arn() pulumi.StringOutput
ARN of the Email Contact.
func (ContactsEmailContactOutput) ElementType ¶
func (ContactsEmailContactOutput) ElementType() reflect.Type
func (ContactsEmailContactOutput) EmailAddress ¶
func (o ContactsEmailContactOutput) EmailAddress() pulumi.StringOutput
Email address for the contact. Must be between 6 and 254 characters and match an email pattern.
func (ContactsEmailContactOutput) Name ¶
func (o ContactsEmailContactOutput) Name() pulumi.StringOutput
Name of the email contact. Must be between 1 and 64 characters and can contain alphanumeric characters, underscores, tildes, periods, and hyphens.
The following arguments are optional:
func (ContactsEmailContactOutput) Tags ¶
func (o ContactsEmailContactOutput) Tags() pulumi.StringMapOutput
Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (ContactsEmailContactOutput) TagsAll ¶
func (o ContactsEmailContactOutput) TagsAll() pulumi.StringMapOutput
Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
func (ContactsEmailContactOutput) ToContactsEmailContactOutput ¶
func (o ContactsEmailContactOutput) ToContactsEmailContactOutput() ContactsEmailContactOutput
func (ContactsEmailContactOutput) ToContactsEmailContactOutputWithContext ¶
func (o ContactsEmailContactOutput) ToContactsEmailContactOutputWithContext(ctx context.Context) ContactsEmailContactOutput
type ContactsEmailContactState ¶
type ContactsEmailContactState struct {
// ARN of the Email Contact.
Arn pulumi.StringPtrInput
// Email address for the contact. Must be between 6 and 254 characters and match an email
// pattern.
EmailAddress pulumi.StringPtrInput
// Name of the email contact. Must be between 1 and 64 characters and can contain alphanumeric
// characters, underscores, tildes, periods, and hyphens.
//
// The following arguments are optional:
Name pulumi.StringPtrInput
// Map of tags to assign to the resource. If configured with a provider
// `defaultTags` configuration block
// present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// Map of tags assigned to the resource, including those inherited from the provider
// `defaultTags` configuration block.
TagsAll pulumi.StringMapInput
}
func (ContactsEmailContactState) ElementType ¶
func (ContactsEmailContactState) ElementType() reflect.Type
type EventRule ¶
type EventRule struct {
pulumi.CustomResourceState
// ARN of the Event Rule.
Arn pulumi.StringOutput `pulumi:"arn"`
// JSON string defining the event pattern to match. Maximum length is 4096 characters.
EventPattern pulumi.StringPtrOutput `pulumi:"eventPattern"`
// Type of event to match. Must be between 1 and 128 characters, and match the pattern `([a-zA-Z0-9 \-\(\)])+`.
EventType pulumi.StringOutput `pulumi:"eventType"`
// ARN of the notification configuration to associate with this event rule. Must match the pattern `arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}`.
NotificationConfigurationArn pulumi.StringOutput `pulumi:"notificationConfigurationArn"`
// Set of AWS regions where the event rule will be applied. Each region must be between 2 and 25 characters, and match the pattern `([a-z]{1,2})-([a-z]{1,15}-)+([0-9])`.
Regions pulumi.StringArrayOutput `pulumi:"regions"`
// Source of the event. Must be between 1 and 36 characters, and match the pattern `aws.([a-z0-9\-])+`.
//
// The following arguments are optional:
Source pulumi.StringOutput `pulumi:"source"`
}
Resource for managing an AWS User Notifications Event Rule.
## Example Usage
### Basic Usage
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-aws/sdk/v7/go/aws/notifications" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := notifications.NewNotificationConfiguration(ctx, "example", ¬ifications.NotificationConfigurationArgs{
Name: pulumi.String("example"),
Description: pulumi.String("example configuration"),
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"detail": map[string]interface{}{
"state": map[string]interface{}{
"value": []string{
"ALARM",
},
},
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = notifications.NewEventRule(ctx, "example", ¬ifications.EventRuleArgs{
EventPattern: pulumi.String(json0),
EventType: pulumi.String("CloudWatch Alarm State Change"),
NotificationConfigurationArn: example.Arn,
Regions: pulumi.StringArray{
pulumi.String("us-east-1"),
pulumi.String("us-west-2"),
},
Source: pulumi.String("aws.cloudwatch"),
})
if err != nil {
return err
}
return nil
})
}
```
## Import
Using `pulumi import`, import User Notifications Event Rule using the `arn`. For example:
```sh $ pulumi import aws:notifications/eventRule:EventRule example arn:aws:notifications::123456789012:configuration/abc123def456ghi789jkl012mno345/rule/abc123def456ghi789jkl012mno345 ```
func GetEventRule ¶
func GetEventRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EventRuleState, opts ...pulumi.ResourceOption) (*EventRule, error)
GetEventRule gets an existing EventRule 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 NewEventRule ¶
func NewEventRule(ctx *pulumi.Context, name string, args *EventRuleArgs, opts ...pulumi.ResourceOption) (*EventRule, error)
NewEventRule registers a new resource with the given unique name, arguments, and options.
func (*EventRule) ElementType ¶
func (*EventRule) ToEventRuleOutput ¶
func (i *EventRule) ToEventRuleOutput() EventRuleOutput
func (*EventRule) ToEventRuleOutputWithContext ¶
func (i *EventRule) ToEventRuleOutputWithContext(ctx context.Context) EventRuleOutput
type EventRuleArgs ¶
type EventRuleArgs struct {
// JSON string defining the event pattern to match. Maximum length is 4096 characters.
EventPattern pulumi.StringPtrInput
// Type of event to match. Must be between 1 and 128 characters, and match the pattern `([a-zA-Z0-9 \-\(\)])+`.
EventType pulumi.StringInput
// ARN of the notification configuration to associate with this event rule. Must match the pattern `arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}`.
NotificationConfigurationArn pulumi.StringInput
// Set of AWS regions where the event rule will be applied. Each region must be between 2 and 25 characters, and match the pattern `([a-z]{1,2})-([a-z]{1,15}-)+([0-9])`.
Regions pulumi.StringArrayInput
// Source of the event. Must be between 1 and 36 characters, and match the pattern `aws.([a-z0-9\-])+`.
//
// The following arguments are optional:
Source pulumi.StringInput
}
The set of arguments for constructing a EventRule resource.
func (EventRuleArgs) ElementType ¶
func (EventRuleArgs) ElementType() reflect.Type
type EventRuleArray ¶
type EventRuleArray []EventRuleInput
func (EventRuleArray) ElementType ¶
func (EventRuleArray) ElementType() reflect.Type
func (EventRuleArray) ToEventRuleArrayOutput ¶
func (i EventRuleArray) ToEventRuleArrayOutput() EventRuleArrayOutput
func (EventRuleArray) ToEventRuleArrayOutputWithContext ¶
func (i EventRuleArray) ToEventRuleArrayOutputWithContext(ctx context.Context) EventRuleArrayOutput
type EventRuleArrayInput ¶
type EventRuleArrayInput interface {
pulumi.Input
ToEventRuleArrayOutput() EventRuleArrayOutput
ToEventRuleArrayOutputWithContext(context.Context) EventRuleArrayOutput
}
EventRuleArrayInput is an input type that accepts EventRuleArray and EventRuleArrayOutput values. You can construct a concrete instance of `EventRuleArrayInput` via:
EventRuleArray{ EventRuleArgs{...} }
type EventRuleArrayOutput ¶
type EventRuleArrayOutput struct{ *pulumi.OutputState }
func (EventRuleArrayOutput) ElementType ¶
func (EventRuleArrayOutput) ElementType() reflect.Type
func (EventRuleArrayOutput) Index ¶
func (o EventRuleArrayOutput) Index(i pulumi.IntInput) EventRuleOutput
func (EventRuleArrayOutput) ToEventRuleArrayOutput ¶
func (o EventRuleArrayOutput) ToEventRuleArrayOutput() EventRuleArrayOutput
func (EventRuleArrayOutput) ToEventRuleArrayOutputWithContext ¶
func (o EventRuleArrayOutput) ToEventRuleArrayOutputWithContext(ctx context.Context) EventRuleArrayOutput
type EventRuleInput ¶
type EventRuleInput interface {
pulumi.Input
ToEventRuleOutput() EventRuleOutput
ToEventRuleOutputWithContext(ctx context.Context) EventRuleOutput
}
type EventRuleMap ¶
type EventRuleMap map[string]EventRuleInput
func (EventRuleMap) ElementType ¶
func (EventRuleMap) ElementType() reflect.Type
func (EventRuleMap) ToEventRuleMapOutput ¶
func (i EventRuleMap) ToEventRuleMapOutput() EventRuleMapOutput
func (EventRuleMap) ToEventRuleMapOutputWithContext ¶
func (i EventRuleMap) ToEventRuleMapOutputWithContext(ctx context.Context) EventRuleMapOutput
type EventRuleMapInput ¶
type EventRuleMapInput interface {
pulumi.Input
ToEventRuleMapOutput() EventRuleMapOutput
ToEventRuleMapOutputWithContext(context.Context) EventRuleMapOutput
}
EventRuleMapInput is an input type that accepts EventRuleMap and EventRuleMapOutput values. You can construct a concrete instance of `EventRuleMapInput` via:
EventRuleMap{ "key": EventRuleArgs{...} }
type EventRuleMapOutput ¶
type EventRuleMapOutput struct{ *pulumi.OutputState }
func (EventRuleMapOutput) ElementType ¶
func (EventRuleMapOutput) ElementType() reflect.Type
func (EventRuleMapOutput) MapIndex ¶
func (o EventRuleMapOutput) MapIndex(k pulumi.StringInput) EventRuleOutput
func (EventRuleMapOutput) ToEventRuleMapOutput ¶
func (o EventRuleMapOutput) ToEventRuleMapOutput() EventRuleMapOutput
func (EventRuleMapOutput) ToEventRuleMapOutputWithContext ¶
func (o EventRuleMapOutput) ToEventRuleMapOutputWithContext(ctx context.Context) EventRuleMapOutput
type EventRuleOutput ¶
type EventRuleOutput struct{ *pulumi.OutputState }
func (EventRuleOutput) Arn ¶
func (o EventRuleOutput) Arn() pulumi.StringOutput
ARN of the Event Rule.
func (EventRuleOutput) ElementType ¶
func (EventRuleOutput) ElementType() reflect.Type
func (EventRuleOutput) EventPattern ¶
func (o EventRuleOutput) EventPattern() pulumi.StringPtrOutput
JSON string defining the event pattern to match. Maximum length is 4096 characters.
func (EventRuleOutput) EventType ¶
func (o EventRuleOutput) EventType() pulumi.StringOutput
Type of event to match. Must be between 1 and 128 characters, and match the pattern `([a-zA-Z0-9 \-\(\)])+`.
func (EventRuleOutput) NotificationConfigurationArn ¶
func (o EventRuleOutput) NotificationConfigurationArn() pulumi.StringOutput
ARN of the notification configuration to associate with this event rule. Must match the pattern `arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}`.
func (EventRuleOutput) Regions ¶
func (o EventRuleOutput) Regions() pulumi.StringArrayOutput
Set of AWS regions where the event rule will be applied. Each region must be between 2 and 25 characters, and match the pattern `([a-z]{1,2})-([a-z]{1,15}-)+([0-9])`.
func (EventRuleOutput) Source ¶
func (o EventRuleOutput) Source() pulumi.StringOutput
Source of the event. Must be between 1 and 36 characters, and match the pattern `aws.([a-z0-9\-])+`.
The following arguments are optional:
func (EventRuleOutput) ToEventRuleOutput ¶
func (o EventRuleOutput) ToEventRuleOutput() EventRuleOutput
func (EventRuleOutput) ToEventRuleOutputWithContext ¶
func (o EventRuleOutput) ToEventRuleOutputWithContext(ctx context.Context) EventRuleOutput
type EventRuleState ¶
type EventRuleState struct {
// ARN of the Event Rule.
Arn pulumi.StringPtrInput
// JSON string defining the event pattern to match. Maximum length is 4096 characters.
EventPattern pulumi.StringPtrInput
// Type of event to match. Must be between 1 and 128 characters, and match the pattern `([a-zA-Z0-9 \-\(\)])+`.
EventType pulumi.StringPtrInput
// ARN of the notification configuration to associate with this event rule. Must match the pattern `arn:aws:notifications::[0-9]{12}:configuration/[a-z0-9]{27}`.
NotificationConfigurationArn pulumi.StringPtrInput
// Set of AWS regions where the event rule will be applied. Each region must be between 2 and 25 characters, and match the pattern `([a-z]{1,2})-([a-z]{1,15}-)+([0-9])`.
Regions pulumi.StringArrayInput
// Source of the event. Must be between 1 and 36 characters, and match the pattern `aws.([a-z0-9\-])+`.
//
// The following arguments are optional:
Source pulumi.StringPtrInput
}
func (EventRuleState) ElementType ¶
func (EventRuleState) ElementType() reflect.Type
type NotificationConfiguration ¶
type NotificationConfiguration struct {
pulumi.CustomResourceState
// Aggregation preference of the NotificationConfiguration. Valid values: `LONG` (
// aggregate notifications for 12 hours), `SHORT` (aggregate notifications for 5 minutes), `NONE` (don't aggregate
// notifications). Default: `NONE`.
AggregationDuration pulumi.StringOutput `pulumi:"aggregationDuration"`
// Amazon Resource Name (ARN) of the NotificationConfiguration.
Arn pulumi.StringOutput `pulumi:"arn"`
// Description of the NotificationConfiguration. Length constraints: Minimum length of 0,
// maximum length of 256.
Description pulumi.StringOutput `pulumi:"description"`
// Name of the NotificationConfiguration. Supports RFC 3986's unreserved characters. Length
// constraints: Minimum length of 1, maximum length of 64. Pattern: `[A-Za-z0-9_\-]+`.
//
// The following arguments are optional:
Name pulumi.StringOutput `pulumi:"name"`
// Map of tags to assign to the resource. A tag is a string-to-string map of key-value pairs. 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"`
// Map of tags assigned to the resource, including those inherited from the provider `defaultTags`
// configuration block.
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}
Resource for managing an AWS User Notifications Notification Configuration.
## Example Usage
### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/notifications" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notifications.NewNotificationConfiguration(ctx, "example", ¬ifications.NotificationConfigurationArgs{
Name: pulumi.String("example"),
Description: pulumi.String("Example notification configuration"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("production"),
"Project": pulumi.String("example"),
},
})
if err != nil {
return err
}
return nil
})
}
```
### With Aggregation Duration
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/notifications" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notifications.NewNotificationConfiguration(ctx, "example", ¬ifications.NotificationConfigurationArgs{
Name: pulumi.String("example-aggregation"),
Description: pulumi.String("Example notification configuration with aggregation"),
AggregationDuration: pulumi.String("SHORT"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("production"),
"Project": pulumi.String("example"),
},
})
if err != nil {
return err
}
return nil
})
}
```
## Import
Using `pulumi import`, import User Notifications Notification Configuration using the `arn`. For example:
```sh $ pulumi import aws:notifications/notificationConfiguration:NotificationConfiguration example arn:aws:notifications::123456789012:configuration/abcdef1234567890abcdef1234567890 ```
func GetNotificationConfiguration ¶
func GetNotificationConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NotificationConfigurationState, opts ...pulumi.ResourceOption) (*NotificationConfiguration, error)
GetNotificationConfiguration gets an existing NotificationConfiguration 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 NewNotificationConfiguration ¶
func NewNotificationConfiguration(ctx *pulumi.Context, name string, args *NotificationConfigurationArgs, opts ...pulumi.ResourceOption) (*NotificationConfiguration, error)
NewNotificationConfiguration registers a new resource with the given unique name, arguments, and options.
func (*NotificationConfiguration) ElementType ¶
func (*NotificationConfiguration) ElementType() reflect.Type
func (*NotificationConfiguration) ToNotificationConfigurationOutput ¶
func (i *NotificationConfiguration) ToNotificationConfigurationOutput() NotificationConfigurationOutput
func (*NotificationConfiguration) ToNotificationConfigurationOutputWithContext ¶
func (i *NotificationConfiguration) ToNotificationConfigurationOutputWithContext(ctx context.Context) NotificationConfigurationOutput
type NotificationConfigurationArgs ¶
type NotificationConfigurationArgs struct {
// Aggregation preference of the NotificationConfiguration. Valid values: `LONG` (
// aggregate notifications for 12 hours), `SHORT` (aggregate notifications for 5 minutes), `NONE` (don't aggregate
// notifications). Default: `NONE`.
AggregationDuration pulumi.StringPtrInput
// Description of the NotificationConfiguration. Length constraints: Minimum length of 0,
// maximum length of 256.
Description pulumi.StringInput
// Name of the NotificationConfiguration. Supports RFC 3986's unreserved characters. Length
// constraints: Minimum length of 1, maximum length of 64. Pattern: `[A-Za-z0-9_\-]+`.
//
// The following arguments are optional:
Name pulumi.StringPtrInput
// Map of tags to assign to the resource. A tag is a string-to-string map of key-value pairs. If
// configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those
// defined at the provider-level.
Tags pulumi.StringMapInput
}
The set of arguments for constructing a NotificationConfiguration resource.
func (NotificationConfigurationArgs) ElementType ¶
func (NotificationConfigurationArgs) ElementType() reflect.Type
type NotificationConfigurationArray ¶
type NotificationConfigurationArray []NotificationConfigurationInput
func (NotificationConfigurationArray) ElementType ¶
func (NotificationConfigurationArray) ElementType() reflect.Type
func (NotificationConfigurationArray) ToNotificationConfigurationArrayOutput ¶
func (i NotificationConfigurationArray) ToNotificationConfigurationArrayOutput() NotificationConfigurationArrayOutput
func (NotificationConfigurationArray) ToNotificationConfigurationArrayOutputWithContext ¶
func (i NotificationConfigurationArray) ToNotificationConfigurationArrayOutputWithContext(ctx context.Context) NotificationConfigurationArrayOutput
type NotificationConfigurationArrayInput ¶
type NotificationConfigurationArrayInput interface {
pulumi.Input
ToNotificationConfigurationArrayOutput() NotificationConfigurationArrayOutput
ToNotificationConfigurationArrayOutputWithContext(context.Context) NotificationConfigurationArrayOutput
}
NotificationConfigurationArrayInput is an input type that accepts NotificationConfigurationArray and NotificationConfigurationArrayOutput values. You can construct a concrete instance of `NotificationConfigurationArrayInput` via:
NotificationConfigurationArray{ NotificationConfigurationArgs{...} }
type NotificationConfigurationArrayOutput ¶
type NotificationConfigurationArrayOutput struct{ *pulumi.OutputState }
func (NotificationConfigurationArrayOutput) ElementType ¶
func (NotificationConfigurationArrayOutput) ElementType() reflect.Type
func (NotificationConfigurationArrayOutput) Index ¶
func (o NotificationConfigurationArrayOutput) Index(i pulumi.IntInput) NotificationConfigurationOutput
func (NotificationConfigurationArrayOutput) ToNotificationConfigurationArrayOutput ¶
func (o NotificationConfigurationArrayOutput) ToNotificationConfigurationArrayOutput() NotificationConfigurationArrayOutput
func (NotificationConfigurationArrayOutput) ToNotificationConfigurationArrayOutputWithContext ¶
func (o NotificationConfigurationArrayOutput) ToNotificationConfigurationArrayOutputWithContext(ctx context.Context) NotificationConfigurationArrayOutput
type NotificationConfigurationInput ¶
type NotificationConfigurationInput interface {
pulumi.Input
ToNotificationConfigurationOutput() NotificationConfigurationOutput
ToNotificationConfigurationOutputWithContext(ctx context.Context) NotificationConfigurationOutput
}
type NotificationConfigurationMap ¶
type NotificationConfigurationMap map[string]NotificationConfigurationInput
func (NotificationConfigurationMap) ElementType ¶
func (NotificationConfigurationMap) ElementType() reflect.Type
func (NotificationConfigurationMap) ToNotificationConfigurationMapOutput ¶
func (i NotificationConfigurationMap) ToNotificationConfigurationMapOutput() NotificationConfigurationMapOutput
func (NotificationConfigurationMap) ToNotificationConfigurationMapOutputWithContext ¶
func (i NotificationConfigurationMap) ToNotificationConfigurationMapOutputWithContext(ctx context.Context) NotificationConfigurationMapOutput
type NotificationConfigurationMapInput ¶
type NotificationConfigurationMapInput interface {
pulumi.Input
ToNotificationConfigurationMapOutput() NotificationConfigurationMapOutput
ToNotificationConfigurationMapOutputWithContext(context.Context) NotificationConfigurationMapOutput
}
NotificationConfigurationMapInput is an input type that accepts NotificationConfigurationMap and NotificationConfigurationMapOutput values. You can construct a concrete instance of `NotificationConfigurationMapInput` via:
NotificationConfigurationMap{ "key": NotificationConfigurationArgs{...} }
type NotificationConfigurationMapOutput ¶
type NotificationConfigurationMapOutput struct{ *pulumi.OutputState }
func (NotificationConfigurationMapOutput) ElementType ¶
func (NotificationConfigurationMapOutput) ElementType() reflect.Type
func (NotificationConfigurationMapOutput) MapIndex ¶
func (o NotificationConfigurationMapOutput) MapIndex(k pulumi.StringInput) NotificationConfigurationOutput
func (NotificationConfigurationMapOutput) ToNotificationConfigurationMapOutput ¶
func (o NotificationConfigurationMapOutput) ToNotificationConfigurationMapOutput() NotificationConfigurationMapOutput
func (NotificationConfigurationMapOutput) ToNotificationConfigurationMapOutputWithContext ¶
func (o NotificationConfigurationMapOutput) ToNotificationConfigurationMapOutputWithContext(ctx context.Context) NotificationConfigurationMapOutput
type NotificationConfigurationOutput ¶
type NotificationConfigurationOutput struct{ *pulumi.OutputState }
func (NotificationConfigurationOutput) AggregationDuration ¶
func (o NotificationConfigurationOutput) AggregationDuration() pulumi.StringOutput
Aggregation preference of the NotificationConfiguration. Valid values: `LONG` ( aggregate notifications for 12 hours), `SHORT` (aggregate notifications for 5 minutes), `NONE` (don't aggregate notifications). Default: `NONE`.
func (NotificationConfigurationOutput) Arn ¶
func (o NotificationConfigurationOutput) Arn() pulumi.StringOutput
Amazon Resource Name (ARN) of the NotificationConfiguration.
func (NotificationConfigurationOutput) Description ¶
func (o NotificationConfigurationOutput) Description() pulumi.StringOutput
Description of the NotificationConfiguration. Length constraints: Minimum length of 0, maximum length of 256.
func (NotificationConfigurationOutput) ElementType ¶
func (NotificationConfigurationOutput) ElementType() reflect.Type
func (NotificationConfigurationOutput) Name ¶
func (o NotificationConfigurationOutput) Name() pulumi.StringOutput
Name of the NotificationConfiguration. Supports RFC 3986's unreserved characters. Length constraints: Minimum length of 1, maximum length of 64. Pattern: `[A-Za-z0-9_\-]+`.
The following arguments are optional:
func (NotificationConfigurationOutput) Tags ¶
func (o NotificationConfigurationOutput) Tags() pulumi.StringMapOutput
Map of tags to assign to the resource. A tag is a string-to-string map of key-value pairs. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (NotificationConfigurationOutput) TagsAll ¶
func (o NotificationConfigurationOutput) TagsAll() pulumi.StringMapOutput
Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
func (NotificationConfigurationOutput) ToNotificationConfigurationOutput ¶
func (o NotificationConfigurationOutput) ToNotificationConfigurationOutput() NotificationConfigurationOutput
func (NotificationConfigurationOutput) ToNotificationConfigurationOutputWithContext ¶
func (o NotificationConfigurationOutput) ToNotificationConfigurationOutputWithContext(ctx context.Context) NotificationConfigurationOutput
type NotificationConfigurationState ¶
type NotificationConfigurationState struct {
// Aggregation preference of the NotificationConfiguration. Valid values: `LONG` (
// aggregate notifications for 12 hours), `SHORT` (aggregate notifications for 5 minutes), `NONE` (don't aggregate
// notifications). Default: `NONE`.
AggregationDuration pulumi.StringPtrInput
// Amazon Resource Name (ARN) of the NotificationConfiguration.
Arn pulumi.StringPtrInput
// Description of the NotificationConfiguration. Length constraints: Minimum length of 0,
// maximum length of 256.
Description pulumi.StringPtrInput
// Name of the NotificationConfiguration. Supports RFC 3986's unreserved characters. Length
// constraints: Minimum length of 1, maximum length of 64. Pattern: `[A-Za-z0-9_\-]+`.
//
// The following arguments are optional:
Name pulumi.StringPtrInput
// Map of tags to assign to the resource. A tag is a string-to-string map of key-value pairs. If
// configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those
// defined at the provider-level.
Tags pulumi.StringMapInput
// Map of tags assigned to the resource, including those inherited from the provider `defaultTags`
// configuration block.
TagsAll pulumi.StringMapInput
}
func (NotificationConfigurationState) ElementType ¶
func (NotificationConfigurationState) ElementType() reflect.Type
type NotificationHub ¶
type NotificationHub struct {
pulumi.CustomResourceState
// Notification Hub region.
NotificationHubRegion pulumi.StringOutput `pulumi:"notificationHubRegion"`
Timeouts NotificationHubTimeoutsPtrOutput `pulumi:"timeouts"`
}
Resource for managing an AWS User Notifications Notification Hub.
## Example Usage
### Basic Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/notifications" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notifications.NewNotificationHub(ctx, "example", ¬ifications.NotificationHubArgs{
NotificationHubRegion: pulumi.String("us-west-2"),
})
if err != nil {
return err
}
return nil
})
}
```
## Import
Using `pulumi import`, import User Notifications Notification Hub using the `notification_hub_region`. For example:
```sh $ pulumi import aws:notifications/notificationHub:NotificationHub example us-west-2 ```
func GetNotificationHub ¶
func GetNotificationHub(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NotificationHubState, opts ...pulumi.ResourceOption) (*NotificationHub, error)
GetNotificationHub gets an existing NotificationHub 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 NewNotificationHub ¶
func NewNotificationHub(ctx *pulumi.Context, name string, args *NotificationHubArgs, opts ...pulumi.ResourceOption) (*NotificationHub, error)
NewNotificationHub registers a new resource with the given unique name, arguments, and options.
func (*NotificationHub) ElementType ¶
func (*NotificationHub) ElementType() reflect.Type
func (*NotificationHub) ToNotificationHubOutput ¶
func (i *NotificationHub) ToNotificationHubOutput() NotificationHubOutput
func (*NotificationHub) ToNotificationHubOutputWithContext ¶
func (i *NotificationHub) ToNotificationHubOutputWithContext(ctx context.Context) NotificationHubOutput
type NotificationHubArgs ¶
type NotificationHubArgs struct {
// Notification Hub region.
NotificationHubRegion pulumi.StringInput
Timeouts NotificationHubTimeoutsPtrInput
}
The set of arguments for constructing a NotificationHub resource.
func (NotificationHubArgs) ElementType ¶
func (NotificationHubArgs) ElementType() reflect.Type
type NotificationHubArray ¶
type NotificationHubArray []NotificationHubInput
func (NotificationHubArray) ElementType ¶
func (NotificationHubArray) ElementType() reflect.Type
func (NotificationHubArray) ToNotificationHubArrayOutput ¶
func (i NotificationHubArray) ToNotificationHubArrayOutput() NotificationHubArrayOutput
func (NotificationHubArray) ToNotificationHubArrayOutputWithContext ¶
func (i NotificationHubArray) ToNotificationHubArrayOutputWithContext(ctx context.Context) NotificationHubArrayOutput
type NotificationHubArrayInput ¶
type NotificationHubArrayInput interface {
pulumi.Input
ToNotificationHubArrayOutput() NotificationHubArrayOutput
ToNotificationHubArrayOutputWithContext(context.Context) NotificationHubArrayOutput
}
NotificationHubArrayInput is an input type that accepts NotificationHubArray and NotificationHubArrayOutput values. You can construct a concrete instance of `NotificationHubArrayInput` via:
NotificationHubArray{ NotificationHubArgs{...} }
type NotificationHubArrayOutput ¶
type NotificationHubArrayOutput struct{ *pulumi.OutputState }
func (NotificationHubArrayOutput) ElementType ¶
func (NotificationHubArrayOutput) ElementType() reflect.Type
func (NotificationHubArrayOutput) Index ¶
func (o NotificationHubArrayOutput) Index(i pulumi.IntInput) NotificationHubOutput
func (NotificationHubArrayOutput) ToNotificationHubArrayOutput ¶
func (o NotificationHubArrayOutput) ToNotificationHubArrayOutput() NotificationHubArrayOutput
func (NotificationHubArrayOutput) ToNotificationHubArrayOutputWithContext ¶
func (o NotificationHubArrayOutput) ToNotificationHubArrayOutputWithContext(ctx context.Context) NotificationHubArrayOutput
type NotificationHubInput ¶
type NotificationHubInput interface {
pulumi.Input
ToNotificationHubOutput() NotificationHubOutput
ToNotificationHubOutputWithContext(ctx context.Context) NotificationHubOutput
}
type NotificationHubMap ¶
type NotificationHubMap map[string]NotificationHubInput
func (NotificationHubMap) ElementType ¶
func (NotificationHubMap) ElementType() reflect.Type
func (NotificationHubMap) ToNotificationHubMapOutput ¶
func (i NotificationHubMap) ToNotificationHubMapOutput() NotificationHubMapOutput
func (NotificationHubMap) ToNotificationHubMapOutputWithContext ¶
func (i NotificationHubMap) ToNotificationHubMapOutputWithContext(ctx context.Context) NotificationHubMapOutput
type NotificationHubMapInput ¶
type NotificationHubMapInput interface {
pulumi.Input
ToNotificationHubMapOutput() NotificationHubMapOutput
ToNotificationHubMapOutputWithContext(context.Context) NotificationHubMapOutput
}
NotificationHubMapInput is an input type that accepts NotificationHubMap and NotificationHubMapOutput values. You can construct a concrete instance of `NotificationHubMapInput` via:
NotificationHubMap{ "key": NotificationHubArgs{...} }
type NotificationHubMapOutput ¶
type NotificationHubMapOutput struct{ *pulumi.OutputState }
func (NotificationHubMapOutput) ElementType ¶
func (NotificationHubMapOutput) ElementType() reflect.Type
func (NotificationHubMapOutput) MapIndex ¶
func (o NotificationHubMapOutput) MapIndex(k pulumi.StringInput) NotificationHubOutput
func (NotificationHubMapOutput) ToNotificationHubMapOutput ¶
func (o NotificationHubMapOutput) ToNotificationHubMapOutput() NotificationHubMapOutput
func (NotificationHubMapOutput) ToNotificationHubMapOutputWithContext ¶
func (o NotificationHubMapOutput) ToNotificationHubMapOutputWithContext(ctx context.Context) NotificationHubMapOutput
type NotificationHubOutput ¶
type NotificationHubOutput struct{ *pulumi.OutputState }
func (NotificationHubOutput) ElementType ¶
func (NotificationHubOutput) ElementType() reflect.Type
func (NotificationHubOutput) NotificationHubRegion ¶
func (o NotificationHubOutput) NotificationHubRegion() pulumi.StringOutput
Notification Hub region.
func (NotificationHubOutput) Timeouts ¶
func (o NotificationHubOutput) Timeouts() NotificationHubTimeoutsPtrOutput
func (NotificationHubOutput) ToNotificationHubOutput ¶
func (o NotificationHubOutput) ToNotificationHubOutput() NotificationHubOutput
func (NotificationHubOutput) ToNotificationHubOutputWithContext ¶
func (o NotificationHubOutput) ToNotificationHubOutputWithContext(ctx context.Context) NotificationHubOutput
type NotificationHubState ¶
type NotificationHubState struct {
// Notification Hub region.
NotificationHubRegion pulumi.StringPtrInput
Timeouts NotificationHubTimeoutsPtrInput
}
func (NotificationHubState) ElementType ¶
func (NotificationHubState) ElementType() reflect.Type
type NotificationHubTimeouts ¶
type NotificationHubTimeouts struct {
// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Create *string `pulumi:"create"`
// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Delete *string `pulumi:"delete"`
}
type NotificationHubTimeoutsArgs ¶
type NotificationHubTimeoutsArgs struct {
// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Create pulumi.StringPtrInput `pulumi:"create"`
// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Delete pulumi.StringPtrInput `pulumi:"delete"`
}
func (NotificationHubTimeoutsArgs) ElementType ¶
func (NotificationHubTimeoutsArgs) ElementType() reflect.Type
func (NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsOutput ¶
func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsOutput() NotificationHubTimeoutsOutput
func (NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsOutputWithContext ¶
func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsOutputWithContext(ctx context.Context) NotificationHubTimeoutsOutput
func (NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsPtrOutput ¶
func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsPtrOutput() NotificationHubTimeoutsPtrOutput
func (NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsPtrOutputWithContext ¶
func (i NotificationHubTimeoutsArgs) ToNotificationHubTimeoutsPtrOutputWithContext(ctx context.Context) NotificationHubTimeoutsPtrOutput
type NotificationHubTimeoutsInput ¶
type NotificationHubTimeoutsInput interface {
pulumi.Input
ToNotificationHubTimeoutsOutput() NotificationHubTimeoutsOutput
ToNotificationHubTimeoutsOutputWithContext(context.Context) NotificationHubTimeoutsOutput
}
NotificationHubTimeoutsInput is an input type that accepts NotificationHubTimeoutsArgs and NotificationHubTimeoutsOutput values. You can construct a concrete instance of `NotificationHubTimeoutsInput` via:
NotificationHubTimeoutsArgs{...}
type NotificationHubTimeoutsOutput ¶
type NotificationHubTimeoutsOutput struct{ *pulumi.OutputState }
func (NotificationHubTimeoutsOutput) Create ¶
func (o NotificationHubTimeoutsOutput) Create() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
func (NotificationHubTimeoutsOutput) Delete ¶
func (o NotificationHubTimeoutsOutput) Delete() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
func (NotificationHubTimeoutsOutput) ElementType ¶
func (NotificationHubTimeoutsOutput) ElementType() reflect.Type
func (NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsOutput ¶
func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsOutput() NotificationHubTimeoutsOutput
func (NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsOutputWithContext ¶
func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsOutputWithContext(ctx context.Context) NotificationHubTimeoutsOutput
func (NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsPtrOutput ¶
func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsPtrOutput() NotificationHubTimeoutsPtrOutput
func (NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsPtrOutputWithContext ¶
func (o NotificationHubTimeoutsOutput) ToNotificationHubTimeoutsPtrOutputWithContext(ctx context.Context) NotificationHubTimeoutsPtrOutput
type NotificationHubTimeoutsPtrInput ¶
type NotificationHubTimeoutsPtrInput interface {
pulumi.Input
ToNotificationHubTimeoutsPtrOutput() NotificationHubTimeoutsPtrOutput
ToNotificationHubTimeoutsPtrOutputWithContext(context.Context) NotificationHubTimeoutsPtrOutput
}
NotificationHubTimeoutsPtrInput is an input type that accepts NotificationHubTimeoutsArgs, NotificationHubTimeoutsPtr and NotificationHubTimeoutsPtrOutput values. You can construct a concrete instance of `NotificationHubTimeoutsPtrInput` via:
NotificationHubTimeoutsArgs{...}
or:
nil
func NotificationHubTimeoutsPtr ¶
func NotificationHubTimeoutsPtr(v *NotificationHubTimeoutsArgs) NotificationHubTimeoutsPtrInput
type NotificationHubTimeoutsPtrOutput ¶
type NotificationHubTimeoutsPtrOutput struct{ *pulumi.OutputState }
func (NotificationHubTimeoutsPtrOutput) Create ¶
func (o NotificationHubTimeoutsPtrOutput) Create() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
func (NotificationHubTimeoutsPtrOutput) Delete ¶
func (o NotificationHubTimeoutsPtrOutput) Delete() pulumi.StringPtrOutput
A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
func (NotificationHubTimeoutsPtrOutput) Elem ¶
func (o NotificationHubTimeoutsPtrOutput) Elem() NotificationHubTimeoutsOutput
func (NotificationHubTimeoutsPtrOutput) ElementType ¶
func (NotificationHubTimeoutsPtrOutput) ElementType() reflect.Type
func (NotificationHubTimeoutsPtrOutput) ToNotificationHubTimeoutsPtrOutput ¶
func (o NotificationHubTimeoutsPtrOutput) ToNotificationHubTimeoutsPtrOutput() NotificationHubTimeoutsPtrOutput
func (NotificationHubTimeoutsPtrOutput) ToNotificationHubTimeoutsPtrOutputWithContext ¶
func (o NotificationHubTimeoutsPtrOutput) ToNotificationHubTimeoutsPtrOutputWithContext(ctx context.Context) NotificationHubTimeoutsPtrOutput