Import
Using pulumi import, import exclusive management of security group rules using the security_group_id. For example:
$ pulumi import aws:ec2/vpcSecurityGroupRulesExclusive:VpcSecurityGroupRulesExclusive example sg-1234567890abcdef0
Create VpcSecurityGroupRulesExclusive Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcSecurityGroupRulesExclusive(name: string, args: VpcSecurityGroupRulesExclusiveArgs, opts?: CustomResourceOptions);@overload
def VpcSecurityGroupRulesExclusive(resource_name: str,
args: VpcSecurityGroupRulesExclusiveArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcSecurityGroupRulesExclusive(resource_name: str,
opts: Optional[ResourceOptions] = None,
egress_rule_ids: Optional[Sequence[str]] = None,
ingress_rule_ids: Optional[Sequence[str]] = None,
security_group_id: Optional[str] = None,
region: Optional[str] = None)func NewVpcSecurityGroupRulesExclusive(ctx *Context, name string, args VpcSecurityGroupRulesExclusiveArgs, opts ...ResourceOption) (*VpcSecurityGroupRulesExclusive, error)public VpcSecurityGroupRulesExclusive(string name, VpcSecurityGroupRulesExclusiveArgs args, CustomResourceOptions? opts = null)
public VpcSecurityGroupRulesExclusive(String name, VpcSecurityGroupRulesExclusiveArgs args)
public VpcSecurityGroupRulesExclusive(String name, VpcSecurityGroupRulesExclusiveArgs args, CustomResourceOptions options)
type: aws:ec2:VpcSecurityGroupRulesExclusive
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcSecurityGroupRulesExclusiveArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcSecurityGroupRulesExclusiveArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcSecurityGroupRulesExclusiveArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcSecurityGroupRulesExclusiveArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcSecurityGroupRulesExclusiveArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcSecurityGroupRulesExclusiveResource = new Aws.Ec2.VpcSecurityGroupRulesExclusive("vpcSecurityGroupRulesExclusiveResource", new()
{
EgressRuleIds = new[]
{
"string",
},
IngressRuleIds = new[]
{
"string",
},
SecurityGroupId = "string",
Region = "string",
});
example, err := ec2.NewVpcSecurityGroupRulesExclusive(ctx, "vpcSecurityGroupRulesExclusiveResource", &ec2.VpcSecurityGroupRulesExclusiveArgs{
EgressRuleIds: pulumi.StringArray{
pulumi.String("string"),
},
IngressRuleIds: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroupId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var vpcSecurityGroupRulesExclusiveResource = new VpcSecurityGroupRulesExclusive("vpcSecurityGroupRulesExclusiveResource", VpcSecurityGroupRulesExclusiveArgs.builder()
.egressRuleIds("string")
.ingressRuleIds("string")
.securityGroupId("string")
.region("string")
.build());
vpc_security_group_rules_exclusive_resource = aws.ec2.VpcSecurityGroupRulesExclusive("vpcSecurityGroupRulesExclusiveResource",
egress_rule_ids=["string"],
ingress_rule_ids=["string"],
security_group_id="string",
region="string")
const vpcSecurityGroupRulesExclusiveResource = new aws.ec2.VpcSecurityGroupRulesExclusive("vpcSecurityGroupRulesExclusiveResource", {
egressRuleIds: ["string"],
ingressRuleIds: ["string"],
securityGroupId: "string",
region: "string",
});
type: aws:ec2:VpcSecurityGroupRulesExclusive
properties:
egressRuleIds:
- string
ingressRuleIds:
- string
region: string
securityGroupId: string
VpcSecurityGroupRulesExclusive Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcSecurityGroupRulesExclusive resource accepts the following input properties:
- Egress
Rule List<string>Ids - Egress rule IDs.
- Ingress
Rule List<string>Ids - Ingress rule IDs.
- Security
Group stringId - ID of the security group.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Egress
Rule []stringIds - Egress rule IDs.
- Ingress
Rule []stringIds - Ingress rule IDs.
- Security
Group stringId - ID of the security group.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- egress
Rule List<String>Ids - Egress rule IDs.
- ingress
Rule List<String>Ids - Ingress rule IDs.
- security
Group StringId - ID of the security group.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- egress
Rule string[]Ids - Egress rule IDs.
- ingress
Rule string[]Ids - Ingress rule IDs.
- security
Group stringId - ID of the security group.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- egress_
rule_ Sequence[str]ids - Egress rule IDs.
- ingress_
rule_ Sequence[str]ids - Ingress rule IDs.
- security_
group_ strid - ID of the security group.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- egress
Rule List<String>Ids - Egress rule IDs.
- ingress
Rule List<String>Ids - Ingress rule IDs.
- security
Group StringId - ID of the security group.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcSecurityGroupRulesExclusive resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VpcSecurityGroupRulesExclusive Resource
Get an existing VpcSecurityGroupRulesExclusive resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcSecurityGroupRulesExclusiveState, opts?: CustomResourceOptions): VpcSecurityGroupRulesExclusive@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
egress_rule_ids: Optional[Sequence[str]] = None,
ingress_rule_ids: Optional[Sequence[str]] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None) -> VpcSecurityGroupRulesExclusivefunc GetVpcSecurityGroupRulesExclusive(ctx *Context, name string, id IDInput, state *VpcSecurityGroupRulesExclusiveState, opts ...ResourceOption) (*VpcSecurityGroupRulesExclusive, error)public static VpcSecurityGroupRulesExclusive Get(string name, Input<string> id, VpcSecurityGroupRulesExclusiveState? state, CustomResourceOptions? opts = null)public static VpcSecurityGroupRulesExclusive get(String name, Output<String> id, VpcSecurityGroupRulesExclusiveState state, CustomResourceOptions options)resources: _: type: aws:ec2:VpcSecurityGroupRulesExclusive get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Egress
Rule List<string>Ids - Egress rule IDs.
- Ingress
Rule List<string>Ids - Ingress rule IDs.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Security
Group stringId - ID of the security group.
- Egress
Rule []stringIds - Egress rule IDs.
- Ingress
Rule []stringIds - Ingress rule IDs.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Security
Group stringId - ID of the security group.
- egress
Rule List<String>Ids - Egress rule IDs.
- ingress
Rule List<String>Ids - Ingress rule IDs.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Group StringId - ID of the security group.
- egress
Rule string[]Ids - Egress rule IDs.
- ingress
Rule string[]Ids - Ingress rule IDs.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Group stringId - ID of the security group.
- egress_
rule_ Sequence[str]ids - Egress rule IDs.
- ingress_
rule_ Sequence[str]ids - Ingress rule IDs.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security_
group_ strid - ID of the security group.
- egress
Rule List<String>Ids - Egress rule IDs.
- ingress
Rule List<String>Ids - Ingress rule IDs.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Group StringId - ID of the security group.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
