dome9 1.40.4 published on Thursday, Oct 30, 2025 by dome9
dome9.getAwsSecurityGroup
Start a Neo task
Explain and create a dome9.getAwsSecurityGroup resource
Use this data source to get information about an AWS Security Group onboarded to Dome9.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as dome9 from "@pulumi/dome9";
const awsSgDs = dome9.getAwsSecurityGroup({
id: "SECURITY_GROUP_ID",
});
import pulumi
import pulumi_dome9 as dome9
aws_sg_ds = dome9.get_aws_security_group(id="SECURITY_GROUP_ID")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/dome9/dome9"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dome9.LookupAwsSecurityGroup(ctx, &dome9.LookupAwsSecurityGroupArgs{
Id: "SECURITY_GROUP_ID",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dome9 = Pulumi.Dome9;
return await Deployment.RunAsync(() =>
{
var awsSgDs = Dome9.GetAwsSecurityGroup.Invoke(new()
{
Id = "SECURITY_GROUP_ID",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dome9.Dome9Functions;
import com.pulumi.dome9.inputs.GetAwsSecurityGroupArgs;
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) {
final var awsSgDs = Dome9Functions.getAwsSecurityGroup(GetAwsSecurityGroupArgs.builder()
.id("SECURITY_GROUP_ID")
.build());
}
}
variables:
awsSgDs:
fn::invoke:
function: dome9:getAwsSecurityGroup
arguments:
id: SECURITY_GROUP_ID
Using getAwsSecurityGroup
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 getAwsSecurityGroup(args: GetAwsSecurityGroupArgs, opts?: InvokeOptions): Promise<GetAwsSecurityGroupResult>
function getAwsSecurityGroupOutput(args: GetAwsSecurityGroupOutputArgs, opts?: InvokeOptions): Output<GetAwsSecurityGroupResult>def get_aws_security_group(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAwsSecurityGroupResult
def get_aws_security_group_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAwsSecurityGroupResult]func LookupAwsSecurityGroup(ctx *Context, args *LookupAwsSecurityGroupArgs, opts ...InvokeOption) (*LookupAwsSecurityGroupResult, error)
func LookupAwsSecurityGroupOutput(ctx *Context, args *LookupAwsSecurityGroupOutputArgs, opts ...InvokeOption) LookupAwsSecurityGroupResultOutput> Note: This function is named LookupAwsSecurityGroup in the Go SDK.
public static class GetAwsSecurityGroup
{
public static Task<GetAwsSecurityGroupResult> InvokeAsync(GetAwsSecurityGroupArgs args, InvokeOptions? opts = null)
public static Output<GetAwsSecurityGroupResult> Invoke(GetAwsSecurityGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAwsSecurityGroupResult> getAwsSecurityGroup(GetAwsSecurityGroupArgs args, InvokeOptions options)
public static Output<GetAwsSecurityGroupResult> getAwsSecurityGroup(GetAwsSecurityGroupArgs args, InvokeOptions options)
fn::invoke:
function: dome9:index/getAwsSecurityGroup:getAwsSecurityGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Id string
- id String
- id string
- id str
- id String
getAwsSecurityGroup Result
The following output properties are available:
- Aws
Region stringId - Cloud
Account stringName - Description string
- Dome9Cloud
Account stringId - Dome9Security
Group stringName - External
Id string - Id string
- Is
Protected bool - Services
List<Get
Aws Security Group Service> - Dictionary<string, string>
- Vpc
Id string - Vpc
Name string
- Aws
Region stringId - Cloud
Account stringName - Description string
- Dome9Cloud
Account stringId - Dome9Security
Group stringName - External
Id string - Id string
- Is
Protected bool - Services
[]Get
Aws Security Group Service - map[string]string
- Vpc
Id string - Vpc
Name string
- aws
Region StringId - cloud
Account StringName - description String
- dome9Cloud
Account StringId - dome9Security
Group StringName - external
Id String - id String
- is
Protected Boolean - services
List<Get
Aws Security Group Service> - Map<String,String>
- vpc
Id String - vpc
Name String
- aws
Region stringId - cloud
Account stringName - description string
- dome9Cloud
Account stringId - dome9Security
Group stringName - external
Id string - id string
- is
Protected boolean - services
Get
Aws Security Group Service[] - {[key: string]: string}
- vpc
Id string - vpc
Name string
- aws_
region_ strid - cloud_
account_ strname - description str
- dome9_
cloud_ straccount_ id - dome9_
security_ strgroup_ name - external_
id str - id str
- is_
protected bool - services
Sequence[Get
Aws Security Group Service] - Mapping[str, str]
- vpc_
id str - vpc_
name str
- aws
Region StringId - cloud
Account StringName - description String
- dome9Cloud
Account StringId - dome9Security
Group StringName - external
Id String - id String
- is
Protected Boolean - services List<Property Map>
- Map<String>
- vpc
Id String - vpc
Name String
Supporting Types
GetAwsSecurityGroupService
GetAwsSecurityGroupServiceInbound
- Description string
- Security Group description.
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
List<Get
Aws Security Group Service Inbound Scope>
- Description string
- Security Group description.
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
[]Get
Aws Security Group Service Inbound Scope
- description String
- Security Group description.
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes
List<Get
Aws Security Group Service Inbound Scope>
- description string
- Security Group description.
- name string
- open
For booleanAll - port string
- protocol
Type string - scopes
Get
Aws Security Group Service Inbound Scope[]
- description str
- Security Group description.
- name str
- open_
for_ boolall - port str
- protocol_
type str - scopes
Sequence[Get
Aws Security Group Service Inbound Scope]
- description String
- Security Group description.
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes List<Property Map>
GetAwsSecurityGroupServiceInboundScope
GetAwsSecurityGroupServiceOutbound
- Description string
- Security Group description.
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
List<Get
Aws Security Group Service Outbound Scope>
- Description string
- Security Group description.
- Name string
- Open
For boolAll - Port string
- Protocol
Type string - Scopes
[]Get
Aws Security Group Service Outbound Scope
- description String
- Security Group description.
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes
List<Get
Aws Security Group Service Outbound Scope>
- description string
- Security Group description.
- name string
- open
For booleanAll - port string
- protocol
Type string - scopes
Get
Aws Security Group Service Outbound Scope[]
- description str
- Security Group description.
- name str
- open_
for_ boolall - port str
- protocol_
type str - scopes
Sequence[Get
Aws Security Group Service Outbound Scope]
- description String
- Security Group description.
- name String
- open
For BooleanAll - port String
- protocol
Type String - scopes List<Property Map>
GetAwsSecurityGroupServiceOutboundScope
Package Details
- Repository
- dome9 dome9/terraform-provider-dome9
- License
- Notes
- This Pulumi package is based on the
dome9Terraform Provider.
