SecurityGroupArgs

data class SecurityGroupArgs(val description: Output<String>? = null, val name: Output<String>? = null, val securityGroupNames: Output<List<String>>? = null) : ConvertibleToJava<SecurityGroupArgs>

Provides an ElastiCache Security Group to control access to one or more cache clusters.

NOTE: ElastiCache Security Groups are for use only when working with an ElastiCache cluster outside of a VPC. If you are using a VPC, see the ElastiCache Subnet Group resource. !>WARNING: With the retirement of EC2-Classic the aws.elasticache.SecurityGroup resource has been deprecated and will be removed in a future version.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.SecurityGroup;
import com.pulumi.aws.elasticache.SecurityGroup;
import com.pulumi.aws.elasticache.SecurityGroupArgs;
import java.util.List;
import java.util.ArrayList;
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) {
var barSecurityGroup = new SecurityGroup("barSecurityGroup");
var barElasticache_securityGroupSecurityGroup = new SecurityGroup("barElasticache/securityGroupSecurityGroup", SecurityGroupArgs.builder()
.securityGroupNames(barSecurityGroup.name())
.build());
}
}

Import

ElastiCache Security Groups can be imported by name, e.g.,

$ pulumi import aws:elasticache/securityGroup:SecurityGroup my_ec_security_group ec-security-group-1

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>? = null, securityGroupNames: Output<List<String>>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

description for the cache security group. Defaults to "Managed by Pulumi".

Link copied to clipboard
val name: Output<String>? = null

Name for the cache security group. This value is stored as a lowercase string.

Link copied to clipboard
val securityGroupNames: Output<List<String>>? = null

List of EC2 security group names to be authorized for ingress to the cache security group

Functions

Link copied to clipboard
open override fun toJava(): SecurityGroupArgs