com.pulumi.aws.ssoadmin.ApplicationAccessScope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ssoadmin;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.ssoadmin.ApplicationAccessScopeArgs;
import com.pulumi.aws.ssoadmin.inputs.ApplicationAccessScopeState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource for managing an AWS SSO Admin Application Access Scope.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.ssoadmin.SsoadminFunctions;
* import com.pulumi.aws.ssoadmin.Application;
* import com.pulumi.aws.ssoadmin.ApplicationArgs;
* import com.pulumi.aws.ssoadmin.ApplicationAccessScope;
* import com.pulumi.aws.ssoadmin.ApplicationAccessScopeArgs;
* 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 = SsoadminFunctions.getInstances();
*
* var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
* .name("example")
* .applicationProviderArn("arn:aws:sso::aws:applicationProvider/custom")
* .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
* .build());
*
* var exampleApplicationAccessScope = new ApplicationAccessScope("exampleApplicationAccessScope", ApplicationAccessScopeArgs.builder()
* .applicationArn(exampleApplication.applicationArn())
* .authorizedTargets("arn:aws:sso::123456789012:application/ssoins-123456789012/apl-123456789012")
* .scope("sso:account:access")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import SSO Admin Application Access Scope using the `id`. For example:
*
* ```sh
* $ pulumi import aws:ssoadmin/applicationAccessScope:ApplicationAccessScope example arn:aws:sso::123456789012:application/ssoins-123456789012/apl-123456789012,sso:account:access
* ```
*
*/
@ResourceType(type="aws:ssoadmin/applicationAccessScope:ApplicationAccessScope")
public class ApplicationAccessScope extends com.pulumi.resources.CustomResource {
/**
* Specifies the ARN of the application with the access scope with the targets to add or update.
*
*/
@Export(name="applicationArn", refs={String.class}, tree="[0]")
private Output applicationArn;
/**
* @return Specifies the ARN of the application with the access scope with the targets to add or update.
*
*/
public Output applicationArn() {
return this.applicationArn;
}
/**
* Specifies an array list of ARNs that represent the authorized targets for this access scope.
*
*/
@Export(name="authorizedTargets", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> authorizedTargets;
/**
* @return Specifies an array list of ARNs that represent the authorized targets for this access scope.
*
*/
public Output>> authorizedTargets() {
return Codegen.optional(this.authorizedTargets);
}
/**
* Specifies the name of the access scope to be associated with the specified targets.
*
* The following arguments are optional:
*
*/
@Export(name="scope", refs={String.class}, tree="[0]")
private Output scope;
/**
* @return Specifies the name of the access scope to be associated with the specified targets.
*
* The following arguments are optional:
*
*/
public Output scope() {
return this.scope;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ApplicationAccessScope(java.lang.String name) {
this(name, ApplicationAccessScopeArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ApplicationAccessScope(java.lang.String name, ApplicationAccessScopeArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public ApplicationAccessScope(java.lang.String name, ApplicationAccessScopeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:ssoadmin/applicationAccessScope:ApplicationAccessScope", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ApplicationAccessScope(java.lang.String name, Output id, @Nullable ApplicationAccessScopeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("aws:ssoadmin/applicationAccessScope:ApplicationAccessScope", name, state, makeResourceOptions(options, id), false);
}
private static ApplicationAccessScopeArgs makeArgs(ApplicationAccessScopeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ApplicationAccessScopeArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static ApplicationAccessScope get(java.lang.String name, Output id, @Nullable ApplicationAccessScopeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ApplicationAccessScope(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy