SecurityGroupContextResponse Struct
Properties of a discovered SecurityGroup.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cx_api } from 'aws-cdk-lib';
const securityGroupContextResponse: cx_api.SecurityGroupContextResponse = {
allowAllOutbound: false,
securityGroupId: 'securityGroupId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import cx_api
security_group_context_response = cx_api.SecurityGroupContextResponse(
allow_all_outbound=False,
security_group_id="securityGroupId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cxapi.*;
SecurityGroupContextResponse securityGroupContextResponse = SecurityGroupContextResponse.builder()
.allowAllOutbound(false)
.securityGroupId("securityGroupId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CXAPI;
var securityGroupContextResponse = new SecurityGroupContextResponse {
AllowAllOutbound = false,
SecurityGroupId = "securityGroupId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
securityGroupContextResponse := &SecurityGroupContextResponse{
AllowAllOutbound: jsii.Boolean(false),
SecurityGroupId: jsii.String("securityGroupId"),
}
Properties
allowAllOutboundbooleanallow_all_outboundboolallowAllOutboundBooleanAllowAllOutboundboolAllowAllOutbound*boolrequired#Whether the security group allows all outbound traffic.
This will be true when the security group has all-protocol egress permissions to access both 0.0.0.0/0 and ::/0.
securityGroupIdstringsecurity_group_idstrsecurityGroupIdStringSecurityGroupIdstringSecurityGroupId*stringrequired#The security group's id.