hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
hsdp.getS3credsPolicy
Explore with Pulumi AI
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
Gets information on defined S3 Credential policies
This resource is only available when
s3creds_urlis set in the provider config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const myOrgPolicies = hsdp.getS3credsPolicy({
    productKey: _var.product_key,
    username: _var.iam_login,
    password: _var.iam_password,
    filter: {
        managingOrg: _var.my_org_id,
    },
});
import pulumi
import pulumi_hsdp as hsdp
my_org_policies = hsdp.get_s3creds_policy(product_key=var["product_key"],
    username=var["iam_login"],
    password=var["iam_password"],
    filter={
        "managing_org": var["my_org_id"],
    })
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hsdp.LookupS3credsPolicy(ctx, &hsdp.LookupS3credsPolicyArgs{
			ProductKey: _var.Product_key,
			Username:   pulumi.StringRef(_var.Iam_login),
			Password:   pulumi.StringRef(_var.Iam_password),
			Filter: hsdp.GetS3credsPolicyFilter{
				ManagingOrg: pulumi.StringRef(_var.My_org_id),
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() => 
{
    var myOrgPolicies = Hsdp.GetS3credsPolicy.Invoke(new()
    {
        ProductKey = @var.Product_key,
        Username = @var.Iam_login,
        Password = @var.Iam_password,
        Filter = new Hsdp.Inputs.GetS3credsPolicyFilterInputArgs
        {
            ManagingOrg = @var.My_org_id,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.HsdpFunctions;
import com.pulumi.hsdp.inputs.GetS3credsPolicyArgs;
import com.pulumi.hsdp.inputs.GetS3credsPolicyFilterArgs;
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 myOrgPolicies = HsdpFunctions.getS3credsPolicy(GetS3credsPolicyArgs.builder()
            .productKey(var_.product_key())
            .username(var_.iam_login())
            .password(var_.iam_password())
            .filter(GetS3credsPolicyFilterArgs.builder()
                .managingOrg(var_.my_org_id())
                .build())
            .build());
    }
}
variables:
  myOrgPolicies:
    fn::invoke:
      function: hsdp:getS3credsPolicy
      arguments:
        productKey: ${var.product_key}
        username: ${var.iam_login}
        password: ${var.iam_password}
        filter:
          managingOrg: ${var.my_org_id}
import * as pulumi from "@pulumi/pulumi";
export const s3CredentialPoliciesMyOrg = data.hsdp_s3creds_policy.my_org_policies.policies;
import pulumi
pulumi.export("s3CredentialPoliciesMyOrg", data["hsdp_s3creds_policy"]["my_org_policies"]["policies"])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ctx.Export("s3CredentialPoliciesMyOrg", data.Hsdp_s3creds_policy.My_org_policies.Policies)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() => 
{
    return new Dictionary<string, object?>
    {
        ["s3CredentialPoliciesMyOrg"] = data.Hsdp_s3creds_policy.My_org_policies.Policies,
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
        ctx.export("s3CredentialPoliciesMyOrg", data.hsdp_s3creds_policy().my_org_policies().policies());
    }
}
outputs:
  s3CredentialPoliciesMyOrg: ${data.hsdp_s3creds_policy.my_org_policies.policies}
Using getS3credsPolicy
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 getS3credsPolicy(args: GetS3credsPolicyArgs, opts?: InvokeOptions): Promise<GetS3credsPolicyResult>
function getS3credsPolicyOutput(args: GetS3credsPolicyOutputArgs, opts?: InvokeOptions): Output<GetS3credsPolicyResult>def get_s3creds_policy(filter: Optional[GetS3credsPolicyFilter] = None,
                       id: Optional[str] = None,
                       password: Optional[str] = None,
                       product_key: Optional[str] = None,
                       username: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetS3credsPolicyResult
def get_s3creds_policy_output(filter: Optional[pulumi.Input[GetS3credsPolicyFilterArgs]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       password: Optional[pulumi.Input[str]] = None,
                       product_key: Optional[pulumi.Input[str]] = None,
                       username: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetS3credsPolicyResult]func LookupS3credsPolicy(ctx *Context, args *LookupS3credsPolicyArgs, opts ...InvokeOption) (*LookupS3credsPolicyResult, error)
func LookupS3credsPolicyOutput(ctx *Context, args *LookupS3credsPolicyOutputArgs, opts ...InvokeOption) LookupS3credsPolicyResultOutput> Note: This function is named LookupS3credsPolicy in the Go SDK.
public static class GetS3credsPolicy 
{
    public static Task<GetS3credsPolicyResult> InvokeAsync(GetS3credsPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetS3credsPolicyResult> Invoke(GetS3credsPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetS3credsPolicyResult> getS3credsPolicy(GetS3credsPolicyArgs args, InvokeOptions options)
public static Output<GetS3credsPolicyResult> getS3credsPolicy(GetS3credsPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: hsdp:index/getS3credsPolicy:getS3credsPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Product
Key string - The product key under which to search for policies
 - Filter
Get
S3creds Policy Filter  - The filter conditions block for selecting policies
 - Id string
 - Password string
 - The password of 
username - Username string
 - The IAM username to authenticate under
 
- Product
Key string - The product key under which to search for policies
 - Filter
Get
S3creds Policy Filter  - The filter conditions block for selecting policies
 - Id string
 - Password string
 - The password of 
username - Username string
 - The IAM username to authenticate under
 
- product
Key String - The product key under which to search for policies
 - filter
Get
S3creds Policy Filter  - The filter conditions block for selecting policies
 - id String
 - password String
 - The password of 
username - username String
 - The IAM username to authenticate under
 
- product
Key string - The product key under which to search for policies
 - filter
Get
S3creds Policy Filter  - The filter conditions block for selecting policies
 - id string
 - password string
 - The password of 
username - username string
 - The IAM username to authenticate under
 
- product_
key str - The product key under which to search for policies
 - filter
Get
S3creds Policy Filter  - The filter conditions block for selecting policies
 - id str
 - password str
 - The password of 
username - username str
 - The IAM username to authenticate under
 
- product
Key String - The product key under which to search for policies
 - filter Property Map
 - The filter conditions block for selecting policies
 - id String
 - password String
 - The password of 
username - username String
 - The IAM username to authenticate under
 
getS3credsPolicy Result
The following output properties are available:
- Id string
 - Policies string
 - JSON array of policies found using supplied filter values
 - Product
Key string - Filter
Get
S3creds Policy Filter  - Password string
 - Username string
 
- Id string
 - Policies string
 - JSON array of policies found using supplied filter values
 - Product
Key string - Filter
Get
S3creds Policy Filter  - Password string
 - Username string
 
- id String
 - policies String
 - JSON array of policies found using supplied filter values
 - product
Key String - filter
Get
S3creds Policy Filter  - password String
 - username String
 
- id string
 - policies string
 - JSON array of policies found using supplied filter values
 - product
Key string - filter
Get
S3creds Policy Filter  - password string
 - username string
 
- id str
 - policies str
 - JSON array of policies found using supplied filter values
 - product_
key str - filter
Get
S3creds Policy Filter  - password str
 - username str
 
- id String
 - policies String
 - JSON array of policies found using supplied filter values
 - product
Key String - filter Property Map
 - password String
 - username String
 
Supporting Types
GetS3credsPolicyFilter   
- Group
Name string - Find policies assigned to this group
 - Id string
 - The id (uuid) of the policy
 - Managing
Org string - Finds policies under 
managing_org(uuid) 
- Group
Name string - Find policies assigned to this group
 - Id string
 - The id (uuid) of the policy
 - Managing
Org string - Finds policies under 
managing_org(uuid) 
- group
Name String - Find policies assigned to this group
 - id String
 - The id (uuid) of the policy
 - managing
Org String - Finds policies under 
managing_org(uuid) 
- group
Name string - Find policies assigned to this group
 - id string
 - The id (uuid) of the policy
 - managing
Org string - Finds policies under 
managing_org(uuid) 
- group_
name str - Find policies assigned to this group
 - id str
 - The id (uuid) of the policy
 - managing_
org str - Finds policies under 
managing_org(uuid) 
- group
Name String - Find policies assigned to this group
 - id String
 - The id (uuid) of the policy
 - managing
Org String - Finds policies under 
managing_org(uuid) 
Package Details
- Repository
 - hsdp philips-software/terraform-provider-hsdp
 - License
 - Notes
 - This Pulumi package is based on the 
hsdpTerraform Provider. 
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software