public MyStack() { var example = new Aws.Cognito.UserPool("example", new Aws.Cognito.UserPoolArgs { AutoVerifiedAttributes = { "email", }, }); var exampleProvider = new Aws.Cognito.IdentityProvider("exampleProvider", new Aws.Cognito.IdentityProviderArgs { AttributeMapping = { { "email", "email" }, { "username", "sub" }, }, ProviderDetails = { { "authorize_scopes", "email" }, { "client_id", "your client_id" }, { "client_secret", "your client_secret" }, }, ProviderName = "Google", ProviderType = "Google", UserPoolId = example.Id, }); }
public MyStack() { var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs { }); var client = new Aws.Cognito.UserPoolClient("client", new Aws.Cognito.UserPoolClientArgs { UserPoolId = pool.Id, }); }
public MyStack() { var example = new Aws.Cognito.UserPool("example", new Aws.Cognito.UserPoolArgs { }); var main = new Aws.Cognito.UserPoolDomain("main", new Aws.Cognito.UserPoolDomainArgs { Domain = "example-domain", UserPoolId = example.Id, }); }
public MyStack() { var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs { }); var resource = new Aws.Cognito.ResourceServer("resource", new Aws.Cognito.ResourceServerArgs { Identifier = "https://example.com", UserPoolId = pool.Id, }); }
public MyStack() { var example = new Aws.Cognito.UserPool("example", new Aws.Cognito.UserPoolArgs { }); var main = new Aws.Cognito.UserPoolDomain("main", new Aws.Cognito.UserPoolDomainArgs { CertificateArn = aws_acm_certificate.Cert.Arn, Domain = "example-domain.example.com", UserPoolId = example.Id, }); }
public MyStack() { var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs { }); var client = new Aws.Cognito.UserPoolClient("client", new Aws.Cognito.UserPoolClientArgs { ExplicitAuthFlows = { "ADMIN_NO_SRP_AUTH", }, GenerateSecret = true, UserPoolId = pool.Id, }); }
public MyStack() { var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs { }); var resource = new Aws.Cognito.ResourceServer("resource", new Aws.Cognito.ResourceServerArgs { Identifier = "https://example.com", Scopes = { new Aws.Cognito.Inputs.ResourceServerScopeArgs { ScopeDescription = "a Sample Scope Description", ScopeName = "sample-scope", }, }, UserPoolId = pool.Id, }); }
public MyStack() { var frontEndLoadBalancer = new Aws.LB.LoadBalancer("frontEndLoadBalancer", new Aws.LB.LoadBalancerArgs { }); var frontEndTargetGroup = new Aws.LB.TargetGroup("frontEndTargetGroup", new Aws.LB.TargetGroupArgs { }); var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs { }); var client = new Aws.Cognito.UserPoolClient("client", new Aws.Cognito.UserPoolClientArgs { }); var domain = new Aws.Cognito.UserPoolDomain("domain", new Aws.Cognito.UserPoolDomainArgs { }); var frontEndListener = new Aws.LB.Listener("frontEndListener", new Aws.LB.ListenerArgs { DefaultActions = { new Aws.LB.Inputs.ListenerDefaultActionArgs { AuthenticateCognito = new Aws.LB.Inputs.ListenerDefaultActionAuthenticateCognitoArgs { UserPoolArn = pool.Arn, UserPoolClientId = client.Id, UserPoolDomain = domain.Domain, }, Type = "authenticate-cognito", }, new Aws.LB.Inputs.ListenerDefaultActionArgs { TargetGroupArn = frontEndTargetGroup.Arn, Type = "forward", }, }, LoadBalancerArn = frontEndLoadBalancer.Arn, Port = 80, Protocol = "HTTP", }); }
public MyStack() { var mainUserPool = new Aws.Cognito.UserPool("mainUserPool", new Aws.Cognito.UserPoolArgs { }); var groupRole = new Aws.Iam.Role("groupRole", new Aws.Iam.RoleArgs { AssumeRolePolicy = @"{ ""Version"": ""2012-10-17"", ""Statement"": [ { ""Sid"": """", ""Effect"": ""Allow"", ""Principal"": { ""Federated"": ""cognito-identity.amazonaws.com"" }, ""Action"": ""sts:AssumeRoleWithWebIdentity"", ""Condition"": { ""StringEquals"": { ""cognito-identity.amazonaws.com:aud"": ""us-east-1:12345678-dead-beef-cafe-123456790ab"" }, ""ForAnyValue:StringLike"": { ""cognito-identity.amazonaws.com:amr"": ""authenticated"" } } } ] } ", }); var mainUserGroup = new Aws.Cognito.UserGroup("mainUserGroup", new Aws.Cognito.UserGroupArgs { Description = "Managed by Pulumi", Precedence = 42, RoleArn = groupRole.Arn, UserPoolId = mainUserPool.Id, }); }
public MyStack() { var current = Output.Create(Aws.GetCallerIdentity.InvokeAsync()); var testUserPool = new Aws.Cognito.UserPool("testUserPool", new Aws.Cognito.UserPoolArgs { }); var testApp = new Aws.Pinpoint.App("testApp", new Aws.Pinpoint.AppArgs { }); var testRole = new Aws.Iam.Role("testRole", new Aws.Iam.RoleArgs { AssumeRolePolicy = @"{ ""Version"": ""2012-10-17"", ""Statement"": [ { ""Action"": ""sts:AssumeRole"", ""Principal"": { ""Service"": ""cognito-idp.amazonaws.com"" }, ""Effect"": ""Allow"", ""Sid"": """" } ] } ", }); var testRolePolicy = new Aws.Iam.RolePolicy("testRolePolicy", new Aws.Iam.RolePolicyArgs { Policy = Output.Tuple(current, testApp.ApplicationId).Apply(values => { var current = values.Item1; var applicationId = values.Item2; return(@$ "{{ " "Version" ": " "2012-10-17" ", " "Statement" ": [
public MyStack() { var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs { }); }