Class: AWSCDK::EC2::FlowLogResourceType
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::EC2::FlowLogResourceType
- Defined in:
- ec2/flow_log_resource_type.rb
Overview
The type of resource to create the flow log for.
Class Method Summary collapse
-
.from_network_interface_id(id) ⇒ AWSCDK::EC2::FlowLogResourceType
The Network Interface to attach the Flow Log to.
-
.from_subnet(subnet) ⇒ AWSCDK::EC2::FlowLogResourceType
The subnet to attach the Flow Log to.
-
.from_transit_gateway_attachment_id(id) ⇒ AWSCDK::EC2::FlowLogResourceType
The Transit Gateway Attachment to attach the Flow Log to.
-
.from_transit_gateway_id(id) ⇒ AWSCDK::EC2::FlowLogResourceType
The Transit Gateway to attach the Flow Log to.
-
.from_vpc(vpc) ⇒ AWSCDK::EC2::FlowLogResourceType
The VPC to attach the Flow Log to.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ FlowLogResourceType
constructor
A new instance of FlowLogResourceType.
-
#resource_id ⇒ String
The Id of the resource that the flow log should be attached to.
- #resource_id=(value) ⇒ Object
-
#resource_type ⇒ String
The type of resource to attach a flow log to.
- #resource_type=(value) ⇒ Object
Constructor Details
#initialize ⇒ FlowLogResourceType
Returns a new instance of FlowLogResourceType.
8 9 10 |
# File 'ec2/flow_log_resource_type.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.from_network_interface_id(id) ⇒ AWSCDK::EC2::FlowLogResourceType
The Network Interface to attach the Flow Log to.
23 24 25 26 |
# File 'ec2/flow_log_resource_type.rb', line 23 def self.from_network_interface_id(id) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.FlowLogResourceType", "fromNetworkInterfaceId", [id]) end |
.from_subnet(subnet) ⇒ AWSCDK::EC2::FlowLogResourceType
The subnet to attach the Flow Log to.
32 33 34 35 |
# File 'ec2/flow_log_resource_type.rb', line 32 def self.from_subnet(subnet) Jsii::Type.check_type(subnet, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVN1Ym5ldFJlZiJ9")), "subnet") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.FlowLogResourceType", "fromSubnet", [subnet]) end |
.from_transit_gateway_attachment_id(id) ⇒ AWSCDK::EC2::FlowLogResourceType
The Transit Gateway Attachment to attach the Flow Log to.
41 42 43 44 |
# File 'ec2/flow_log_resource_type.rb', line 41 def self.(id) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.FlowLogResourceType", "fromTransitGatewayAttachmentId", [id]) end |
.from_transit_gateway_id(id) ⇒ AWSCDK::EC2::FlowLogResourceType
The Transit Gateway to attach the Flow Log to.
50 51 52 53 |
# File 'ec2/flow_log_resource_type.rb', line 50 def self.from_transit_gateway_id(id) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.FlowLogResourceType", "fromTransitGatewayId", [id]) end |
.from_vpc(vpc) ⇒ AWSCDK::EC2::FlowLogResourceType
The VPC to attach the Flow Log to.
59 60 61 62 |
# File 'ec2/flow_log_resource_type.rb', line 59 def self.from_vpc(vpc) Jsii::Type.check_type(vpc, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklWcGMifQ==")), "vpc") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.FlowLogResourceType", "fromVpc", [vpc]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 17 |
# File 'ec2/flow_log_resource_type.rb', line 12 def self.jsii_overridable_methods { :resource_id => { kind: :property, name: "resourceId", is_optional: false }, :resource_type => { kind: :property, name: "resourceType", is_optional: false }, } end |
Instance Method Details
#resource_id ⇒ String
The Id of the resource that the flow log should be attached to.
67 68 69 |
# File 'ec2/flow_log_resource_type.rb', line 67 def resource_id() jsii_get_property("resourceId") end |
#resource_id=(value) ⇒ Object
71 72 73 74 |
# File 'ec2/flow_log_resource_type.rb', line 71 def resource_id=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceId") jsii_set_property("resourceId", value) end |
#resource_type ⇒ String
The type of resource to attach a flow log to.
79 80 81 |
# File 'ec2/flow_log_resource_type.rb', line 79 def resource_type() jsii_get_property("resourceType") end |
#resource_type=(value) ⇒ Object
83 84 85 86 |
# File 'ec2/flow_log_resource_type.rb', line 83 def resource_type=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType") jsii_set_property("resourceType", value) end |