1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. kms
  5. ApplicationAccessPoint
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.kms.ApplicationAccessPoint

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a KMS Application Access Point resource. An application access point (AAP) is used to implement fine-grained access control for Key Management Service (KMS) resources. An application can access a KMS instance only after an AAP is created for the application. .

    For information about KMS Application Access Point and how to use it, see What is Application Access Point.

    NOTE: Available since v1.210.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.kms.ApplicationAccessPoint("default", {
        description: "example aap",
        applicationAccessPointName: name,
        policies: [
            "abc",
            "efg",
            "hfc",
        ],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.kms.ApplicationAccessPoint("default",
        description="example aap",
        application_access_point_name=name,
        policies=[
            "abc",
            "efg",
            "hfc",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := kms.NewApplicationAccessPoint(ctx, "default", &kms.ApplicationAccessPointArgs{
    			Description:                pulumi.String("example aap"),
    			ApplicationAccessPointName: pulumi.String(name),
    			Policies: pulumi.StringArray{
    				pulumi.String("abc"),
    				pulumi.String("efg"),
    				pulumi.String("hfc"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Kms.ApplicationAccessPoint("default", new()
        {
            Description = "example aap",
            ApplicationAccessPointName = name,
            Policies = new[]
            {
                "abc",
                "efg",
                "hfc",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.kms.ApplicationAccessPoint;
    import com.pulumi.alicloud.kms.ApplicationAccessPointArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new ApplicationAccessPoint("default", ApplicationAccessPointArgs.builder()
                .description("example aap")
                .applicationAccessPointName(name)
                .policies(            
                    "abc",
                    "efg",
                    "hfc")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:kms:ApplicationAccessPoint
        properties:
          description: example aap
          applicationAccessPointName: ${name}
          policies:
            - abc
            - efg
            - hfc
    

    Create ApplicationAccessPoint Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ApplicationAccessPoint(name: string, args: ApplicationAccessPointArgs, opts?: CustomResourceOptions);
    @overload
    def ApplicationAccessPoint(resource_name: str,
                               args: ApplicationAccessPointArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApplicationAccessPoint(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               application_access_point_name: Optional[str] = None,
                               policies: Optional[Sequence[str]] = None,
                               description: Optional[str] = None)
    func NewApplicationAccessPoint(ctx *Context, name string, args ApplicationAccessPointArgs, opts ...ResourceOption) (*ApplicationAccessPoint, error)
    public ApplicationAccessPoint(string name, ApplicationAccessPointArgs args, CustomResourceOptions? opts = null)
    public ApplicationAccessPoint(String name, ApplicationAccessPointArgs args)
    public ApplicationAccessPoint(String name, ApplicationAccessPointArgs args, CustomResourceOptions options)
    
    type: alicloud:kms:ApplicationAccessPoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ApplicationAccessPointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ApplicationAccessPointArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ApplicationAccessPointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplicationAccessPointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplicationAccessPointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var applicationAccessPointResource = new AliCloud.Kms.ApplicationAccessPoint("applicationAccessPointResource", new()
    {
        ApplicationAccessPointName = "string",
        Policies = new[]
        {
            "string",
        },
        Description = "string",
    });
    
    example, err := kms.NewApplicationAccessPoint(ctx, "applicationAccessPointResource", &kms.ApplicationAccessPointArgs{
    	ApplicationAccessPointName: pulumi.String("string"),
    	Policies: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    })
    
    var applicationAccessPointResource = new ApplicationAccessPoint("applicationAccessPointResource", ApplicationAccessPointArgs.builder()
        .applicationAccessPointName("string")
        .policies("string")
        .description("string")
        .build());
    
    application_access_point_resource = alicloud.kms.ApplicationAccessPoint("applicationAccessPointResource",
        application_access_point_name="string",
        policies=["string"],
        description="string")
    
    const applicationAccessPointResource = new alicloud.kms.ApplicationAccessPoint("applicationAccessPointResource", {
        applicationAccessPointName: "string",
        policies: ["string"],
        description: "string",
    });
    
    type: alicloud:kms:ApplicationAccessPoint
    properties:
        applicationAccessPointName: string
        description: string
        policies:
            - string
    

    ApplicationAccessPoint Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ApplicationAccessPoint resource accepts the following input properties:

    ApplicationAccessPointName string
    Application Access Point Name.
    Policies List<string>
    The policies that have bound to the Application Access Point (AAP).
    Description string
    Description .
    ApplicationAccessPointName string
    Application Access Point Name.
    Policies []string
    The policies that have bound to the Application Access Point (AAP).
    Description string
    Description .
    applicationAccessPointName String
    Application Access Point Name.
    policies List<String>
    The policies that have bound to the Application Access Point (AAP).
    description String
    Description .
    applicationAccessPointName string
    Application Access Point Name.
    policies string[]
    The policies that have bound to the Application Access Point (AAP).
    description string
    Description .
    application_access_point_name str
    Application Access Point Name.
    policies Sequence[str]
    The policies that have bound to the Application Access Point (AAP).
    description str
    Description .
    applicationAccessPointName String
    Application Access Point Name.
    policies List<String>
    The policies that have bound to the Application Access Point (AAP).
    description String
    Description .

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApplicationAccessPoint resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ApplicationAccessPoint Resource

    Get an existing ApplicationAccessPoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ApplicationAccessPointState, opts?: CustomResourceOptions): ApplicationAccessPoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_access_point_name: Optional[str] = None,
            description: Optional[str] = None,
            policies: Optional[Sequence[str]] = None) -> ApplicationAccessPoint
    func GetApplicationAccessPoint(ctx *Context, name string, id IDInput, state *ApplicationAccessPointState, opts ...ResourceOption) (*ApplicationAccessPoint, error)
    public static ApplicationAccessPoint Get(string name, Input<string> id, ApplicationAccessPointState? state, CustomResourceOptions? opts = null)
    public static ApplicationAccessPoint get(String name, Output<String> id, ApplicationAccessPointState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApplicationAccessPointName string
    Application Access Point Name.
    Description string
    Description .
    Policies List<string>
    The policies that have bound to the Application Access Point (AAP).
    ApplicationAccessPointName string
    Application Access Point Name.
    Description string
    Description .
    Policies []string
    The policies that have bound to the Application Access Point (AAP).
    applicationAccessPointName String
    Application Access Point Name.
    description String
    Description .
    policies List<String>
    The policies that have bound to the Application Access Point (AAP).
    applicationAccessPointName string
    Application Access Point Name.
    description string
    Description .
    policies string[]
    The policies that have bound to the Application Access Point (AAP).
    application_access_point_name str
    Application Access Point Name.
    description str
    Description .
    policies Sequence[str]
    The policies that have bound to the Application Access Point (AAP).
    applicationAccessPointName String
    Application Access Point Name.
    description String
    Description .
    policies List<String>
    The policies that have bound to the Application Access Point (AAP).

    Import

    KMS Application Access Point can be imported using the id, e.g.

    $ pulumi import alicloud:kms/applicationAccessPoint:ApplicationAccessPoint example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi