GetSaslAcls
This data source provides a list of ALIKAFKA Sasl acls in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.66.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var saslAclsDs = Output.Create(AliCloud.ActionTrail.GetSaslAcls.InvokeAsync(new AliCloud.ActionTrail.GetSaslAclsArgs
{
AclResourceName = "testTopic",
AclResourceType = "Topic",
InstanceId = "xxx",
OutputFile = "saslAcls.txt",
Username = "username",
}));
this.FirstSaslAclUsername = saslAclsDs.Apply(saslAclsDs => saslAclsDs.Acls[0].Username);
}
[Output("firstSaslAclUsername")]
public Output<string> FirstSaslAclUsername { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
sasl_acls_ds = alicloud.actiontrail.get_sasl_acls(acl_resource_name="testTopic",
acl_resource_type="Topic",
instance_id="xxx",
output_file="saslAcls.txt",
username="username")
pulumi.export("firstSaslAclUsername", sasl_acls_ds.acls[0]["username"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const saslAclsDs = pulumi.output(alicloud.actiontrail.getSaslAcls({
aclResourceName: "testTopic",
aclResourceType: "Topic",
instanceId: "xxx",
outputFile: "saslAcls.txt",
username: "username",
}, { async: true }));
export const firstSaslAclUsername = saslAclsDs.acls[0].username;Using GetSaslAcls
function getSaslAcls(args: GetSaslAclsArgs, opts?: InvokeOptions): Promise<GetSaslAclsResult>function get_sasl_acls(acl_resource_name=None, acl_resource_type=None, instance_id=None, output_file=None, username=None, opts=None)func GetSaslAcls(ctx *Context, args *GetSaslAclsArgs, opts ...InvokeOption) (*GetSaslAclsResult, error)public static class GetSaslAcls {
public static Task<GetSaslAclsResult> InvokeAsync(GetSaslAclsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Acl
Resource stringName Get results for the specified resource name.
- Acl
Resource stringType Get results for the specified resource type.
- Instance
Id string ID of the ALIKAFKA Instance that owns the sasl acls.
- Username string
Get results for the specified username.
- Output
File string
- Acl
Resource stringName Get results for the specified resource name.
- Acl
Resource stringType Get results for the specified resource type.
- Instance
Id string ID of the ALIKAFKA Instance that owns the sasl acls.
- Username string
Get results for the specified username.
- Output
File string
- acl
Resource stringName Get results for the specified resource name.
- acl
Resource stringType Get results for the specified resource type.
- instance
Id string ID of the ALIKAFKA Instance that owns the sasl acls.
- username string
Get results for the specified username.
- output
File string
- acl_
resource_ strname Get results for the specified resource name.
- acl_
resource_ strtype Get results for the specified resource type.
- instance_
id str ID of the ALIKAFKA Instance that owns the sasl acls.
- username str
Get results for the specified username.
- output_
file str
GetSaslAcls Result
The following output properties are available:
- Acl
Resource stringName The resource name of the sasl acl.
- Acl
Resource stringType The resource type of the sasl acl.
- Acls
List<Pulumi.
Ali Cloud. Action Trail. Outputs. Get Sasl Acls Acl> A list of sasl acls. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Username string
The username of the sasl acl.
- Output
File string
- Acl
Resource stringName The resource name of the sasl acl.
- Acl
Resource stringType The resource type of the sasl acl.
- Acls
[]Get
Sasl Acls Acl A list of sasl acls. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Username string
The username of the sasl acl.
- Output
File string
- acl
Resource stringName The resource name of the sasl acl.
- acl
Resource stringType The resource type of the sasl acl.
- acls
Get
Sasl Acls Acl[] A list of sasl acls. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id string - username string
The username of the sasl acl.
- output
File string
- acl_
resource_ strname The resource name of the sasl acl.
- acl_
resource_ strtype The resource type of the sasl acl.
- acls
List[Get
Sasl Acls Acl] A list of sasl acls. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- instance_
id str - username str
The username of the sasl acl.
- output_
file str
Supporting Types
GetSaslAclsAcl
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Acl
Operation stringType The operation type of the sasl acl.
- Acl
Resource stringName Get results for the specified resource name.
- Acl
Resource stringPattern Type The resource pattern type of the sasl acl.
- Acl
Resource stringType Get results for the specified resource type.
- Host string
The host of the sasl acl.
- Username string
Get results for the specified username.
- Acl
Operation stringType The operation type of the sasl acl.
- Acl
Resource stringName Get results for the specified resource name.
- Acl
Resource stringPattern Type The resource pattern type of the sasl acl.
- Acl
Resource stringType Get results for the specified resource type.
- Host string
The host of the sasl acl.
- Username string
Get results for the specified username.
- acl
Operation stringType The operation type of the sasl acl.
- acl
Resource stringName Get results for the specified resource name.
- acl
Resource stringPattern Type The resource pattern type of the sasl acl.
- acl
Resource stringType Get results for the specified resource type.
- host string
The host of the sasl acl.
- username string
Get results for the specified username.
- acl_
operation_ strtype The operation type of the sasl acl.
- acl_
resource_ strname Get results for the specified resource name.
- acl_
resource_ strpattern_ type The resource pattern type of the sasl acl.
- acl_
resource_ strtype Get results for the specified resource type.
- host str
The host of the sasl acl.
- username str
Get results for the specified username.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.