get Acls
This data source provides the Application Load Balancer (ALB) Acls of the current Alibaba Cloud user.
NOTE: Available in v1.133.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.alb.AlbFunctions;
import com.pulumi.alicloud.alb.inputs.GetAclsArgs;
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 = AlbFunctions.getAcls();
ctx.export("albAclId1", ids.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
final var nameRegex = AlbFunctions.getAcls(GetAclsArgs.builder()
.nameRegex("^my-Acl")
.build());
ctx.export("albAclId2", nameRegex.applyValue(getAclsResult -> getAclsResult.acls()[0].id()));
}
}
Return
A collection of values returned by getAcls.
Parameters
A collection of arguments for invoking getAcls.
Return
A collection of values returned by getAcls.
See also
Parameters
The acl ids.
The ACL Name.
Default to false
. Set it to true
can output more details about resource attributes.
A list of Acl IDs.
A regex string to filter results by Acl name.
File name where to save data source results (after running pulumi preview
).
Resource Group to Which the Number.
The state of the ACL. Valid values:Provisioning
, Available
and Configuring
. Provisioning
: The ACL is being created. Available
: The ACL is available. Configuring
: The ACL is being configured.
Return
A collection of values returned by getAcls.
See also
Parameters
Builder for com.pulumi.alicloud.alb.kotlin.inputs.GetAclsPlainArgs.