AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi
aws-native.ec2.getSecurityGroup
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi
Resource Type definition for AWS::EC2::SecurityGroup
Using getSecurityGroup
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 getSecurityGroup(args: GetSecurityGroupArgs, opts?: InvokeOptions): Promise<GetSecurityGroupResult>
function getSecurityGroupOutput(args: GetSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupResult>
def get_security_group(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityGroupResult
def get_security_group_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupResult]
func LookupSecurityGroup(ctx *Context, args *LookupSecurityGroupArgs, opts ...InvokeOption) (*LookupSecurityGroupResult, error)
func LookupSecurityGroupOutput(ctx *Context, args *LookupSecurityGroupOutputArgs, opts ...InvokeOption) LookupSecurityGroupResultOutput
> Note: This function is named LookupSecurityGroup
in the Go SDK.
public static class GetSecurityGroup
{
public static Task<GetSecurityGroupResult> InvokeAsync(GetSecurityGroupArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityGroupResult> Invoke(GetSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecurityGroupResult> getSecurityGroup(GetSecurityGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ec2:getSecurityGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The group name or group ID depending on whether the SG is created in default or specific VPC
- Id string
- The group name or group ID depending on whether the SG is created in default or specific VPC
- id String
- The group name or group ID depending on whether the SG is created in default or specific VPC
- id string
- The group name or group ID depending on whether the SG is created in default or specific VPC
- id str
- The group name or group ID depending on whether the SG is created in default or specific VPC
- id String
- The group name or group ID depending on whether the SG is created in default or specific VPC
getSecurityGroup Result
The following output properties are available:
- Group
Id string - The group ID of the specified security group.
- Id string
- The group name or group ID depending on whether the SG is created in default or specific VPC
- Security
Group List<Pulumi.Egress Aws Native. Ec2. Outputs. Security Group Egress> - [VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- Security
Group List<Pulumi.Ingress Aws Native. Ec2. Outputs. Security Group Ingress> - The inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- List<Pulumi.
Aws Native. Outputs. Tag> - Any tags assigned to the security group.
- Group
Id string - The group ID of the specified security group.
- Id string
- The group name or group ID depending on whether the SG is created in default or specific VPC
- Security
Group []SecurityEgress Group Egress Type - [VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- Security
Group []SecurityIngress Group Ingress Type - The inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- Tag
- Any tags assigned to the security group.
- group
Id String - The group ID of the specified security group.
- id String
- The group name or group ID depending on whether the SG is created in default or specific VPC
- security
Group List<SecurityEgress Group Egress> - [VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- security
Group List<SecurityIngress Group Ingress> - The inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- List<Tag>
- Any tags assigned to the security group.
- group
Id string - The group ID of the specified security group.
- id string
- The group name or group ID depending on whether the SG is created in default or specific VPC
- security
Group SecurityEgress Group Egress[] - [VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- security
Group SecurityIngress Group Ingress[] - The inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- Tag[]
- Any tags assigned to the security group.
- group_
id str - The group ID of the specified security group.
- id str
- The group name or group ID depending on whether the SG is created in default or specific VPC
- security_
group_ Sequence[Securityegress Group Egress] - [VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- security_
group_ Sequence[Securityingress Group Ingress] - The inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- Sequence[root_Tag]
- Any tags assigned to the security group.
- group
Id String - The group ID of the specified security group.
- id String
- The group name or group ID depending on whether the SG is created in default or specific VPC
- security
Group List<Property Map>Egress - [VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- security
Group List<Property Map>Ingress - The inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
- List<Property Map>
- Any tags assigned to the security group.
Supporting Types
SecurityGroupEgress
- Ip
Protocol string - Cidr
Ip string - Cidr
Ipv6 string - Description string
- Destination
Prefix stringList Id - Destination
Security stringGroup Id - From
Port int - To
Port int
- Ip
Protocol string - Cidr
Ip string - Cidr
Ipv6 string - Description string
- Destination
Prefix stringList Id - Destination
Security stringGroup Id - From
Port int - To
Port int
- ip
Protocol String - cidr
Ip String - cidr
Ipv6 String - description String
- destination
Prefix StringList Id - destination
Security StringGroup Id - from
Port Integer - to
Port Integer
- ip
Protocol string - cidr
Ip string - cidr
Ipv6 string - description string
- destination
Prefix stringList Id - destination
Security stringGroup Id - from
Port number - to
Port number
- ip_
protocol str - cidr_
ip str - cidr_
ipv6 str - description str
- destination_
prefix_ strlist_ id - destination_
security_ strgroup_ id - from_
port int - to_
port int
- ip
Protocol String - cidr
Ip String - cidr
Ipv6 String - description String
- destination
Prefix StringList Id - destination
Security StringGroup Id - from
Port Number - to
Port Number
SecurityGroupIngress
- Ip
Protocol string - Cidr
Ip string - Cidr
Ipv6 string - Description string
- From
Port int - Source
Prefix stringList Id - Source
Security stringGroup Id - Source
Security stringGroup Name - Source
Security stringGroup Owner Id - To
Port int
- Ip
Protocol string - Cidr
Ip string - Cidr
Ipv6 string - Description string
- From
Port int - Source
Prefix stringList Id - Source
Security stringGroup Id - Source
Security stringGroup Name - Source
Security stringGroup Owner Id - To
Port int
- ip
Protocol String - cidr
Ip String - cidr
Ipv6 String - description String
- from
Port Integer - source
Prefix StringList Id - source
Security StringGroup Id - source
Security StringGroup Name - source
Security StringGroup Owner Id - to
Port Integer
- ip
Protocol string - cidr
Ip string - cidr
Ipv6 string - description string
- from
Port number - source
Prefix stringList Id - source
Security stringGroup Id - source
Security stringGroup Name - source
Security stringGroup Owner Id - to
Port number
- ip_
protocol str - cidr_
ip str - cidr_
ipv6 str - description str
- from_
port int - source_
prefix_ strlist_ id - source_
security_ strgroup_ id - source_
security_ strgroup_ name - source_
security_ strgroup_ owner_ id - to_
port int
- ip
Protocol String - cidr
Ip String - cidr
Ipv6 String - description String
- from
Port Number - source
Prefix StringList Id - source
Security StringGroup Id - source
Security StringGroup Name - source
Security StringGroup Owner Id - to
Port Number
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.
AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi