AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.verifiedpermissions.getPolicyStore
Explore with Pulumi AI
Data source for managing an AWS Verified Permissions Policy Store.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.verifiedpermissions.getPolicyStore({
id: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.verifiedpermissions.get_policy_store(id="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/verifiedpermissions"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := verifiedpermissions.LookupPolicyStore(ctx, &verifiedpermissions.LookupPolicyStoreArgs{
Id: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.VerifiedPermissions.GetPolicyStore.Invoke(new()
{
Id = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.verifiedpermissions.VerifiedpermissionsFunctions;
import com.pulumi.aws.verifiedpermissions.inputs.GetPolicyStoreArgs;
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 example = VerifiedpermissionsFunctions.getPolicyStore(GetPolicyStoreArgs.builder()
.id("example")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:verifiedpermissions:getPolicyStore
Arguments:
id: example
Using getPolicyStore
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPolicyStore(args: GetPolicyStoreArgs, opts?: InvokeOptions): Promise<GetPolicyStoreResult>
function getPolicyStoreOutput(args: GetPolicyStoreOutputArgs, opts?: InvokeOptions): Output<GetPolicyStoreResult>
def get_policy_store(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyStoreResult
def get_policy_store_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyStoreResult]
func LookupPolicyStore(ctx *Context, args *LookupPolicyStoreArgs, opts ...InvokeOption) (*LookupPolicyStoreResult, error)
func LookupPolicyStoreOutput(ctx *Context, args *LookupPolicyStoreOutputArgs, opts ...InvokeOption) LookupPolicyStoreResultOutput
> Note: This function is named LookupPolicyStore
in the Go SDK.
public static class GetPolicyStore
{
public static Task<GetPolicyStoreResult> InvokeAsync(GetPolicyStoreArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyStoreResult> Invoke(GetPolicyStoreInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyStoreResult> getPolicyStore(GetPolicyStoreArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:verifiedpermissions/getPolicyStore:getPolicyStore
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of the Policy Store.
- Id string
- The ID of the Policy Store.
- id String
- The ID of the Policy Store.
- id string
- The ID of the Policy Store.
- id str
- The ID of the Policy Store.
- id String
- The ID of the Policy Store.
getPolicyStore Result
The following output properties are available:
- Arn string
- The ARN of the Policy Store.
- Created
Date string - The date the Policy Store was created.
- Description string
- Id string
- Last
Updated stringDate - The date the Policy Store was last updated.
- Validation
Settings List<GetPolicy Store Validation Setting> - Validation settings for the policy store.
- Arn string
- The ARN of the Policy Store.
- Created
Date string - The date the Policy Store was created.
- Description string
- Id string
- Last
Updated stringDate - The date the Policy Store was last updated.
- Validation
Settings []GetPolicy Store Validation Setting - Validation settings for the policy store.
- arn String
- The ARN of the Policy Store.
- created
Date String - The date the Policy Store was created.
- description String
- id String
- last
Updated StringDate - The date the Policy Store was last updated.
- validation
Settings List<GetPolicy Store Validation Setting> - Validation settings for the policy store.
- arn string
- The ARN of the Policy Store.
- created
Date string - The date the Policy Store was created.
- description string
- id string
- last
Updated stringDate - The date the Policy Store was last updated.
- validation
Settings GetPolicy Store Validation Setting[] - Validation settings for the policy store.
- arn str
- The ARN of the Policy Store.
- created_
date str - The date the Policy Store was created.
- description str
- id str
- last_
updated_ strdate - The date the Policy Store was last updated.
- validation_
settings Sequence[GetPolicy Store Validation Setting] - Validation settings for the policy store.
- arn String
- The ARN of the Policy Store.
- created
Date String - The date the Policy Store was created.
- description String
- id String
- last
Updated StringDate - The date the Policy Store was last updated.
- validation
Settings List<Property Map> - Validation settings for the policy store.
Supporting Types
GetPolicyStoreValidationSetting
- Mode string
- Mode string
- mode String
- mode string
- mode str
- mode String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.