We recommend new projects start with resources from the AWS provider.
aws-native.rds.getEventSubscription
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::RDS::EventSubscription
resource allows you to receive notifications for Amazon Relational Database Service events through the Amazon Simple Notification Service (Amazon SNS). For more information, see Using Amazon RDS Event Notification in the Amazon RDS User Guide.
Using getEventSubscription
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEventSubscription(args: GetEventSubscriptionArgs, opts?: InvokeOptions): Promise<GetEventSubscriptionResult>
function getEventSubscriptionOutput(args: GetEventSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetEventSubscriptionResult>
def get_event_subscription(subscription_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEventSubscriptionResult
def get_event_subscription_output(subscription_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEventSubscriptionResult]
func LookupEventSubscription(ctx *Context, args *LookupEventSubscriptionArgs, opts ...InvokeOption) (*LookupEventSubscriptionResult, error)
func LookupEventSubscriptionOutput(ctx *Context, args *LookupEventSubscriptionOutputArgs, opts ...InvokeOption) LookupEventSubscriptionResultOutput
> Note: This function is named LookupEventSubscription
in the Go SDK.
public static class GetEventSubscription
{
public static Task<GetEventSubscriptionResult> InvokeAsync(GetEventSubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetEventSubscriptionResult> Invoke(GetEventSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEventSubscriptionResult> getEventSubscription(GetEventSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:rds:getEventSubscription
arguments:
# arguments dictionary
The following arguments are supported:
- Subscription
Name string - The name of the subscription. Constraints: The name must be less than 255 characters.
- Subscription
Name string - The name of the subscription. Constraints: The name must be less than 255 characters.
- subscription
Name String - The name of the subscription. Constraints: The name must be less than 255 characters.
- subscription
Name string - The name of the subscription. Constraints: The name must be less than 255 characters.
- subscription_
name str - The name of the subscription. Constraints: The name must be less than 255 characters.
- subscription
Name String - The name of the subscription. Constraints: The name must be less than 255 characters.
getEventSubscription Result
The following output properties are available:
- Enabled bool
- Specifies whether to activate the subscription. If the event notification subscription isn't activated, the subscription is created but not active.
- Event
Categories List<string> - A list of event categories for a particular source type (
SourceType
) that you want to subscribe to. You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the Amazon RDS User Guide or the Amazon Aurora User Guide. You can also see this list by using theDescribeEventCategories
operation. - Source
Ids List<string> - The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
Constraints:
- If
SourceIds
are supplied,SourceType
must also be provided. - If the source type is a DB instance, a
DBInstanceIdentifier
value must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifier
value must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupName
value must be supplied. - If the source type is a DB security group, a
DBSecurityGroupName
value must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifier
value must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifier
value must be supplied. - If the source type is an RDS Proxy, a
DBProxyName
value must be supplied.
- If
- Source
Type string - The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to
db-instance
. For RDS Proxy events, specifydb-proxy
. If this value isn't specified, all events are returned. Valid Values:db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
- List<Pulumi.
Aws Native. Outputs. Tag> - An optional array of key-value pairs to apply to this subscription.
- Enabled bool
- Specifies whether to activate the subscription. If the event notification subscription isn't activated, the subscription is created but not active.
- Event
Categories []string - A list of event categories for a particular source type (
SourceType
) that you want to subscribe to. You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the Amazon RDS User Guide or the Amazon Aurora User Guide. You can also see this list by using theDescribeEventCategories
operation. - Source
Ids []string - The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
Constraints:
- If
SourceIds
are supplied,SourceType
must also be provided. - If the source type is a DB instance, a
DBInstanceIdentifier
value must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifier
value must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupName
value must be supplied. - If the source type is a DB security group, a
DBSecurityGroupName
value must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifier
value must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifier
value must be supplied. - If the source type is an RDS Proxy, a
DBProxyName
value must be supplied.
- If
- Source
Type string - The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to
db-instance
. For RDS Proxy events, specifydb-proxy
. If this value isn't specified, all events are returned. Valid Values:db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
- Tag
- An optional array of key-value pairs to apply to this subscription.
- enabled Boolean
- Specifies whether to activate the subscription. If the event notification subscription isn't activated, the subscription is created but not active.
- event
Categories List<String> - A list of event categories for a particular source type (
SourceType
) that you want to subscribe to. You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the Amazon RDS User Guide or the Amazon Aurora User Guide. You can also see this list by using theDescribeEventCategories
operation. - source
Ids List<String> - The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
Constraints:
- If
SourceIds
are supplied,SourceType
must also be provided. - If the source type is a DB instance, a
DBInstanceIdentifier
value must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifier
value must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupName
value must be supplied. - If the source type is a DB security group, a
DBSecurityGroupName
value must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifier
value must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifier
value must be supplied. - If the source type is an RDS Proxy, a
DBProxyName
value must be supplied.
- If
- source
Type String - The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to
db-instance
. For RDS Proxy events, specifydb-proxy
. If this value isn't specified, all events are returned. Valid Values:db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
- List<Tag>
- An optional array of key-value pairs to apply to this subscription.
- enabled boolean
- Specifies whether to activate the subscription. If the event notification subscription isn't activated, the subscription is created but not active.
- event
Categories string[] - A list of event categories for a particular source type (
SourceType
) that you want to subscribe to. You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the Amazon RDS User Guide or the Amazon Aurora User Guide. You can also see this list by using theDescribeEventCategories
operation. - source
Ids string[] - The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
Constraints:
- If
SourceIds
are supplied,SourceType
must also be provided. - If the source type is a DB instance, a
DBInstanceIdentifier
value must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifier
value must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupName
value must be supplied. - If the source type is a DB security group, a
DBSecurityGroupName
value must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifier
value must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifier
value must be supplied. - If the source type is an RDS Proxy, a
DBProxyName
value must be supplied.
- If
- source
Type string - The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to
db-instance
. For RDS Proxy events, specifydb-proxy
. If this value isn't specified, all events are returned. Valid Values:db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
- Tag[]
- An optional array of key-value pairs to apply to this subscription.
- enabled bool
- Specifies whether to activate the subscription. If the event notification subscription isn't activated, the subscription is created but not active.
- event_
categories Sequence[str] - A list of event categories for a particular source type (
SourceType
) that you want to subscribe to. You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the Amazon RDS User Guide or the Amazon Aurora User Guide. You can also see this list by using theDescribeEventCategories
operation. - source_
ids Sequence[str] - The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
Constraints:
- If
SourceIds
are supplied,SourceType
must also be provided. - If the source type is a DB instance, a
DBInstanceIdentifier
value must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifier
value must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupName
value must be supplied. - If the source type is a DB security group, a
DBSecurityGroupName
value must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifier
value must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifier
value must be supplied. - If the source type is an RDS Proxy, a
DBProxyName
value must be supplied.
- If
- source_
type str - The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to
db-instance
. For RDS Proxy events, specifydb-proxy
. If this value isn't specified, all events are returned. Valid Values:db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
- Sequence[root_Tag]
- An optional array of key-value pairs to apply to this subscription.
- enabled Boolean
- Specifies whether to activate the subscription. If the event notification subscription isn't activated, the subscription is created but not active.
- event
Categories List<String> - A list of event categories for a particular source type (
SourceType
) that you want to subscribe to. You can see a list of the categories for a given source type in the "Amazon RDS event categories and event messages" section of the Amazon RDS User Guide or the Amazon Aurora User Guide. You can also see this list by using theDescribeEventCategories
operation. - source
Ids List<String> - The list of identifiers of the event sources for which events are returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens. It can't end with a hyphen or contain two consecutive hyphens.
Constraints:
- If
SourceIds
are supplied,SourceType
must also be provided. - If the source type is a DB instance, a
DBInstanceIdentifier
value must be supplied. - If the source type is a DB cluster, a
DBClusterIdentifier
value must be supplied. - If the source type is a DB parameter group, a
DBParameterGroupName
value must be supplied. - If the source type is a DB security group, a
DBSecurityGroupName
value must be supplied. - If the source type is a DB snapshot, a
DBSnapshotIdentifier
value must be supplied. - If the source type is a DB cluster snapshot, a
DBClusterSnapshotIdentifier
value must be supplied. - If the source type is an RDS Proxy, a
DBProxyName
value must be supplied.
- If
- source
Type String - The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you set this parameter to
db-instance
. For RDS Proxy events, specifydb-proxy
. If this value isn't specified, all events are returned. Valid Values:db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot | db-proxy | zero-etl | custom-engine-version | blue-green-deployment
- List<Property Map>
- An optional array of key-value pairs to apply to this subscription.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.