get Ipv6Egress Rules
This data source provides the Vpc Ipv6 Egress Rules of the current Alibaba Cloud user.
NOTE: Available in v1.142.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetIpv6EgressRulesArgs;
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 ids = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.ids(
"example_value-1",
"example_value-2")
.build());
ctx.export("vpcIpv6EgressRuleId1", ids.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
final var nameRegex = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.nameRegex("^my-Ipv6EgressRule")
.build());
ctx.export("vpcIpv6EgressRuleId2", nameRegex.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
final var status = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.status("Available")
.build());
ctx.export("vpcIpv6EgressRuleId3", status.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
final var ipv6EgressRuleName = VpcFunctions.getIpv6EgressRules(GetIpv6EgressRulesArgs.builder()
.ipv6GatewayId("example_value")
.ipv6EgressRuleName("example_value")
.build());
ctx.export("vpcIpv6EgressRuleId4", ipv6EgressRuleName.applyValue(getIpv6EgressRulesResult -> getIpv6EgressRulesResult.rules()[0].id()));
}
}
Return
A collection of values returned by getIpv6EgressRules.
Parameters
A collection of arguments for invoking getIpv6EgressRules.
Return
A collection of values returned by getIpv6EgressRules.
See also
Parameters
A list of Ipv6 Egress Rule IDs.
The ID of the instance to which the egress-only rule is applied.
The name of the resource.
The ID of the IPv6 gateway.
A regex string to filter results by Ipv6 Egress Rule name.
File name where to save data source results (after running pulumi preview
).
The status of the resource. Valid values: Available
, Pending
and Deleting
.
Return
A collection of values returned by getIpv6EgressRules.
See also
Parameters
Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetIpv6EgressRulesPlainArgs.