1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. elasticache
  6. getServiceUpdateActions
Viewing docs for AWS v7.39.0
published on Thursday, Jul 23, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.39.0
published on Thursday, Jul 23, 2026 by Pulumi

    Provides details about an AWS ElastiCache Service Update Actions for a given Cache Cluster or Replication Group.

    When creating a new Cache Cluster or Replication Group, it takes approximately 10 minutes for Update Actions to be listed.

    Example Usage

    Basic Usage

    The following example will list all Update Actions for the Cache Cluster with a service update status of available.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.elasticache.getServiceUpdateActions({
        cacheClusterId: exampleAwsElasticacheCluster.clusterId,
        serviceUpdateStatuses: ["available"],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.elasticache.get_service_update_actions(cache_cluster_id=example_aws_elasticache_cluster["clusterId"],
        service_update_statuses=["available"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/elasticache"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := elasticache.GetServiceUpdateActions(ctx, &elasticache.GetServiceUpdateActionsArgs{
    			CacheClusterId: pulumi.StringRef(exampleAwsElasticacheCluster.ClusterId),
    			ServiceUpdateStatuses: []string{
    				"available",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.ElastiCache.GetServiceUpdateActions.Invoke(new()
        {
            CacheClusterId = exampleAwsElasticacheCluster.ClusterId,
            ServiceUpdateStatuses = new[]
            {
                "available",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.elasticache.ElasticacheFunctions;
    import com.pulumi.aws.elasticache.inputs.GetServiceUpdateActionsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = ElasticacheFunctions.getServiceUpdateActions(GetServiceUpdateActionsArgs.builder()
                .cacheClusterId(exampleAwsElasticacheCluster.clusterId())
                .serviceUpdateStatuses("available")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:elasticache:getServiceUpdateActions
          arguments:
            cacheClusterId: ${exampleAwsElasticacheCluster.clusterId}
            serviceUpdateStatuses:
              - available
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_elasticache_getserviceupdateactions" "example" {
      cache_cluster_id        = exampleAwsElasticacheCluster.clusterId
      service_update_statuses = ["available"]
    }
    

    Using getServiceUpdateActions

    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 getServiceUpdateActions(args: GetServiceUpdateActionsArgs, opts?: InvokeOptions): Promise<GetServiceUpdateActionsResult>
    function getServiceUpdateActionsOutput(args: GetServiceUpdateActionsOutputArgs, opts?: InvokeOptions): Output<GetServiceUpdateActionsResult>
    def get_service_update_actions(cache_cluster_id: Optional[str] = None,
                                   region: Optional[str] = None,
                                   replication_group_id: Optional[str] = None,
                                   service_update_statuses: Optional[Sequence[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetServiceUpdateActionsResult
    def get_service_update_actions_output(cache_cluster_id: pulumi.Input[Optional[str]] = None,
                                   region: pulumi.Input[Optional[str]] = None,
                                   replication_group_id: pulumi.Input[Optional[str]] = None,
                                   service_update_statuses: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetServiceUpdateActionsResult]
    func GetServiceUpdateActions(ctx *Context, args *GetServiceUpdateActionsArgs, opts ...InvokeOption) (*GetServiceUpdateActionsResult, error)
    func GetServiceUpdateActionsOutput(ctx *Context, args *GetServiceUpdateActionsOutputArgs, opts ...InvokeOption) GetServiceUpdateActionsResultOutput

    > Note: This function is named GetServiceUpdateActions in the Go SDK.

    public static class GetServiceUpdateActions 
    {
        public static Task<GetServiceUpdateActionsResult> InvokeAsync(GetServiceUpdateActionsArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceUpdateActionsResult> Invoke(GetServiceUpdateActionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceUpdateActionsResult> getServiceUpdateActions(GetServiceUpdateActionsArgs args, InvokeOptions options)
    public static Output<GetServiceUpdateActionsResult> getServiceUpdateActions(GetServiceUpdateActionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:elasticache/getServiceUpdateActions:getServiceUpdateActions
      arguments:
        # arguments dictionary
    data "aws_elasticache_get_service_update_actions" "name" {
        # arguments
    }

    The following arguments are supported:

    CacheClusterId string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ReplicationGroupId string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    ServiceUpdateStatuses List<string>
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    CacheClusterId string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ReplicationGroupId string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    ServiceUpdateStatuses []string
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    cache_cluster_id string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    replication_group_id string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    service_update_statuses list(string)
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    cacheClusterId String
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    replicationGroupId String
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    serviceUpdateStatuses List<String>
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    cacheClusterId string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    replicationGroupId string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    serviceUpdateStatuses string[]
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    cache_cluster_id str
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    replication_group_id str
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    service_update_statuses Sequence[str]
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    cacheClusterId String
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    replicationGroupId String
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    serviceUpdateStatuses List<String>
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.

    getServiceUpdateActions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    UpdateActions List<GetServiceUpdateActionsUpdateAction>
    Set of Service Update Actions. Each element has the following attributes:
    CacheClusterId string
    ID of Cache Cluster this update action applies to.
    ReplicationGroupId string
    ID of Replication Group this update action applies to.
    ServiceUpdateStatuses List<string>
    Availability of the update. One of available, cancelled, or expired.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    UpdateActions []GetServiceUpdateActionsUpdateAction
    Set of Service Update Actions. Each element has the following attributes:
    CacheClusterId string
    ID of Cache Cluster this update action applies to.
    ReplicationGroupId string
    ID of Replication Group this update action applies to.
    ServiceUpdateStatuses []string
    Availability of the update. One of available, cancelled, or expired.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    update_actions list(object)
    Set of Service Update Actions. Each element has the following attributes:
    cache_cluster_id string
    ID of Cache Cluster this update action applies to.
    replication_group_id string
    ID of Replication Group this update action applies to.
    service_update_statuses list(string)
    Availability of the update. One of available, cancelled, or expired.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    updateActions List<GetServiceUpdateActionsUpdateAction>
    Set of Service Update Actions. Each element has the following attributes:
    cacheClusterId String
    ID of Cache Cluster this update action applies to.
    replicationGroupId String
    ID of Replication Group this update action applies to.
    serviceUpdateStatuses List<String>
    Availability of the update. One of available, cancelled, or expired.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    updateActions GetServiceUpdateActionsUpdateAction[]
    Set of Service Update Actions. Each element has the following attributes:
    cacheClusterId string
    ID of Cache Cluster this update action applies to.
    replicationGroupId string
    ID of Replication Group this update action applies to.
    serviceUpdateStatuses string[]
    Availability of the update. One of available, cancelled, or expired.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    update_actions Sequence[GetServiceUpdateActionsUpdateAction]
    Set of Service Update Actions. Each element has the following attributes:
    cache_cluster_id str
    ID of Cache Cluster this update action applies to.
    replication_group_id str
    ID of Replication Group this update action applies to.
    service_update_statuses Sequence[str]
    Availability of the update. One of available, cancelled, or expired.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    updateActions List<Property Map>
    Set of Service Update Actions. Each element has the following attributes:
    cacheClusterId String
    ID of Cache Cluster this update action applies to.
    replicationGroupId String
    ID of Replication Group this update action applies to.
    serviceUpdateStatuses List<String>
    Availability of the update. One of available, cancelled, or expired.

    Supporting Types

    GetServiceUpdateActionsUpdateAction

    CacheClusterId string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    Engine string
    Engine this update applies to.
    EstimatedUpdateTime string
    Estimated duration of update.
    RecommendedApplyByDate string
    Date the update should be applied by.
    ReleaseDate string
    Date the update was released.
    ReplicationGroupId string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    ServiceUpdateName string
    Name of the update.
    ServiceUpdateSeverity string
    Severity of the update. One of critical, important, medium, or low.
    ServiceUpdateStatus string
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    ServiceUpdateType string
    Type of the update.
    UpdateActionStatus string
    Status of the update action.
    CacheClusterId string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    Engine string
    Engine this update applies to.
    EstimatedUpdateTime string
    Estimated duration of update.
    RecommendedApplyByDate string
    Date the update should be applied by.
    ReleaseDate string
    Date the update was released.
    ReplicationGroupId string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    ServiceUpdateName string
    Name of the update.
    ServiceUpdateSeverity string
    Severity of the update. One of critical, important, medium, or low.
    ServiceUpdateStatus string
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    ServiceUpdateType string
    Type of the update.
    UpdateActionStatus string
    Status of the update action.
    cache_cluster_id string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    engine string
    Engine this update applies to.
    estimated_update_time string
    Estimated duration of update.
    recommended_apply_by_date string
    Date the update should be applied by.
    release_date string
    Date the update was released.
    replication_group_id string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    service_update_name string
    Name of the update.
    service_update_severity string
    Severity of the update. One of critical, important, medium, or low.
    service_update_status string
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    service_update_type string
    Type of the update.
    update_action_status string
    Status of the update action.
    cacheClusterId String
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    engine String
    Engine this update applies to.
    estimatedUpdateTime String
    Estimated duration of update.
    recommendedApplyByDate String
    Date the update should be applied by.
    releaseDate String
    Date the update was released.
    replicationGroupId String
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    serviceUpdateName String
    Name of the update.
    serviceUpdateSeverity String
    Severity of the update. One of critical, important, medium, or low.
    serviceUpdateStatus String
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    serviceUpdateType String
    Type of the update.
    updateActionStatus String
    Status of the update action.
    cacheClusterId string
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    engine string
    Engine this update applies to.
    estimatedUpdateTime string
    Estimated duration of update.
    recommendedApplyByDate string
    Date the update should be applied by.
    releaseDate string
    Date the update was released.
    replicationGroupId string
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    serviceUpdateName string
    Name of the update.
    serviceUpdateSeverity string
    Severity of the update. One of critical, important, medium, or low.
    serviceUpdateStatus string
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    serviceUpdateType string
    Type of the update.
    updateActionStatus string
    Status of the update action.
    cache_cluster_id str
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    engine str
    Engine this update applies to.
    estimated_update_time str
    Estimated duration of update.
    recommended_apply_by_date str
    Date the update should be applied by.
    release_date str
    Date the update was released.
    replication_group_id str
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    service_update_name str
    Name of the update.
    service_update_severity str
    Severity of the update. One of critical, important, medium, or low.
    service_update_status str
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    service_update_type str
    Type of the update.
    update_action_status str
    Status of the update action.
    cacheClusterId String
    ID of Cache Cluster to list updates for. If neither cacheClusterId nor replicationGroupId are specified, all service update actions will be listed.
    engine String
    Engine this update applies to.
    estimatedUpdateTime String
    Estimated duration of update.
    recommendedApplyByDate String
    Date the update should be applied by.
    releaseDate String
    Date the update was released.
    replicationGroupId String
    ID of Replication Group to list updates for. If neither replicationGroupId nor cacheClusterId are specified, all service update actions will be listed.
    serviceUpdateName String
    Name of the update.
    serviceUpdateSeverity String
    Severity of the update. One of critical, important, medium, or low.
    serviceUpdateStatus String
    Service update statuses to include in list. Valid values are available, cancelled, and expired. If no value is specified, service updates in all statuses will be listed.
    serviceUpdateType String
    Type of the update.
    updateActionStatus String
    Status of the update action.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.39.0
    published on Thursday, Jul 23, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial